PROC-FILE= [ QUERY/V Reference Manual ] MPE/iX 5.0 Documentation
QUERY/V Reference Manual
PROC-FILE=
Specifies the name of the current Proc-file.
Syntax
P[ROC-FILE]= filename [,n]
For example:
>PROC-FILE=FILEP,50
Where filename = FILEP and n = 50
Parameters
filename is the name of an MPE ASCII file. The file may
reside in any group or account, as long as you are
allowed read and lock access to it through the MPE
file security. If you do not have read and lock
access a file system error 93, (FS-93) security
violation, will occur. To specify a file that is
not local to your group and account, you must use
a fully-qualified file name in the form:
file.group.account. For example, SPEC.PUB.SYS is
a file named SPEC in the PUB group in the SYS
account.
n is the number of records in the file. The file
can be from 5 to 400 records in length depending
upon the number and length of procedures to be
stored. (The default value is 126.) Each
procedure is stored on a record boundary, and
occupies one or more records. If n is specified
for an existing file, it is ignored.
Discussion
Procedures are stored in the Proc-file. Before using any of the QUERY
procedure commands, you must specify the name of the Proc-file. This
definition stays in effect until changed with the PROC-FILE= or DEFINE
command or until execution terminates.
If the file name does not exist, QUERY issues a message and opens and
saves a disc file of size n with the specified file name using a file
code of 1070. Once a Proc-file has been declared, QUERY always uses that
file when executing any of the commands listed in the following table.
If you have not specified the Proc-file before entering one of these
commands, QUERY prints an error message.
The following table shows the commands which are used to modify
procedures and those which are used to execute procedures. All of these
commands operate on the current Proc-file.
---------------------------------------------------------------------------------------------
| | |
| MODIFICATION | EXECUTION |
| | |
---------------------------------------------------------------------------------------------
| | |
| ALTER | FIND procedure |
| CREATE | JOIN procedure |
| DESTROY | MULTIFIND procedure |
| DISPLAY | REPORT procedure |
| RENAME | SUBSET procedure |
| | UPDATE procedure |
| | |
---------------------------------------------------------------------------------------------
Examples
Example 1
In the following example DISPLAY LIST is used to list the procedures in
the current Proc-file. MANPROC contains five procedures.
>PROC-FILE=MANPROC
>DISPLAY LIST
FIND1 FIND2 UPD1 REP4 REP5
Example 2
You can create a Proc-file with the PROC-FILE= command. If you do not
specify the number of records QUERY creates a file with 126 records.
>PROC-FILE=PROCX
FILE DOES NOT EXIST, BEING CREATED
MPE/iX 5.0 Documentation