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: 6968
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: 8117
Location: East Dubuque, Illinois, USA

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: 8117
Location: East Dubuque, Illinois, USA

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
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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