

IBM DOS/VS COBOL has a Format 2 WRITE statement that is similar to the ACUCOBOL-GT Format 1 WRITE statement, except that the ADVANCING clause is replaced by a POSITIONING clause:
ACUCOBOL-GT:
{BEFORE} ADVANCING {number [LINE ]}
{AFTER } { [LINES]}
{PAGE }
IBM DOS/VS COBOL:
AFTER POSITIONING {identifier} LINES
{integer }
If the line count in the IBM form is an identifier, it must be a one-character alphanumeric item, interpreted as follows:
| Character
| ACUCOBOL-GT Equivalent
|
| ' '
| AFTER ADVANCING 1
|
| '0'
| AFTER ADVANCING 2
|
| '-'
| AFTER ADVANCING 3
|
| '+'
| AFTER ADVANCING 0
|
| '1'
| AFTER PAGE
|
| others
| invalid or not supported in ACUCOBOL-GT
(implemented as AFTER ADVANCING 1) |
| Value
| ACUCOBOL-GT Equivalent
|
| 0
| AFTER PAGE
|
| 1
| AFTER ADVANCING 1
|
| 2
| AFTER ADVANCING 2
|
| 3
| AFTER ADVANCING 3
|
| others
| invalid or not supported in ACUCOBOL-GT
(implemented as AFTER ADVANCING 1) |