View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Mon Aug 10, 2009 12:23 pm Post subject: copy value from header to detail records (syncsort) |
|
|
Hi,
I've a sample input file and output files are as below.
My input file is
Code: |
..........PICC20090327234954JES22UTO
09IN02884219003000300326046340840031FLC 000102880
09IN02884219003000300326072480460031FLC 000102880
09IN02884219003000300326072492950031FLC 000102880
14NJ50461973948999093397394899909331FLCAEA 000150460
14NJ50462973948999857597394899985751FLCVMA 000150460
..........PICC20090327234954JES22UTO00001049658
|
OUPUT File after excluding 14NJ and having only 09IN in output file after reformating should be as below
Code: |
..........PICC20090327234954JES22UTO
780821900300032604634084003 02880288Y260463420090327
780821900300032607248046003 02880288Y260724420090327
780821900300032607249295003 02880288Y260724420090327
..........PICC20090327234954JES22UTO00001049658
|
In output last 8 characters are from header date.
The complete requirement is as below for above example.
I've a input file. From this file I need to include only records having |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Mon Aug 10, 2009 12:36 pm Post subject: |
|
|
nadh,
isn't there already a thread on the same requirement? please DO NOT open the multiple topics with the same question.
Kolusu |
|
Back to top |
|
 |
|
|