z/OS TSO/E User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Sending Formatted Data to Another Data Set

z/OS TSO/E User's Guide
SA32-0971-00

To send formatted data to an on-line data set from which you can view and edit the data before printing, issue the PRINTDS command with:
  • The DATASET operand immediately followed by the data set name enclosed in parentheses.
  • The TODATASET operand immediately followed by the name of a new or existing data set enclosed in parentheses.

If the data set named after the TODATASET operand has not yet been allocated, the PRINTDS command allocates the space for the new data set. If the data set named after the TODATASET operand already exists, new data from the PRINTDS command replaces the existing data.

Example
To format data from data set PREFIX.REPORT.TEXT(YEAREND) and send it to data set PREFIX.YEAREND.TEXT, enter:
PRINTDS DATASET(report.text(yearend)) TODATASET(yearend.text)
After viewing and editing PREFIX.YEAREND.TEXT, you can print the revised data by entering:
PRINTDS DATASET(yearend.text) notitle

Use the NOTITLE operand to suppress the default of TITLE, which causes a title to print at the top of each page. Because TITLE was the default for the first PRINTDS command in this example, you do not need a second default title with the second PRINTDS command. For more information about the TITLE/NOTITLE operands, see z/OS TSO/E Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014