_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Thanks a lot for your support.Now based on your new code there is again a new problem which is coming up. After executing the ICEMAN step when there are include conditions ,the formatted sort card is created fine and the next step of extract also works fine and the code below:
Both OUT1 and OUT2 are created as per the desired requirement.
Now the problem is when there are no includes in the Input Sort card File what is happening is both OUT1 & OUT2 are coming to be empty datasets and the SORTOUT is having the desired copy of SORTIN which is not my requirement. When there are no includes OUT1 should have the the data exactly copy of the SORTIN and OUT2 should be empty.If i take out SORTOUT i get error as SORTOUT dataset is not defined.If i take out SORTIN and gave a name as IN then also i get an error SORTIN not defined.
Please help me further how to solve the problem.Thanks a lot.
BTW, DFSORT ignores BUFNO for SORTIN and SORTOUT, and you don't need SORTWKdd DDs for STEP010 since its a COPY. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Thanks a lot for all your support for which you have helped me.It is working fine in both the conditions :
a) when no includes
b) when includes
But there is a small problem which i guess is happening, when there are no includes ,the SORTIN should be exactly copied to OUT1 and OUT2 should be empty which is happening as per the logic .But when i compare the datasets SORTIN and OUT1 in case of no includes there are some comparisions / changes in records, what i am assuming it is because of the the SORT FIELDS which is creating the mismatches , the count of both SORTIN and OUT1 are same records but there are some changes between SORTIN and OUT1, can you please let me know why SORTIN is exactly not copied to OUT1 , should we take care of SORT FIELDS.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Jul 16, 2008 12:29 pm Post subject:
I don't understand. The SORT statement changes the order of the records.
Are you saying that if you have a SORT statement and INCLUDEs, you want the records sorted, but if you have a SORT statement and no INCLUDEs, you don't want the records sorted? Why would you have a SORT statement in the original control cards if you don't want the records sorted?
I thought you wanted to change the INCLUDE to OUTFIL statements, or not have the OUTFIL statements if there's no INCLUDE. I don't remember seeing anything about ignoring the SORT statement in some cases. I'm now thoroughly confused about what you're trying to do and what output you expect for each case. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Thanks a lot for your help.I am all set with your code and i was wrong in my understanding and i am clear now.Once again thanks for your overall support.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Jul 17, 2008 10:18 am Post subject:
Ok, good. Glad I could help. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
All times are GMT - 5 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum