Previous Topic: NEWPAGE Control StatementNext Topic: RDUMP/RLONG Control Statement


PRINT/DUMP/TRANSLATE Control Statement

The PRINT/DUMP/TRANSLATE control statement will cause the specified data contained in the record to be printed under a specified column heading. If a column heading is not specified, the keyword representing that field is used as a column heading. The format for the control statement is:

{PRINT    }
{DUMP     }  keyword ['header1[,header2]'] [AS 'date format']
{TRANSLATE}

Control Statement Definition

PRINT or DUMP or TRANSLATE

Identifies the control statement. It must be followed by a space. If DUMP is specified, the data contained in the keyword is printed in hexadecimal format.

keyword

Indicates the TMC or Audit field to be printed. The length of a field to be printed can be specified immediately after the field. For example, to print a data set name of 10 characters, enter PRINT DSN(10). To translate hexadecimal values for RECFM, LABEL, DENSITY and TRTCH, specify TRANSLATE instead of PRINT, as in TRANSLATE RECFM 'RECORD,FORMAT'. Valid keywords are the TMC keywords listed in the Programming Guide and the Administration Guide and the additional TMSGRW keywords listed earlier.

header1,header2

Specifies the column heading for the specified keyword. The column heading must be enclosed within quotes with a comma separating header1 and header2. Two lines are available at output for headings: header2 is printed on the line below header1, and the heading will consist of two lines. If a column heading is not specified, the keyword name is used as header1. For example, if the control statement is PRINT EXPDT, the column heading is EXPDT.

AS 'date format'

Specifies the date format to be printed on reports. This operand is only valid if the keyword being printed is a date keyword. The date format must be specified within delimiters. For more information on valid date formats, see Overriding the Preferred Date Pattern. If CA 1 is active or batch active, this value will override the preferred date format specified in hlq.CTAPOPTN or the date format specified on the EXEC PARM; if CA 1 was never initialized, this value will override the default date format 'yyyy/ddd'. This operand is optional.