You can do better than that. Have a look at half-pipes. They are specified in the SUBSYS=() parameter or something similar; this allows the massaging of data before the prgram sees them.
j. > > //TRYPIPE EXEC PGM=IKJEFT01 > //SYSTSPRT DD SYSOUT=* > //SYSTSIN DD * > PIPE literal /**/Say 'SAY output';output 'CONS output'|rexx *:|cons > /* >
