View previous topic :: View next topic
|
Author |
Message |
abhijit.nayak01
Active User
Joined: 22 Mar 2009 Posts: 161 Location: South Africa
|
|
|
|
Thanks Bill for helping. changing the program is very tough task which we faced yesterday in terms of approval. Promote the code to different levels in changeman and then asking for approval which really takes time. this solution will definetly be used for future abends.
Thanks again. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Thanks for letting us know.
I think it is better to get to the root of the problem with the data, rather than just having something handy as a permanent thing. If you're "coping" with one "problem" it can often "hide" something else, until the point it "bites" you, big time. |
|
Back to top |
|
|
abhijit.nayak01
Active User
Joined: 22 Mar 2009 Posts: 161 Location: South Africa
|
|
|
|
Hi Bill,
Thanks for your suggestion. The problem happened because frontend did some reboot and after the first reboot the first file sent will always have the date and time issue.
apparently I have one more doubt with the when=group. Now the date and time is resolved. It will be in the same pair whenever the indicator is 1 as mentioned earlier.But in the same file I have one more issue.
there is a field at column 94-98 which is called type of transaction and they will be always in group.
like
1111
2222
1111
2222
1111
2222
so, 1111 will be always paired with 2222 and 3333 will be always paired with 4444 but i got the file with below case
1111
2222
1111
5555
1111
2222
1111
6666
1111
2222
so, i need to find out the records which didnt satisfied the above criteria
o/p will be
1111
5555
1111
6666 |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
abhijit.nayak01 wrote: |
apparently I have one more doubt with the when=group. Now the date and time is resolved. It will be in the same pair whenever the indicator is 1 as mentioned earlier.But in the same file I have one more issue.
there is a field at column 94-98 which is called type of transaction and they will be always in group. |
If you had understood Bill's sample job it is quite easy to add the new requirement. Previously you pushed the date , now push the 1111 on to the next record and compare it using INCLUDE. It is a simple one and yet you want the complete control cards. Try to understand the control cards given to you and learn and then apply the same logic to other jobs. |
|
Back to top |
|
|
abhijit.nayak01
Active User
Joined: 22 Mar 2009 Posts: 161 Location: South Africa
|
|
|
|
Hi Bill,
I tried the below sort card but its not dropping the records:
Code: |
OPTION COPY
INREC IFTHEN=(WHEN=INIT,
BUILD=(1,4,10X,5)),
IFTHEN=(WHEN=GROUP,BEGIN=(113,4,CH,EQ,C'1111'),
END=(113,4,CH,NE,C'2222'),
PUSH=(5:37,10))
OUTFIL OMIT=(113,4,SS,EQ,C'1111,2222'),
BUILD=(1,4,15) |
Please suggest. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, you've PUSHed some data, but you don't use it for anything.
If that is your "pair", you will now have both pieces of information on the same second record, so can compare them.
It might be an idea to set out, as a new, separate, question with a link to this one, exactly what you want to do specifically with this particular requirement. |
|
Back to top |
|
|
|