Executes a FIND procedure stored in the current Proc-file.
Syntax |
 |
F[IND] procedure name [,character]
|
For example:
Where procedure name = ACCTS
Where procedure name = USERS, and character = X
Discussion |
 |
QUERY searches the current Proc-file
and executes the procedure named in the
command. If the Proc-file has not been declared, or the
procedure does not exist in the Proc-file,
or the procedure is incorrect
in some way, you are informed by an error message. If character
is included in the command, QUERY prints the procedure on the
standard list device before executing it.
If null data values appear in the procedure, QUERY prompts you for
the necessary values. If the retrieval requires a serial search
of a data set, the following message is returned:
For more information about storing and using FIND procedures,
refer to the CREATE command.
Example |
 |
>FIND FINDACCT
WHAT IS THE VALUE OF - ACCOUNT
>>54283545
2 ENTRIES QUALIFIED
>R ALL,Z
54283545
MAYFIELD
WILLIAM
37 41ST AVE.
PETALUMA
CA
10101
8.50000
54283545
4397D13P
1
4590
276
0
121585
122085
|
The FINDACCT procedure contains:
FIND CHAIN
CUSTOMER.ACCOUNT,SALES
ACCOUNT
IS "" END
|
In this example, QUERY prompts for the value of ACCOUNT.
The REPORT ALL command prints the entry data.
The first entry is from the CUSTOMER master data set.
The second entry is from the SALES detail data set.