$DSCALL OPT=PRINT

Prints one or more records from a data set.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=PRINT DD=DD_name 
           [ MEMBER=member_name ]
             DATA={ }
           [ LIMIT=number ]
           [ TRUNCATE=number ]

Use this option to print the records in a member of a data set.

Operands:

OPT=PRINT

Specifies that a print action is to be performed.

DD=DD_name

Specifies the ddname of the data set to be opened for printing.

MEMBER=member_name

Specifies the member name. If the DD operand is used to identify a concatenated data set, the member is obtained from the first data set that it exists in.

DATA={ }

Specifies the records to be printed.

LIMIT=number

Specifies the maximum number of records to be printed in the file. This operand is only applicable if DATA=* is specified.

TRUNCATE=number

Specifies the length to which the records printed from the file are truncated. The value of the TRUNCATE operand must be in the range 1 to 32,760.