z/OS TSO/E CLISTs
|
Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Writing a record to a file z/OS TSO/E CLISTs SA32-0978-00 |
|
|
To write a record to a file, do the following:
Note: If you use a variable for the filename on a PUTFILE statement,
use a nested variable to contain the record, for example:
As long as the file remains open, successive PUTFILE statements write successive records to the data set. For a data set with a disposition of NEW, OLD, or SHR, if you close the file and then re-open it, a subsequent PUTFILE statement overlays the first record in the data set. For a data set with a disposition of MOD, if you close the file and then re-open it, a subsequent PUTFILE statement adds a record to the end of the data set. Assume a CLIST contains the following variables:
To place the previous values in a data set called D58TAN1.CURNTSAL.DATA,
you can code the following:
|
Copyright IBM Corporation 1990, 2014 |