View previous topic :: View next topic
|
Author |
Message |
sudip_ghanvat
New User
Joined: 05 Apr 2007 Posts: 15 Location: pune
|
|
|
|
Hi,
I have two file filea and fileb.I have sorted first file on origin_name,
header-date,header_time,tran-count(primary key)
and second file fileb sorted on origin_name,header_name,header_date,
header_time,tran_count,service_id(primary key)
i want join on the primary key of filea(one filea to many fileb)
means for one primary key on filea we have many records on fileb
Thanks,
sudip. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Which CA product are you using?
Quote: |
errrrrrrrrrrrrrrrrrrrrrrrrrrdsvdsvdvdvddsvdsv |
Please edit your profile and replace or remove your "signature". |
|
Back to top |
|
|
bijumon
New User
Joined: 14 Aug 2006 Posts: 20 Location: Pune,India
|
|
|
|
Hi,
Read the filea sequentially until end.
Do a dynamic read on fileb, with the key read from filea,and write the combined records into a new file. Which will have a record layout that can hold both filea's and fileb's prime key values.
And as Dick mentioned, please say post which product you are using, without which no one will be able to tell you about the Lmitations/Advantages of the product you are using. If there are any.
Thanks & Regards,
----------------------
Biju. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Do a dynamic read on fileb, with the key read from filea, |
This will be difficult if fileb is qsam. . .
If fileb is qsam it is a very bad idea to read all of fileb for each record in filea looking for "matches". Several people have done this and then asked why it "runs so long".
Hopefully, Sudip will provide more info. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Sudip,
In addition to what Dick had asked, we expect some examples for your requirement. |
|
Back to top |
|
|
|