Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Aug 30, 2005 10:00 am Post subject:
Jayan,
I'd suggest using DFSORT's OVERLAY operand instead of FIELDS for this kind of thing since OVERLAY makes it easier to handle multiple fields without worrying about the rest of the record. For example, if you have 5-byte PD fields starting at positions 1 and 26, you could use this DFSORT job:
Note that the trick works because DFSORT uses C and D signs for TO=PD conversions. _________________ 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
Last edited by Frank Yaeger on Fri May 05, 2006 12:52 pm; edited 1 time in total
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Sep 09, 2005 5:41 pm Post subject:
Quote:
In addition to Kolusu's and Frank Yaeger's advice, in the control card you need to put remaining length of the record
Lal,
That's true for Kolusu's example with FIELDS, but is NOT TRUE for my example with OVERLAY. I guess you didn't read what I said about OVERLAY. DFSORT's OVERLAY function just overlays the indicated field - it does NOT affect other fields before or after the overlaid field and you do NOT specify these fields with OVERLAY. That's why I said "OVERLAY makes it easier to handle multiple fields without worrying about the rest of the record".
For complete details on DFSORT's OVERLAY function and the other DFSORT and ICETOOL functions available with the Dec, 2004 DFSORT PTF, see:
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri May 05, 2006 12:55 pm Post subject:
Note that with z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) you can now use TO=PDC or TO=PDF to indicate the positive sign you want for converted values. TO=PDC is equivalent to TO=PD and gives a C sign for positive numbers and a D sign for negative numbers. TO=PDF gives an F sign for positive numbers and a D sign for negative numbers.
For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTFs, see:
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