FRANK ! HEADER1 would do what I want, but the "header" may be up to 2,000 chars long. Is this possible with OUTFIL? MIKE ! Your idea would work using intermediate files, but I would prefer to do it in one execution. There will be hundreds of input ds going to thousands of output, and resources are short. --------------------------------------------------------------------------- Maybe I don't understand what you're trying to do, but if you just want to add the same header at the top of each file, just have the REXX generate an OUTFIL HEADERx statement along with the OPTION and SORT statements:
OPTION NULLOUT=RC4 SORT FIELDS=COPY,STOPAFT=50000,SKIPREC=150000 OUTFIL REMOVECC,HEADER1=('THIS IS THE HEADER') Frank Yaeger - DFSORT Development Team (IBM) - yae...@us.ibm.com Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html