Previous Topic: CONTINUE CommandNext Topic: COPYDD Command


CONTROL Command

(Area 4A)

The CONTROL command provides two distinct functions:

The format of the CONTROL command is:

►►─ CONTROL ─┬────────┬───────────────────────────────────────────────────────►
             └─ SKIP ─┘

 ►─┬────────────────────────────────────────────────────────────────────────┬──►◄
   │                                                      ┌───────────────┐ │
   └─┬─────┬─ fldnm ─┬──────────────┬─┬─────────┬─┬─────┬─▼─┬───────────┬─┴─┘
     └─ ( ─┘         └─ ;sseq ──────┘ └─ 'lit' ─┘ └─ ) ─┘   ├─ SKIP ────┤
                                                            ├─ NEWPAGE ─┤
                                                            └─ OPTPRT ──┘
( )

Parentheses surrounding the field and associated parameters indicate that the field is a control break field and a sequence field. The parentheses must be paired.

fldnm

The field name specifies that the named field is to be a sort sequence field used to determine the final sequence of the output report for which this CONTROL command pertains.

;sseq

The sort sequence specifies that the individual field has a sort sequence. It is separated from the field name with a semicolon.

;A

Specifies that the field has an ascending sort sequence.

;D

Specifies that the field has a descending sort sequence.

'lit'

The literal specifies an alphanumeric literal to be used as the control break legend. You can specify a control break legend for any or all control break fields.

SKIP

Specifies one of two optional functions:

NEWPAGE

Has the same function as SKIP when specified after a control break field, but also resets the page number on the output report to 1 when it causes a page eject on a control break.

OPTPRT

OPTPRT following a control break field indicates the control break field will print only when it changes, occurs after a heading break, or occurs at control total time.

Note the following: