View previous topic :: View next topic
|
Author |
Message |
Gopikrishnan K
New User
Joined: 13 Oct 2006 Posts: 3
|
|
|
|
Hi,
I have more than one file in following format -
Code: |
PROGRAM: xxxx HEADING 1 PAGE NO. 1
RUN DATE: 10/04/06 HEADING 2 RUN TIME: 01:24:35
CLOSED BOOK LIQUIDATION CARTONS
"EXPLODED" REPLENISHMENT CONTROL COUNTS
TOTAL REPLENISHMENT RCDS READ ........ 8
TOTAL CBL CARTON RCDS ............ 0
TOTAL OTHER CARTON RCDS .......... 7
TOTAL NOT FOUND RECORDS 0
TOTAL CARTON CTL TBL RCDS READ............. 7
TOTAL "EXPLODED" RECORDS WRITTEN 7
TOTAL CBL CARTON RCDS 0
TOTAL OTHER CARTON RCDS 7
|
I want an output file in the same format as above, but the counts in each file needs to be summed and displayed in the output file. For Eg. if TOTAL OTHER CARTON RCDS (last line) is 8 in the other file, the output file shud have TOTAL OTHER CARTON RCDS 15 (7 + 8).
Thanks in advance,
Gopikrishnan K |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Are all of the files in the exact same format, that is, do the same lines appear in each file in the exact same order?
Please show an example of more than one input file and what you want for output.
What is the RECFM and LRECL of the input files? |
|
Back to top |
|
|
|