From 8th position my TRL count starts , but using the OVERLAY i used(See at the top) am getting the TRL as ,
TRL +00422009+31272891464.170000
In This TRL record , i need to LEFT TRIM '0' in the TRL count and this TRL count also counts HDR record , which should not happen , I need TRL count only for DETAIL.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
ashokkosha1,
I believe these DFSORT control statements will do what you want. However, it's not clear what you mean by "In This TRL record , i need to LEFT TRIM '0' in the TRL count" - do you just want the count to be +dddddd with leading zeros or do you actually want to remove the leading zeros, for example, if the count was 1234 would you want +001234 or +1234bb (b for blank)? I assumed the former.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now use DFSORT's new IFTRAIL function to do this more easily like this: