On 18/11/2011 04:29 AM, Patrick Roehl wrote:
I’d like to be able to build various versions of a COBOL program by doing
something like a conditional assembly. Has anyone does anything like this?
Is it possible to add AIF statements to non-assembler source, “assemble
it,� and get the constructed source? Obviously trying to assemble the
result would be pointless, but can the constructed source be captured
somehow?
I’ve considered doing this with Rexx, but wonder if someone else has tried
to solve this. All suggestions are welcome.
Precede each cobol statement with a PUNCH command then add your AIF and
ANOP statements as required. Even consider whether the various SET
commands will assist in your purpose
Probably more elegant ways usinfg AREAD and other commands/exits that
I've never explored
Ken