Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Conversion step

&pagelevel(3)&pagelevel

PERCON works in conversion steps. A conversion step is a section of the PERCON run beginning with the specifications for the transfer operation and ending with a completion message from PERCON. Any number of conversion steps can be started in the same PERCON run.

Either the START-CONVERSION statement or the END statement can be used to indicate completion of the entries for a conversion step.
The RESET-INPUT statement resets all previously made entries and formally terminates the conversion step.

Further conversion steps are possible after either the START-CONVERSION or the RESET-INPUT statement, but the END statement terminates the PERCON run.

In the case of file copying, any number of input/output files can be assigned per conversion step. All the statements belonging to the same conversion step are collected and executed in one transfer operation.

In the case of tape editing, only one input tape but several output files can be assigned per conversion step. Every statement in a conversion step is executed immediately, thus enabling the results of a statement to be used in the following statements.

In the case of tape duplication, only one input tape or MF/MV set, but several output tapes or MF/MV sets can be assigned per conversion step. Output is directed to all output tapes simultaneously.

Example

/START-PERCON 
//ASSIGN-INPUT-FILE... 
//ASSIGN-OUTPUT-FILE... 
//SELECT-INPUT-RECORDS... 
//START-CONVERSION 
PER0030 ..... 
PER0030 .....——————————————————————————————————————————————————————————  (1) 
//ASSIGN-INPUT-FILE 
//ASSIGN-OUTPUT-FILE... 
//SET-PAGE-LAYOUT... 
//END 
PER0030 ..... 
PER0030 .....——————————————————————————————————————————————————————————  (2) 
PER0031 PERCON TERMINATED NORMALLY ————————————————————————————————————  (3) 

(1)

End of 1st conversion step

(2)

End of 2nd conversion step

(3)

End of the PERCON run


If a logical error occurs during processing of a conversion step:

  • control branches to the next STEP or END statement in procedures and batch jobs;

  • the subsequent statements for the next conversion step are interpreted in interactive mode.

An errored conversion step results in abnormal termination (TERM MODE= *ABNORMAL) of the entire PERCON run (branch to /SET-JOB-STEP), even if all subsequent conversion steps were terminated without errors.