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

Migration from COBOL VS to COBOLE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 411
Location: Colarado, US

PostPosted: Tue Dec 06, 2005 6:42 am
Reply with quote

Hi Mehts007,

Try looking in the programmer's guide here


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
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 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 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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top