I should get the following output :
A1OCT19
A3OCT19
A5OCT19
GDG(0) and GDG(-1) should get compared:
1. if both has the same record , it shouldn't come in the output ,ex: A2OCT18 & A4OCT17 (A duplicate record would mean all the fields within the records have a one to one match. )
2. if new record[it shldn't be in GDG(-1)] was found in GDG(0) , it shld come in output , ex:A5OCT19
3. when comparing , if any of the record got changed from the previous version , it shld come in output, ex:A1OCT19 & A3OCT19.
I want this to be done in JCL , not in the program.
If any one of u know how to do this , pls send me the command.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Yes, CON concatenates the -1 input GDG and the 0 input GDG in that order.
Yes, T1 is a temporary file.
The first SELECT only keeps the nondup records between the two files based on the key in positions 1-7. The result is placed in T1.
The second SELECT uses the remaining records as input (T1) and selects the last record with each key in position 1-2 for output (OUT).
For complete details on DFSORT's ICETOOL, see Chapter 6 of "z/OS DFSORT Application Programming Guide". You can access all of the DFSORT books online, including that one, from: