Previous Topic: CONTINUE Control StatementNext Topic: DEFINE Control Statement


CONTROL Control Statement

The CONTROL control statement alters the default specification for line count, line size, database ddname, print file ddname, and output file name.

Syntax

CONTROL
         LINECNT=n
         LINESIZE=n
         DATABASE=high-level-name
         PRTFILE=name
         OUTFILE=name
         RULER=YES|NO

where:

LINECNT=n

Specifies the maximum lines printed per page of output.

n must be a number greater than 10.

The default line count is 60 lines. Aliases of LINECNT are LINECOUNT, LINES, LC, and L.

LINESIZE=n

Specifies the maximum width of a print line including the carriage control n.

DATABASE=high-level-name

Specifies the high-level name of the database

If omitted, the high-level name specified in the PARM parameter on the EXEC JCL statement is used. Aliases for DATABASE are DB and D.

PRTFILE=name

Specifies the name of the DD statement to which the PRINT control statement writes its output.

The default ddname is PRTFILE. Aliases for PRTFILE are PRT, PF, and P.

OUTFILE=name

Specifies the name of the DD statement to which the OUTPUT control statement writes its output.

The default ddname is OUTFILE. Aliases for OUTFILE are OUT, OF, and O.

RULER=YES|NO

Specifies whether or not a special line of dashes is printed after the sub-heading lines generated from the PRINT control statement. The special line contains dashes under each individual field that is print. The length of the dash is equal to the length of the field being printed or the sub-heading field whichever is longer.

The default is NO. Specify YES to generate the special ruler line.

Example

To specify a line width of 80, a line count of 55, and a print DD statement of PRINT, enter the following:

/CONTROL LINESIZE=80 LINECNT=55 PRTFILE=PRINT