Previous Topic: FORMAT CommandNext Topic: GOTO Command


GET Command

(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 ─┘
label:

Specifies an optional identifying label that allows a GOTO branch to be made to this statement.

filename

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.

logical expression

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: