The UNLOAD command copies a specified generation of a table to a sequential output dataset.
UNLOAD
TBL=(table name) |
Required keyword Required keyword |
Action
The specified generation is written to the dataset connected to the DD statement named DDNAME in the TO parameter field. STARTREC and RECCOUNT can be used to limit the rows unloaded; STARTBYT can be used to control the portion of each row unloaded.
If the record length is greater than the row size, the remainder of the record is filled with spaces.
If the record length of the dataset defined by the TO keyword is less than the ROWSIZE of the table, the unloaded rows will be truncated to the record length of dataset.
The number of unloaded rows is displayed.