OK everyone...I figured it out...my problem is that I was BUILDing over
top of the existing data. I just added the PARSEd fields in the INREC to
the end of the record, and moved the INCLUDE to OUTFIL. I could then add
an OUTFIL FILES=(00),BUILD=(1,160) to get only the original record.
Sorry to have bothered all y'all!
Billy
------ Original Message ------
From: "Billy Ashton" <[email protected]>
To: "IBM Mainframe Discussion List" <[email protected]>
Sent: 6/3/2020 12:12:33 PM
Subject: How to create two output files in DFSORT
Hi folks!
Today's SORT challenge:
I am reading a temporary file for input, created in an earlier jobstep.
I am using
OPTION COPY
INCLUDE COND=.....
INREC IFTHEN=....
OUTREC ...,
IFTHEN=...
This keeps only the records I want to reformat, and creates a nice
output file of commands. However, in order to debug this, I need to see
the whole input file. I tried adding
OPTION COPY
OUTFIL FILES=(00)
to dump everything into SORTOF00, but it still follows my INREC BUILD
processing.
The question, is there a way to have SORT dump the entire input file to
SYSOUT as it was input, without all my manipulations, and to also do
the above BUILD processes?
Thanks for your patience!
Billy
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN