|
View previous topic :: View next topic
|
| Author |
Message |
dharmaraok
New User
Joined: 10 Mar 2011 Posts: 45 Location: india
|
|
|
|
I am having below INPUT file :
Header
Transaction records
HH0303030 - header
D22221111 - transaction record
D33332222- transaction record.
In my output trailer record should insert with total count of records from position 2 of 4 bytes (including header and transaction records) and sum of the amount field(starts at position 6 and having length 5 bytes ) at 6poistion in the output files.
the output should be:
HH0303030 - header
D22221111 - transaction record
D33332222- transaction record.
T00023333 - Trailer record.
the count and sum of the field should be written into COMP-3 format. the Input also in COMP-3Format.
Could you please let me know . how to achieve this |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Which sort product is being used on your system? |
|
| Back to top |
|
 |
dharmaraok
New User
Joined: 10 Mar 2011 Posts: 45 Location: india
|
|
|
|
| syncsort |
|
| Back to top |
|
 |
|
|