Posted: Thu Jul 29, 2010 10:16 am Post subject: Adding values using sort
Hi
I have two records in a file of length 80 as follows.
Input:
Code:
TRAILER1E*90
TRAILER1C*90
In the above records position 8 and 9 is having numeric value which is s9(2). In positions 11 and 12 the numeric value is ZD. Value in position 10 is just a seprator. I need to add the values in both the records as follows
_________________ 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
I have a clarification. Is it possible to reduce the total value in positions 8 and 9 by 2. means total-2. I searched in forum and manual and could not find it. If we cannot do that, then how this can be achieved?
_________________ 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