View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
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 |
|
|
new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
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 |
|
|
|