z/OS TSO/E Primer
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Printing a data set in line mode TSO/E

z/OS TSO/E Primer
SA32-0984-00

The PRINTDS command sends data sets directly to a system printer defined by your installation. As you did with the ALLOCATE and DELETE commands, you can issue the PRINTDS command in line mode TSO/E to do the work of several panels. To print the sequential data set PREFIX.TEST.DATA, enter after the READY message:
PRINTDS DATASET(test.data)

Remember that you do not need to specify the first qualifier if the first qualifier is your prefix.

Similarly, to print member FEB27 of partitioned data set PREFIX.MEMO.TEXT, enter:
PRINTDS DATASET(memo.text(feb27))

When using the PRINTDS command with a PDS, you can print either one specified member or the entire PDS. If you print an entire PDS, all the members plus the directory for the PDS are printed.

Exercise
To make sure the data set PREFIX.MEMO.TEXT exists and it has a member FEB27, do the following:
  • Enter the LISTCAT command to see a list of your data sets. Look for PREFIX.MEMO.TEXT. If it doesn't exist, create it by allocating it LIKE another PDS, or follow the example in Using data sets for creating a partitioned data set in ISPF/PDF.
  • To see a list of members for PREFIX.MEMO.TEXT, enter:
    LISTDS memo.text MEMBERS
If FEB27 does not exist, create it and edit it to add text. Then display the READY message and enter:
PRINTDS DATASET(memo.text(feb27))

Another READY message appears under the command, which indicates that the command was successful. If you see an error or a prompting message, the command was not successful.

This time, enter a TSO/E line command on an ISPF/PDF panel. On the COMMAND or OPTION line of any ISPF/PDF panel, enter the following PRINTDS command:
===> TSO PRINTDS DATASET(memo.text)

You see the bottom few lines of the panel disappear for a few moments. Then they reappear, which means the command was processed. If the command had not been processed, a line mode type of message would appear at the bottom.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014