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
05 OUTACCN X(12).
05 OUTFIL1 X(3).
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.