View previous topic :: View next topic
|
Author |
Message |
Sandy-is-here
New User
Joined: 16 Mar 2006 Posts: 6 Location: Bangalore
|
|
|
|
Hi Experts,
I have two files with four fields each. For eg.
File 1:
aaa 1999 111 10.00
bbb 2000 222 15.50
...
...
File 2:
aaa 1999 555 18.80
bbb 2000 678 10.50
...
...
Now, based on first two fields, I need to create a output file, which should look like this:
Output file:
aaa 1999 111 10.00 555 18.80
bbb 2000 222 15.50 678 10.50
...
...
That means, merging the last two columns of the 2nd file with the 1st one, if first two column value matches !!
Is there any way to achive this, without writing a program ??
Please help !!
Thanks in advance
Sandy |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
What is the RECFM and LRECL of input file1?
What is the RECFM and LRECL of input file2?
Are there any keys in file1 that don't appear in file2? Are there any keys in file2 that don't appear in file1? If so, what do you want to do for these mismatched keys? |
|
Back to top |
|
|
Sandy-is-here
New User
Joined: 16 Mar 2006 Posts: 6 Location: Bangalore
|
|
|
|
Hi Frank,
I have achieved what I wanted thru SPLICE in ICETOOL, by following the Smart DFSORT Tricks !!
Thanks a lot...
-Sandy |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Good. |
|
Back to top |
|
|
|