Using Syncsort, from a flat file I hav to do modification on some selected records and has to write all the records(modified as well as untouched records) into output file.
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
Hi Smita V,
Quote:
Using Syncsort, from a flat file I hav to do modification on some selected records and has to write all the records(modified as well as untouched records) into output file.
Is it possible in a single step and how?
Yes, it is possible. Please give sample input file and sample output along with other info like LRECL and RECFM of file.
I tried IFTHEN option but it is not working for me.
How is it "not working"? Are you getting a syntax error?
Support for IFTHEN was included in SyncSort for z/OS 1.2.1 and later.
If you are running SyncSort for z/OS 1.2.0, then this can still be accomplished in a single pass of the data without using IFTHEN. You can code an INREC statement to add a field at the end of the record which contains the current system date, and then use that field as the replacement value in OUTREC CHANGE.