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

Need equivalent conversion for Older Version code


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Tue Dec 04, 2007 11:36 pm
Reply with quote

I have older version of COBOL code and its giving compilation errors with new processors. Can anyone please let me know what is the equivalent conversion for these statements marked in Red?

MOVE A-VAR1 TO B-VAR2.
ON 1 MOVE C-VAR3 TO D-VAR4.

WRITE REPORT-REC FROM TANK-TITLE1
AFTER POSITIONING 0 LINES

Both ON and POSITIONING keywords does not take with New Processor.

Thanks
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Dec 04, 2007 11:58 pm
Reply with quote

AJAYREDDY wrote:
I have older version of COBOL code and its giving compilation errors with new processors. Can anyone please let me know what is the equivalent conversion for these statements marked in Red?

MOVE A-VAR1 TO B-VAR2.
ON 1 MOVE C-VAR3 TO D-VAR4.

WRITE REPORT-REC FROM TANK-TITLE1
AFTER POSITIONING 0 LINES

Both ON and POSITIONING keywords does not take with New Processor.

Thanks


ON is gone, you will have to set up your own means of doing this. POSITIONING I think can be replaced with ADVANCING.
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
Search our Forums:

Back to Top