IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cobol key word "POSITIONING"


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 11, 2010 4:40 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 11, 2010 5:24 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top