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
 

 

REXX utility for copy book conversion.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Tue May 30, 2006 12:09 pm    Post subject: REXX utility for copy book conversion.
Reply with quote

Hi,

We work on Batch systems and assembler.
We need to write a REXX utility which will convert an Assembler file layout to an normal COBOL copybook, so that is can be mapped with the file using file-aid.
Foe example if I have got follownig as assembler layout

OUTAREA DS 0CL178
OUTACCN DS CL12
OUTFIL1 DS CL3

then it should be converted to
01 OUTAREA.
05 OUTACCN X(12).
05 OUTFIL1 X(3).

Any idea/suggestions/approaches for doing this??

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

new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Thu Jun 01, 2006 10:23 pm    Post subject:
Reply with quote

Basically what you need a parser and a conversion map. Read thru each line and get the key words. Identify variables and output them as it is. the defenitions need to be converted with help of a map/table.

Hope it helps.
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 -> CLIST & REXX 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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


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