z/OS DFSORT Messages, Codes and Diagnosis Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Being aware of data management rules

z/OS DFSORT Messages, Codes and Diagnosis Guide
SC23-6879-00

Standard system data management rules apply to all data set processing. In particular:
  • Be aware that when using fixed standard record format for input data sets, the first short block is treated like an End of Volume. See z/OS DFSMS Using Data Sets for more details.
  • Be aware that, in some cases, if a DD statement specifies a data set for output that is extended to a second or subsequent volume, and another DD statement within the same step requests the same data set, only the records on the first volume will be read, and incorrect output will result.

Specifically, when a new output data set is allocated with a unit count and volume count greater than one but specifies no volume serial numbers, one volume is allocated. If a second or succeeding DD statement within the same step requests the same data set, the same volume is allocated to it. If this job step extends the output data set to more volumes, this new volume information is not available to the second or succeeding DD statement.

Thus, you should not use different DDs for a data set to be used for output and then input in the same step, unless that data set cannot be extended to a second or subsequent volume, or is allocated with the guaranteed space attribute in the storage class. See z/OS MVS JCL Reference and z/OS DFSMS Using Data Sets for more details.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014