here 8-16 is a count and 17-31 is amount field . these are zoned decimal.
Here is my output
Code:
DTLCNT00046262I00000000000000{
IMPINC00000000{00000020315130H
POSTAX00000000{00000000042116F
PRETAX00000000{00000045433067L
TOTAL 000462629000000250758199
In the total line amount field is not included with sign. So i am always getting a +ve number. The last byte in total is x'F9' .. It suppose to be X'D9'.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Jan 04, 2005 4:41 pm Post subject:
Quote:
In the total line amount field is not included with sign. So i am always getting a +ve number. The last byte in total is x'F9' .. It suppose to be X'D9'.
You're using the M11 mask for the TOTAL in TRAILER1. M11 has the pattern T...T with no sign. That's why you're not getting the sign.
If you're asking how to get a signed ZD value for the TOTAL, you can do that with z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) which allows TO=ZD in TOTAL. So you could use:
If you're asking something else, please be more clear about what it is you're asking. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Thanks Frank. DFSORT R14 PTF UQ95213 is not available in my system. So please suggest me. I am going for a control statement with SORT & SUM fields . Is there any other technique ?
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Jan 04, 2005 6:15 pm Post subject:
Here's a DFSORT/ICETOOL job that does what you want without using the new PTFs. Note that it's a bit more involved then the job with the new PTFs and requires MOD for the //OUT DD.
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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