First of all the input and output media such as files and tapes must be assigned, so that subsequent statements involving these files and tapes can be executed (statements ASSIGN-INPUT-FILE, ASSIGN-OUTPUT-FILE, ASSIGN-INPUT-TAPE, ASSIGN-OUTPUT-TAPE).
To duplicate a tape, the ASSIGN-INPUT-TAPE statement must precede the ASSIGN-OUTPUT-TAPE statement.
The START-TAPE-PROCESSING statement can be specified only following an ASSIGN-OUTPUT-TAPE statement.
In guided dialog, the statements ASSIGN-OUTPUT-TAPE, CHANGE-INPUT-TAPEPO-SITION and START-TAPE-PROCESSING are not available until after entry of the ASSIGN-INPUT-TAPE statement.
The CHANGE-INPUT-TAPEPOSITION statement can be specified only following the ASSIGN-INPUT-TAPE statement, but it can precede or follow the ASSIGN-OUTPUT-FILE statement.
The following statements can refer to one, selected or all previously specified output files of a conversion step: START-TAPE-PROCESSING, SELECT-INPUT-RECORDS, SET-RECORD-MAPPING, SET-PAGE-LAYOUT and SET-GROUP-ATTRIBUTES. If a statement is to refer only to one or to selected output files, the associated link names of these output files must be specified in this statement.
If one of the specified statements is specified without a link name, it refers to all already specified ASSIGN-OUTPUT-FILE statements. Any ASSIGN-OUTPUT-FILE statements that were issued later are not affected.
With the exception of the MODIFY-PERCON-OPTIONS statement, all statements are valid for one conversion step only. They must be entered in full, as subsequent additions are not possible.
The MODIFY-PERCON-OPTIONS statement remains valid until it is redefined or until the PERCON run is terminated.
TFT entries generated by means of a /ADD-FILE-LINK command are retained throughout the PERCON run unless the release of the file link names is requested explicitly (REMOVE-FILE-LINK operand in the ASSIGN-INPUT-FILE and ASSIGN-OUTPUT-FILE statements).
Example
/CREATE-FILE FILE-NAME=OUT1 /ADD-FILE-LINK LINK-NAME=OUT1,- / FILE-NAME=OUTFIL,- / ACCESS-METHOD=SAM —————————————————————————————————————— (1) /CREATE-FILE FILE-NAME=OUT2 /ADD-FILE-LINK LINK-NAME=OUT2,- / FILE-NAME=TESTFIL,- / ACCESS-METHOD=SAM —————————————————————————————————————— (2) /START-PERCON ————————————————————————————————————————————————————————— (3) //ASSIGN-INPUT-FILE FILE=DISK-FILE(NAME=INFIL),- // LINK-NAME=IN1 ————————————————————————————————————— (4) //ASSIGN-OUTPUT-FILE LINK-NAME=OUT1 ——————————————————————————————————— (5) //ASSIGN-OUTPUT-FILE LINK-NAME=OUT2 ——————————————————————————————————— (6) //SELECT-INPUT-RECORDS OUTPUT-LINK-NAME=OUT1,- // CONDITION=((15,1)=ALPHA) ——————————————————————— (7) //START-CONVERSION ———————————————————————————————————————————————————— (8)
(1) | The output file OUTFIL is assigned with the link name OUT1 and its file attributes. |
(2) | The output file TESTFIL is assigned with the link name OUT2 and its file attributes. |
(3) | PERCON is called. |
(4) | The file INFIL is assigned as the input file with the link name IN1. |
(5) | The output file OUTFIL is linked to PERCON via the link name OUT1. |
(6) | The output file TESTFIL is linked to PERCON via the link name OUT2. |
(7) | The SELECT-INPUT-RECORDS statement refers to the output file OUTFIL for record selection via the link name OUT1. |
(8) | The transfer operation is started. |