Hi,
I have one input file with Header, Detail, and Trailer record. There are more than one header and trailer records. I want to omit some Detail records from the file and want to update any one trailer record.
Input File -
RECFM = FB
LRECL = 1300
01 REC-TYPE PIX X(02).
88 HEADER-REC VALUE '10'.
88 DETAIL-REC VALUE '20'.
88 TRAILER-REC VALUE '90'.
Recorde to be Omited
OMIT COND=(612,02,BI,EQ,X'00')
I have used following SORT CARD but it's not working.
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
What do you mean by "it's not working"?
Please post all sysouts related to "it's not working".
What does the input look like?
What does the "it's not working" output look like?
What would the output look like if it was working?
In output file it's updating all trailer records, but I want update just one Trailer record.
It should update any one Trailer record from below Trailer record
90000007377
90000147370
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
sandip_mainframe,
Assuming that you don't consider the header records as part of count and only consider the detail records, here is a job which would update the FIRST trailer record (90 in pos 1 thru 2)
Hi Skolusu,
Thanks a lot for your help. The sort card provided by you is working.
Do you have any documentation for such a complex sort card, if you have any document or any link please post it, so that I can learn such a complex sort cards.
Do you have any documentation for such a complex sort card, if you have any document or any link please post it, so that I can learn such a complex sort cards.
First thing... This is not complex sortcard...
Other thing, If you need such good examples you can have look at various posts and their answers by Kolusu\Frank. under DFSORT\ICETOOL part of the forum
That would give you fair idea of its usage.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
sandip_mainframe,
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: