On 8/17/07, Bob Cronin <[EMAIL PROTECTED]> wrote: > I have a pipe that simply reads a file into a stem and then does some Rexx > processing on the stem (yes, I know, bad form, that). > > I want to change it slightly so that if there is a line in the file that > says "INCLUDE fn ft fm" that the contents of the named file gets read into > the stem at the point where the INCLUDE statement occurred. > > Further, if the included file has any INCLUDE statements, I want them > treated the same way.
John's INCLPROC (on the 193 disk) is probably the standard for this. You might want to use a lookup stage to detect when you #include the same file twice so you will see it end. Rob
