Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us