View previous topic :: View next topic |
Author |
Message |
reddysham4u Beginner
Joined: 06 Dec 2005 Posts: 4 Topics: 1
|
Posted: Tue Dec 06, 2005 6:07 pm Post subject: Matching 2 files and creating 3rd file using Fileaid |
|
|
Hi,
I need a help in File Aid.
I have 2 files File1, file2.
File1 cintains Empnumber,name
File2 contains Empnumber,Address
I need to create file3, such that File3 should contain EmpNumber,Name,Address for each entry of File1.
Can you please post batch JCL for the above problem.
Can anybody please help me.
Its urgent.
Thanks in Advance
Shyam |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
|
reddysham4u Beginner
Joined: 06 Dec 2005 Posts: 4 Topics: 1
|
Posted: Wed Dec 07, 2005 9:26 am Post subject: |
|
|
Thank u phantom,
But i need a FileAid Batch JCL.
For this i need to Merge two files....
Can u please help me |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Dec 07, 2005 9:29 am Post subject: |
|
|
reddysham4u,
File-aid does not have the ability to do what you asked for.
Thanks
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Dec 07, 2005 9:52 am Post subject: |
|
|
reddysham4u,
May we know why you are looking only for a file-aid solution ? Was that given as your project requirement ?
If not, would you be interested in any other solutions like Easytrieve / cobol...
Thanks,
Phantom |
|
Back to top |
|
|
reddysham4u Beginner
Joined: 06 Dec 2005 Posts: 4 Topics: 1
|
Posted: Wed Dec 07, 2005 10:21 am Post subject: |
|
|
I think we can use COPY,REPL,USER,EDIT,WRITE,UPDATE ...etc functions to merge the files in File Aid batch JCL.
Ex:
$$DD01 COPY IF=(.....),OUT=...,
$$DD01 USER WRITE= file1, IF=(....),MOVE=(..),WRITE=file1
Imagine...
The file structure is as follows
File1
----+----1----+----2----+----3
Emp Number EmpName
File2
----+----1----+----2----+----3
Emp Number EmpAddress
Can u please provide a file merge Batch JCL for fileAid.
such that file3 should contain Empnumber,Empname,EmpAddress. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Dec 07, 2005 10:33 am Post subject: |
|
|
Quote: |
I think we can use COPY,REPL,USER,EDIT,WRITE,UPDATE ...etc functions to merge the files in File Aid batch JCL.
|
reddysham4u,
If you think you can solve it using those features then why not code the solution and show it to us, so that we can also learn.
Thanks
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
reddysham4u Beginner
Joined: 06 Dec 2005 Posts: 4 Topics: 1
|
Posted: Wed Dec 07, 2005 10:59 am Post subject: |
|
|
I just started learning FileAid to solve this problem.
If i solve, i will definitely show it tou.
But i thought, there are many senior professionals who worked in FileAid will help me.
Becaz just to solve this, i am reading all the docs and trying for solutions.
It would be great, If any one can help me. |
|
Back to top |
|
|
haatvedt Beginner
Joined: 14 Nov 2003 Posts: 66 Topics: 0 Location: St Cloud, Minnesota USA
|
Posted: Sun Jan 15, 2006 3:08 am Post subject: |
|
|
I have been using File-Aid for about 28 years. Back then it was called DUMPER, written by J.R. Blank if my memory serves me right. I suspect that if I absolutely needed to use File-Aid and SORT to solve this problem, that I could do it.
However, different tools each have thier own strengths. If I could choose the tool for this I would use either COBOL or CA-EasyTrieve. COBOL would take a bit longer to write, but from a debugging standpoint its supported by dump analysis tools from multiple vendors.
Chuck Haatvedt
ps... FileAid is one of my favorite tools, I think I cried for months when my employer removed it. Thankfully, they reconsidered and we have it back again. _________________ Chuck Haatvedt
email --> clastnameatcharterdotnet
(replace lastname, at, dot with appropriate
characters) |
|
Back to top |
|
|
|
|