Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Name

Status
Not open for further replies.

Caden

Programmer
Dec 9, 2001
101
CA
HI all, I can't remember the name of this command, maybe somebody can help me.

Let's say you want a page with 40 lines in it, what is the command to make cobol jump to a new page, and then I can start my heading lines again etc etc. Just can't think of the syntax of that one command

Thanks
Caden
 
The version given by Webrabbit is the better version, but you may also frequently see the following:

SPECIAL-NAMES.
<your-preference-name> IS C01.
...
PROCEDURE DIVISION.
...
WRITE PRINT-LINE BEFORE/AFTER [ADVANCING] <your-preference-name>
...

where C01 stands for &quot;channel 01&quot; which from the very early days of computing indicated the position to check for a stop mark on a band that controlled the printer advance mechanism on old IBM printers. Channel 01 being the start of a new page and subsequent channel #'s (2-12) being used for additional arbitrary vertical positions on the page.
&quot;Code what you mean,
and mean what you code!
But by all means post your code!&quot;

Razalas
 
Oops, sorry, I got the SPECIAL-NAMES clause backwards. It should be

SPECIAL-NAMES.
C01 IS <your-preference-name>.

&quot;Code what you mean,
and mean what you code!
But by all means post your code!&quot;

Razalas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top