Hi Kolusu,
Thanks for the reply.But I got a small doubt here.When I tried to put the stuff in paper(since I am at home and not able to access the mainframe to test the code),Igot this doubt.
In the next step,Since I am using the sum fields=none option on the values,I am going to end up getting the
9AA891 record and the AAA123 record will be dropped.
Am I missing some thing while checking this on paper ?
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Jun 13, 2006 3:17 pm Post subject:
bprasanna,
I just realized that the above proposed solution will NOT work in your case as both records will be changed.
The following JOb will give you the desired results, but I am not sure your version of syncsort supports the BUILD feature.I assumed that your key ('9' in this case starts at pos 5)
Hi Kolusu,
I am having the release of Z/OS 1.2.0.0R version.So the Build function won't work in my machine.Do you have any other idea to achive this one?
Thank you
Murali _________________ ----------------
Thanks&Regards
Bprasanna
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Jun 14, 2006 7:34 am Post subject:
bprasanna,
Found an easier way to delete the second record. try the following control cards. We add a seqnum of 1 byte after the rdw to all the records start with 5 and incrmenting with 5. By doing so every second record will have a zero as seqnum . ex:
kolusu,
I think this one also won't work as we are expecting.This will work only if the
records are in odd number and will fail in case of even numbers.
See the below example.
i/p file
AAA
A99
A66
A88
9AA
9BB
AZA
AZC
9ZZ
After adding the incrimental value of 5 ,we are going to have the
0AAA
5A99
0A66
5A88
09AA
59BB
0AZA
5AZC
09ZZ
Now if I am going to use the omit(0 and 9) condition,then the o/p will be
AAA
A99
A66
A88
9BB
AZA
AZC
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Jun 14, 2006 2:56 pm Post subject:
bprasanna,
I cannot think of a solution with the available features of syncsort. If easytrieve is an option then following the code will give you the desired results.
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