IO

Generate the Input-Output Section File-Control paragraph.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Compatibility:

Batch environments

Syntax: for Format 1

 IO     filename ASSIGN [TO] COBOLdataname
                              "literal"
                              EXTERNAL externalfile
        ORGANIZATION IS RECORD SEQUENTIAL
                        LINE

Syntax: for Format 2

 IO    filename ASSIGN [TO] DYNAMIC ddname
       ORGANIZATION IS RECORD SEQUENTIAL

Comments:

  • Do not code the SELECT verb in your syntax.
  • Do not use ellipses to continue a FILE-CONTROL clause on subsequent lines. Any keyword except /* (the comment keyword) designates the end of the continuation.
  • Code an IO keyword for each file.
  • AMB generates both the program INPUT-OUTPUT section header and the FILE-CONTROL header.
  • Format 1 supports COBOL, as follows
    • Dataname can be a drive, path identifier, or both.
    • EXTERNAL identifies externalfile to the external environment for further mapping to an external file-storage environment name.
    • Externalfile specifies the environment variable. The SET command defines the environment variable; the Runtime system uses it to locate externalfile in the environment.
    • "Literal" is a standard PC file specification.
    • ORGANIZATION is RECORD SEQUENTIAL, a fixed length record (default).