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. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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