Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cobol key word "POSITIONING"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
akatast

New User


Joined: 05 Mar 2009
Posts: 15
Location: Ohio

PostPosted: Wed Aug 11, 2010 3:20 pm    Post subject: Cobol key word "POSITIONING"
Reply with quote

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
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 11, 2010 3:39 pm    Post subject:
Reply with quote

advancing ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Wed Aug 11, 2010 4:40 pm    Post subject:
Reply with quote

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
View user's profile Send private message
akatast

New User


Joined: 05 Mar 2009
Posts: 15
Location: Ohio

PostPosted: Wed Aug 11, 2010 5:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Wed Aug 11, 2010 5:24 pm    Post subject:
Reply with quote

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
View user's profile Send private message
akatast

New User


Joined: 05 Mar 2009
Posts: 15
Location: Ohio

PostPosted: Wed Aug 11, 2010 5:27 pm    Post subject:
Reply with quote

Thanks a lot Robert.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us