My requirement is to compare type "AAA" records from both the datasets and issue a non-zero return code if the no. of "AAA" does not equal between Fiel-A and File-B. I want to compare the no. of "AAA" but not the entire record for any changes.
Please suggest.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Jun 09, 2010 10:24 am Post subject:
mf_user,
How do you recognize each group? When do you want to set a non zero return code? Lets say you have 10 groups and only 1 group count is off . Do you set the return code? or lets assume all the 10 group count is off. Do you set a different code? _________________ Kolusu
www.linkedin.com/in/kolusu
Posted: Wed Jun 09, 2010 10:32 am Post subject: sorry
Hi,
I am sorry..........I've not understood your question. I tried out the below given sort solution and got the counts from both files written to output. But, don't know how I would do the compare.
Yes........every set starts with 'AAA' and ends with 'CCC' - both the files. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Would you please explain me "REFORMAT FIELDS=(?,F1:1,345)". _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Kolusu, thanks for providing the details...........
sorry......this is not what I want
It is like just matching the count of records from two files.....a plain match of counts between two files. I posted my SORT job........that count should be matched.......
We receive two files from two different systems and the count of type AAA only to be matched and nothing else......
I agree that I am poor in explaining the things
Thanks for all your time. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Kolusu, thanks a lot the solution... _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Thu Jun 10, 2010 12:20 pm Post subject:
mf_user wrote:
Kolusu, before trying the solution you've provided I've tried the below given sample SORT and it seems not working as expected.......I get MAXCC=0
Is something wrong with this code Would you please help
Thanks.
I ran the code and got a return code of 4. You need to show me the sysout if you say you got a return code of 0. _________________ Kolusu
www.linkedin.com/in/kolusu
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