View previous topic :: View next topic
|
Author |
Message |
Sriramhari
New User
Joined: 11 May 2009 Posts: 17 Location: Bangalore
|
|
|
|
Hi All,
Need to update the Total record count and detail record count in the existing trailer record.
By using ICETOOL count is getting updated, but not as expected.
By giving the below sort card,
Code: |
//CTL1CNTL DD *
......................
IFTHEN=(WHEN=INIT,OVERLAY=(151:SEQNUM,9,ZD)),
IFTHEN=(WHEN=(1,1,CH,EQ,C'T'),
OVERLAY=(2:151,9,ZD,TO=ZD,LENGTH=9,
15:151,9,ZD,SUB,+2,TO=ZD,LENGTH=9)) |
Output looks like,
Code: |
T00000083600000083D |
(It should be 834 not 83D)
if i remove LENGTH=9 output looks like,
(It should be 000000834 not 834)
Any suggestion please.
Thanks,
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Use EDIT or TO=ZDF.
You could also look at OUTFIL's IFTRAIL to replace your coding more conveniently. |
|
Back to top |
|
|
Sriramhari
New User
Joined: 11 May 2009 Posts: 17 Location: Bangalore
|
|
|
|
Thanks a lot Bill, TO=ZDF worked as expected.
Thanks, |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
Hi Sriramhari
just out of curiosity..I wanted to know..if u were using Syncsort OR DFSort? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Good spot mistah kurtz. Thanks. |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
Thanks Bill. But I don't think I will get an answer considering that it 'worked as expected' !! |
|
Back to top |
|
|
Sriramhari
New User
Joined: 11 May 2009 Posts: 17 Location: Bangalore
|
|
|
|
Hi Mistah Kurtz,
It is SyncSort.
Thanks, |
|
Back to top |
|
|
|