> -----Original Message----- > From: IBM Mainframe Assembler List > [mailto:[email protected]] On Behalf Of Paul Gilmartin > Sent: 18 November 2011 16:37 > To: [email protected] > Subject: Re: Conditional assembly for COBOL? > > > > On Nov 17, 2011, at 14:35, Bernd Oppolzer wrote: > > > The PL/1 preprocessor is IMHO the most powerful tool to do > such things, > > but maybe you don't have it, if you have no PL/1 licensed. > > > > The ASSEMBLER macro processor will not work, because you cannot > > extract the result and send it to the COBOL compiler, AFAIK. > > > > The C preprocessor would work, if you have it. I believe > that C belongs to > > z/OS, so you don't need to license it. But the C > preprocessor is very > > simple > > and somewhat restricted. Don't know if it serves your needs. > > > I believe that LE is now the C runtime environment, so you can > run compiled programs without licensing C. C itself is priced > separately, and I suspect this applies to the preprocessor. >
Dave Pitts has os/390 & MVS ports of GCC that run with LE http://www.cozx.com/~dpitts/gcc.html > > So maybe you will have to write your own. This can be done > using REXX or > > C or any other language - even COBOL. I would use C, others > maybe REXX. > > > Or use existing art: > > http://en.wikipedia.org/wiki/M4_%28computer_language%29 > > -- gil > >
