For ISPF and TSO/E sessions

To create a report from the current session, you set the hardcopy mode on, using the hardcopy command:

Read syntax diagramSkip visual syntax diagram
      .-ON--.   
>>-H--+-----+--------------------------------------------------><
      '-OFF-'   

When hardcopy mode is in effect, all data in all reports requested during the session is written to a preallocated output data set.

Data Set Allocation for ISPF and TSO/E Sessions

  • Allocate the output data set before you start the Monitor II session:
    ALLOC F(RMFDMTSO) DS(data.set.name) SHR
    where data.set.name is the name of the data set to be used for the hardcopy output. Any existing contents of the data set are overwritten.
  • To add output from this session to existing data, use the command:
    ALLOC F(RMFDMTSO) DS(data.set.name) MOD

Without any data set allocation, the output will be written to SYSOUT class A.

A single output data set is created for all print command (TSO/E session only) and hardcopy command output generated during a single session. Because reports requested might be multi-frame reports and you might choose not to scroll through all of the data during the display session, the data written to the output data set when hardcopy mode is in effect can be more extensive than that displayed on the screen.

Hardcopy mode is turned off when the session begins. You must enter H ON or H to set hardcopy mode on. The command takes effect with the next report you enter.