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

REXX utility for copy book conversion.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts Copy only TEXT or String from a record SYNCSORT 4
Search our Forums:

Back to Top