Input File Definition commands appear immediately after the run control area in the program. The FILE, DEFINE, or COPYDD commands define each program input file.
The first file defined in any run is known as the primary file. The system automatically generates the commands to access the primary file unless you override them or the file is a CA Datacom/DB table or IMS-DL/I file.
You must explicitly access secondary files, but you can define and access any number of input data sets in a single run. When defining fields that reside in the input records, define only those fields required for processing.
The following is a basic diagram of the Input File Definition commands within a program:
┌────────┐ │ │ │ 1 │ Run Control │ │ ├────────┤ │ │ │ 2A │ Input File Definition │ │ ├────────┤ │ │ │ 2B │ GSA Definition │ │ ├────────┤ │ │ │ 3 │ Data Manipulation/File Reading │ │ ├────────┤ │ │ │ 4A,4B │ Report Definition/Output File Definition │ │ └────────┘
|
Copyright © 2014 CA.
All rights reserved.
|
|