With this we are copying the matching records to output files. What should be added to copy the non-matching records to another output file(s)? _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Mon Apr 03, 2006 4:40 am Post subject:
Quote:
I've just changed the solution provided by Kolusu to suit SYNCSORT because, OPTIONS EQUALS does not work with SYNCSORT.
ranga_subham,
Says who ? Your shop might NOT have it as installed DEFAULT. Syncsort does support Option equals. Check this Link which shows a job to list all the installed defaults in your shop
Kolusu, Thanks for your insight. It is really amazing and surprising about the acumen you have on any subject. How do you get time to acquire knowledge? I am jealous of you...........
I will try this solution and come back here.
Thanks a lot. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Jul 16, 2008 5:45 pm Post subject:
Hari,
Kolusu is in class today, so I'll try to help you.
Quote:
When the count doesn't match between the two files I need to Abend the Job. Otherwise the job should run normally.
If by "run normally", you mean get RC=0, then this DFSORT job will do what you asked for. It will give RC=0 when the count in the two records match, or a U0209 ABEND when the count in the two records don't match. If you really want a RC=16 rather than an ABEND, then remove the DEBUG ABEND statement.
//SORTIN01 DD *
File1: NO. OF RECORDS: 00012300
//SORTIN02 DD *
File2: NO. OF RECORDS: 00012300
it would result in ABEND U0209.
If that's not what you want, then you need to explain more clearly what you do want. _________________ 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
I tried to run the above JCL, It's giving RC=0 for both scenario's.
i.e incase the count matches RC=0, and also incase the count does NOT matches RC=0.
Quote:
If that's not what you want, then you need to explain more clearly what you do want.
My requirement;
Case#1:
Code:
//SORTIN01 DD *
File1: NO. OF RECORDS: 00012300
//SORTIN02 DD *
File2: NO. OF RECORDS: 00012300
The count MATCH, I should get RC=0
Case#2:
Code:
//SORTIN01 DD *
File1: NO. OF RECORDS: 00012300
//SORTIN02 DD *
File2: NO. OF RECORDS: 00012333
I tried to run the above JCL, It's giving RC=0 for both scenario's.
i.e incase the count matches RC=0, and also incase the count does NOT matches RC=0.
I'm sorry Frank, I made a mistake while running the job which had resulted in RC=0, But the actual RC is ABEND S0C7. i.e incase the count matches RC=0, and also incase the count does NOT matches RC=0.
But the actual RC is ABEND S0C7. i.e incase the count matches RC=0, and also incase the count does NOT matches RC=0.
But the actual RC is ABEND S0C7. i.e incase the count matches ABEND S0C7, and also incase the count does NOT matches ABEND S0C7. _________________ Thanks,
Hari
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Jul 17, 2008 10:03 am Post subject:
You get the S0C7 because I thought your count field started in 24, but it appears to start in 17. Since you didn't specify where it started, I assumed the wrong starting position.
But my original job wouldn't have given the correct results anyway because I forgot to multiply one of the counts by -1 so the SUM would give 0 when the counts were the same. Here's a new version of the job that will give RC=0 for different counts and U0209 for the same count.
_________________ 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
Last edited by Frank Yaeger on Fri Jul 18, 2008 11:01 am; edited 1 time in total
_________________ 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, 3Next
Page 2 of 3
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