(Area 3)
The GET command allows you to determine the order in which files are processed. The GET command causes entry to a module that only accesses and transfers data from an input file. You can code a user-module or the Reporting Facility can supply a module. Format the GET command as follows:
►►─┬──────────┬─ GET ─ filename ─┬──────────────────────┬─────────────────────►◄ └─ label: ─┘ └─ logical expression ─┘
Specifies an optional identifying label that allows a GOTO branch to be made to this statement.
Specifies the name of the file to be accessed. This is the same name that appears on the FILE command for the table to be accessed.
Optionally enables you to specify constraints on the acceptance of records from the file. Such a logical expression not only can contain references to field names contained within the records for that specific file, but can specify non-key fields and those fields identified as key fields in the KEY= clause of the FILE command. Logical expressions cannot appear on GET commands issued for access to a VSAM file, a DL/I file, a CA Datacom/DB table, or a user-module.
Note the following:
You have not yet issued a GET command against this file.
The requested record from the file is in the I/O area.
A NO-RECORD-FOUND condition exists. Contents of the I/O area are unpredictable.
END-OF-FILE has been reached on the specified file. Contents of the I/O area are unpredictable.
|
Copyright © 2014 CA.
All rights reserved.
|
|