|
View previous topic :: View next topic
|
| Author |
Message |
rkarthik22
New User
Joined: 18 Apr 2009 Posts: 47 Location: India
|
|
|
|
I have two input files INP1 and INP2.
I have to match two files on A1 field/key (Present in both the files)
If match is found. Again i have to check if match on P1 field/key (Present in both the files)
And present in INP1 ,write in to separate file
And present in INP2, write in to separate file
If match is not found on P1 ,
And present only in INP1 ,write in to separate file
And present only in INP2, write in to separate file
If match is not found on A1
write INP1 records in to separate file
write INP2 records in to separate file
requirement:
IF match is found on A1 key
Check if match on P1 key
Write INP1 records in to separate file
Write INP2 records in to separate file
If match is not found on P1 key
And present only in INP1 ,write in to separate file
And present only in INP2, write in to separate file
ELSE
IF match is not found on A1 key
write INP1 records in to separate file
write INP2 records in to separate file
Please help me how to do this in easytrieve using Many to Many match |
|
| Back to top |
|
 |
CICS Guy
Senior Member

Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
| rkarthik22 wrote: |
| Please help me how to do this in easytrieve using Many to Many match |
Have you looked at the manual?
| CA-Easytrieve/Plus Reference Guide wrote: |
| Synchronized File Input performs match/merge operations on multiple files. |
|
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
I suspect that multiple files is not the issue, but rather multilpe values of the same key in both input files. . .
Post some sample input from both files that covers all possibilities of the input data and the output files you want from the posted sample input.
Also post the jcl and Eztrieve code you are using. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
Dick & others,
This is what the same OP/TS posted in another website,
after receiving some help in designing the logic for his program:
| in another forum OP/TS wrote: |
I have to deliver this tomorrow...can u please help me to write Easytrieve code..
As i dont know abt this internal table concept |
so, I don't imagine any help he receives now will do any good.
Besides, he does not want help; he wants someone to do his job. |
|
| Back to top |
|
 |
rkarthik22
New User
Joined: 18 Apr 2009 Posts: 47 Location: India
|
|
|
|
NO...dbzTHEdinosauer
I need help...not others to write the code...
I will try myself to code this Many to many match easytrieve. I will put the easytreive code this weekend... |
|
| Back to top |
|
 |
|
|