I have one input file, need to split it into two output files which can be done. problem i am facing in this is...for the first file say city code = 0, in need to do outrec to change the length and in the second file i need to write the records other than city code 0.
input file and ouput file record length is 504 VB.
i am able to create one sortout file by using this sort card.
SORT FIELDS=COPY
INCLUDE COND=(5,2,CH,EQ,X'0004')
OUTREC OVERLAY=(14:C'XXXX XXXX XXXX XXXX',60:C'99999999',
74:C'99999999')
now need to include one more conditon for city code = 0. then only it should do outrec and write this format to the sortout1 file. if city code is not equal to 0, should write the whole record into sortout2
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: