Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

SYSFILE - Change assignment of input medium

&pagelevel(5)&pagelevel

The SYSFILE statement (system file) changes the assignment of the input medium from which the IOGEN statements are read. The maximum number of files which can be processed by SYSFILE statements is 255.

SYSFILE                                                                                                                                                 

SYSDTA=filename / (LAST) / (PRIMARY)

SYSDTA=filename
Specifies the name of a cataloged SAM or ISAM file which is to be read by the IOGEN statements.

SYSDTA=(LAST)
Further IOGEN statements are preceded by the SYSFILE statement of the previous input medium.

SYSDTA=(PRIMARY)
All further IOGEN statements are read from SYSDTA=*PRIMARY.

Notes

  • The SYSFILE statement can be specified as the first statement for an IOGEN run.

  • Further SYSFILE statements can be input via the specified input medium. This enables the user to input all the IOGEN statements in succession from different input media. To prevent the risk of loops, no more than 10 nested SYSFILE statements may be specified. The SYSFILE statement cannot reference a file which has already been assigned.

  • Input from SYSDTA is terminated when the end condition 'EOF' is given by SYSDTA or when an END statement is encountered.

  • If an end condition is encountered, the next record is read from the file from which the last SYSFILE statement was read.
    If the record was read from SYSCMD, input is terminated.