The input files used by the compiler consist of the following:
-
CARD, the required source code file
-
SOURCE or TAPE, a source code file that can be merged with CARD
-
INCLUDE files, source code files that can be inserted into CARD or TAPE
-
HOST, information used for separate compilation and binding
-
INFO, information used for separate compilation
The EXTMODE attribute (the character type of the physical file) of these input files can be EBCDIC or ASCII. The MAXRECSIZE attribute of these input files must be large enough to accommodate at least 72 characters. Because the values of the MAXRECSIZE and BLOCKSIZE attributes for these files are taken from the physical file (since DEPENDENTSPECS = TRUE), these two attributes do not require explicit assignment.
The DEPENDENTSPECS file attribute is set to TRUE for all compiler input files. To set file attributes that are different from the present file (for example, BLOCKSIZE), you must set DEPENDENTSPECS to FALSE.
CARD File
The CARD file supplies the primary source input to the compiler and must be present for each compilation. If the compiler is initiated from the Work Flow Language (WFL) and compiler file equation is not applied to the CARD file, the file is assumed to be a card reader file. If the compiler is initiated through CANDE and compiler file equation is not applied to the CARD file, the file is assumed to be a disk file.
SOURCE File
The synonym TAPE can be used in place of SOURCE.
The SOURCE file supplies secondary source input to the compiler. Its presence is optional. If you do not file-equate either SOURCE or TAPE, the compiler attempts to open a file with the name TAPE, and if it does not find one, it attempts to open a file named SOURCE. The file is assumed to be a disk file regardless of whether the compiler is initiated from WFL or CANDE.
When this file is present and the MERGE option is TRUE, records from the TAPE file are merged with those of the CARD file on the basis of sequence numbers. If a record from the CARD file and a record from the TAPE file have the same sequence number, the record from the CARD file is compiled and the TAPE record is ignored. For more information on the MERGE option, see “MERGE Option” later in this section.
INCLUDE Files
INCLUDE files provide source input to the compiler in addition to that supplied by the CARD and SOURCE (or TAPE) files. An INCLUDE file is used only if an INCLUDE compiler control option appears in the source input being compiled. For more information on the INCLUDE option, see “INCLUDE Option” later in this section.
INFO File
The INFO file contains the contents of variables and tables used in the compiler, saved from a previous compile. This file is used for separate compilation of procedures. It is created by the DUMPINFO compiler control option and is used as an input file by the LOADINFO compiler control option. For more information on the DUMPINFO and LOADINFO options, see “DUMPINFO Option” and “LOADINFO Option” later in this section.

