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
 

 

Migration from COBOL VS to COBOLE

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

New User


Joined: 06 Dec 2005
Posts: 5

PostPosted: Tue Dec 06, 2005 4:41 am    Post subject: Migration from COBOL VS to COBOLE
Reply with quote

Hi,

I am working on a migration project where we are converting all COBOL VS programs to COBOLE. POSITIONING is a statment in COBOLVS that is not supported in COBOLE. The equivalent in COBOLE is 'AFTER ADVANCING XX LINES'. The value of XX depends on what value is passed to the printer carriage return.

Below are a few values that I am aware of.

Carriage return Corresponding COBOLE code
1 AFTER ADVANCING PAGE
' ' AFTER ADVANCING 1 LINE
0 AFTER ADVANCING 2 LINES
- AFTER ADVANCING 3 LINES

Can some one let me know what would be the COBOL code if the value of Carriage return is 'C'?
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 6:42 am    Post subject: Re: Migration from COBOL VS to COBOLE
Reply with quote

Hi Mehts007,

Try looking in the programmer's guide here


http://www-306.ibm.com/software/awdtools/cobol/zos/library/


Hope this helps.
Back to top
View user's profile Send private message
mehts007

New User


Joined: 06 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 10:51 pm    Post subject: Re: Migration from COBOL VS to COBOLE
Reply with quote

Hi Guys !

I got a solution for this. Channel names are defined in the SPECIAL-NAMES section of the program. Like

SPECIAL-NAMES.
C01 IS TO-TOP-OF-PAGE
C12 IS TO-BOTTOM-OF-PAGE.
*

And later in the write statement use

AFTER ADVANCING TO-BOTTOM-OF-PAGE.
or
AFTER ADVANCING TO-TOP-OF-PAGE.

For values of channel names please refer to http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ib6p5mst/APPENDIX1.1.5.12.1?SHELF=&DT=20010115105309

Thanks!
Mehta007
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