On Thu, 17 Nov 2011 17:15:17 -0500, John Gilmore wrote: >My practice is 1) to generate the output I need using PUNCH and REPRO >(for invariant text) and 2) direct SYSPUNCH output to the internal >reader. > >This scheme requires that this SYSPUNCH output include the appropriate >JCL, as is always the case with output directed to the internal >reader.
An alternate method could be to direct SYSPUNCH to a temporary data set, which is then used as input to a later Cobol compile step. John's method has the benefit of greater flexibility to, for example, include additional steps such as other pre-compilers or linkage editors. -- Tom Marchant