IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

many to many match easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rkarthik22

New User


Joined: 18 Apr 2009
Posts: 47
Location: India

PostPosted: Sun Apr 26, 2009 7:05 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Apr 26, 2009 9:54 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Apr 27, 2009 2:34 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Mon Apr 27, 2009 2:46 am
Reply with quote

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
View user's profile Send private message
rkarthik22

New User


Joined: 18 Apr 2009
Posts: 47
Location: India

PostPosted: Mon Apr 27, 2009 12:14 pm
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Writing next records after a match an... Compuware & Other Tools 5
No new posts 3 File Match Method - Useful across a... COBOL Programming 2
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:


Back to Top