Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Opening a file z/OS TSO/E CLISTs SA32-0978-00 |
|
The OPENFILE statement has the following syntax:
To open a data set for I/O, you must allocate the data set to a file name, then use that file name on the OPENFILE statement. To preserve data integrity, after the file is opened for I/O, CLIST performs only one level of substitution against the file name variable. That is, after the file name is substituted with a file record, and to ensure the file record can be saved in its original format, CLIST does not re-scan the record. To allocate the data set to a file name, use the ALLOCATE command with the FILE keyword. The file name is an arbitrary value; you can create it on the allocation. For example, you can code the following:
You can also code the file name as a symbolic variable as follows:
You can open a member of a PDS after allocating the member to a
file name, for example:
However, do not use OPENFILE statements
to open more than one member of a PDS for output at the same time. |
Copyright IBM Corporation 1990, 2014
|