I have read the signed numeric fields and rollup the records based on first 2 bytes.
Again I have to write in same format.
My Input File:
02 00000000{
01 00000000{
04 00000001E
01 00000000{
02 00000000{
14 00000000{
13 00000000{
13 00000000{
14 00000000{
01 00000000{
04 00000001E
01 00000000{
02 00000000{
14 00000000{
13 00000000{
13 00000000{
14 00000000{
Required Output File:
02 00000000{
01 00000000{
04 00000001E
14 00000000{
13 00000000{
Code Used:
Sort Fields=(1,2,CH,A)
Sum Fields=(3,9,ZD)
Outrec Fields=(001:001,002,
003:X,
004:004,009,ZD,DIV,+10,EDIT=(SIIIIIIIIIT))
Sum Fields=(3,9,ZD)
Outrec Fields=(001:001,002,
003:X,
004:004,009,ZD,DIV,+10,EDIT=(SIIIIIIIIIT))
Please any one help me. Since writing in unpack format but i need as it is in input format.