Previous Topic: Field DescriptionsNext Topic: Filters


Printing Data Sets

You can print sequential, VSAM, and partitioned data set members using the Print Dataset screen.

Follow these steps:

  1. Select PRINT from the Main Menu.

    The Print Dataset screen opens.

  2. Complete the following fields:
    Dataset name

    Specifies the data set name of the data set to be printed. The data set can be sequential, PDS, or VSAM.

    You can use wildcard and DSN list syntaxes in the DSN fields. Do one of the following:

    • Type a wildcarded DSN containing an asterisk (*) or a percent sign (%) for unknown characters of the DSN.
    • Type D to request a directory of DSN Lists.
    • Type D dddddd where 'dddddd' is the name of a DSN list.
    Member name

    Defines the name of the member you want to print. You can enter a fully qualified or wildcarded member name, or leave the field blank to see a list of members in the data set.

    Volume

    Specifies the volume serial number of the volume on which the data set resides if the data set to be processed is uncataloged.

    Print mode

    Specifies the print mode. Type one of the following values:

    C—(Character)–Record printed with 100 bytes to a line with unprintable characters displayed as blank.

    H—(Hex)–Three line display with character over hex value.

    S—(Single Record Format)–A display line for each field in the record with each line containing a field name and the field's value.

    Starting Key/Rec #

    Defines where to start printing within the input file. The format of the starting location depends on both the file type. You can specify the starting key by entering a value in one of the following formats:

    • Sequential file–starting record number (numeric)
    • VSAM KSDS–Key of start position in C'xxx' format or X'hhhh' format (for example, C'0001' or X'40400000')
    • VSAM ESDS–RBA of start position in X'hhhh' format (Ex. X'60F0E8')
    • VSAM RRDS–Relative Record Number of start position (numeric)
    Print limit

    Specifies the maximum number of records to be printed.

    Note: If you have not specified a value or if the value in the Print Limit field equals zero, no limit is placed on the number of records printed.

    Execution Mode

    Defines the print execution modes. Specify one of the following:

    S—Generate and submit JCL to perform the function.

    E—Generate JCL to perform the function and initiate an edit session on the JCL. You can alter the JCL and either submit the JCL or save it to another location.

    Layout dataset

    Specifies the name of the PDS that contains the layout that you want to use.

    Layout member

    Specifies the name of the layout member that you want to use.

    Leave this field blank to receive a directory of the members in the record layout PDS, if the print mode is single record format.

    Type a wildcarded member name to receive a directory of members that match that wildcard.

    Selection Criteria

    Specifies selection criteria to filter the records or members to be printed.

    Note: Selection criteria are ignored if you type a single asterisk in the print member name. If you want to apply selection criteria to all members, leave the print member name blank.

    Selection criteria are used to restrict your view to certain members or records based on the following types of parameters:

    For a complete explanation of selection criteria and examples of valid syntax, see the chapter "Filters."

  3. (Optional) To change the print destination in the Override Print Output Control panel, set the Confirm print class & destination field to Y in the Setup option 1 DEFAULTS.

    The Override Print Output Control panel is prepared with the defaults that you set in the Setup option 2 PRINT. If you did not create a default manually, the panel is prepared with the defaults that were specified in the table of options for your site.

    ---------- CA File Master Plus -- Override Print Output Control ----------

    COMMAND ===>

    Sysout class ===> A

    Number of Copies ===> 1

    Enter One of the Following to Control Print Destination (Optional):

    Destination printer ===>

    OR External JES node ===>

    Userid at JES node ===>

    OR Sysout writer name ===>

    OR Print dataset name ===>

    Dataset disposition ===> (NEW, SHR, or MOD)

    ENTER to proceed END or CANCEL to bypass override

    Complete the following fields:

    Sysout class

    Specify a Sysout class.

    Number of Copies

    Specify the number of copies to print to a sysout.

    Specify one of the following fields:

    Destination printer

    Specify a printer you want to use.

    External JES node

    Specify a JES node where you want the printout to be sent.

    Sysout writer

    Specify a writer name to let the printout be processed by a specific writer.

    Print dataset

    Specify a data set name to save the print data to. The data set can be a sequential data set or an existing library.

    • Printing to a library requires you to enter the Print data set name in the form dataset-name(member). The Dataset disposition must be SHR.
    • Printing to a sequential data set creates a new data set if no data set exists and the Dataset disposition is NEW. When the Dataset disposition is SHR, the printed data replaces the contents of the Print data set. When the Dataset disposition is MOD the printed data are appended to the contents of the Print data set.
  4. Press Enter to start printing.

    Enter CANCEL or END if you want to use your initial settings to print.