View previous topic :: View next topic
|
Author |
Message |
akatast
New User
Joined: 05 Mar 2009 Posts: 15 Location: Ohio
|
|
|
|
I am upgrading Cobol version in my shop to Enterprise Cobol. I have compiled a very old code with Enterprise Cobol compiler, I am getting error in this piece of code:
WRITE PRINT-LINE FROM WS-PAGE-HEAD-2
AFTER POSITIONING 1 LINES.
Key word POSITIONING showing error with both Enterprice and VS Cobol-II compilers. My question is do we had keyword POSITIONING in any old compiler? and what is replaced keyword in new compilers? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
advancing ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
AFTER POSITIONING goes back to OS/VS COBOL days -- a long time ago.
AFTER POSITIONING 0 was the same as AFTER ADVANCING PAGE.
AFTER POSITIONING n was the same as AFTER ADVANCING n LINES.
You could also have AFTER POSITIONING <variable> where the carriage control was embedded in the variable (1 - page, space - 1 line, 0 - two lines, and so forth per carriage control conventions). |
|
Back to top |
|
|
akatast
New User
Joined: 05 Mar 2009 Posts: 15 Location: Ohio
|
|
|
|
Thanks Robert.
I got your point but I have littlebit doubt that what was the work of POSITIONING?
We can use ADVANCING in place of POSITIONING now? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Yes, ADVANCING replaced POSITIONING. Positioning was originally used with carriage control tapes on printers that had a physical carriage control tape -- POSITIONING 3 meant use the 3rd column of the carriage control tape, IIRC. |
|
Back to top |
|
|
akatast
New User
Joined: 05 Mar 2009 Posts: 15 Location: Ohio
|
|
|
|
Thanks a lot Robert. |
|
Back to top |
|
|
|