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

Comparing the two files with easytrieve


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

New User


Joined: 04 Oct 2006
Posts: 18

PostPosted: Wed Apr 16, 2008 12:22 pm
Reply with quote

I am new to easytrieve so dont have that much knowledge on this topic.
Right now i am facing a problem in coding an easytrieve. Could you please guide me

I want to compare two files based on some condition. But the files are comparing as 1:1 basis. I mean to say that 1st record is being compared to 1st record of 2nd file not with all the records of 2nd file. and because of this i am not getting desired results.

JOB INPUT NULL
****************
GET INFILE
IF EOF INFILE
STOP
END-IF
****************
GET INFILE1
IF EOF INFILE1
STOP
END-IF

I think there is some problem in reading the files. please correct me
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: Wed Apr 16, 2008 6:53 pm
Reply with quote

Are you saying that you want to compare every record of one file with every record in another?
How many records in each file?
what sort of keys are you comparing in each file?
what sort of result do you expect to produce upon a match?
what sort of result do you expect to produce upon a mis-match?
Back to top
View user's profile Send private message
riju_luvjust

New User


Joined: 04 Oct 2006
Posts: 18

PostPosted: Wed Apr 16, 2008 7:33 pm
Reply with quote

yes i want to compare every record of infile with all the records of infile1

It has some 50000 records.

The format of the infile is
VON(8) and Family(3)

for Infile1
Family(3) and VON(8)

If the record match then i want those records need to be dropped from Infile.
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: Wed Apr 16, 2008 9:01 pm
Reply with quote

Are you saying that you want to compare every record of one file with every record in another?
riju_luvjust wrote:
yes i want to compare every record of infile with all the records of infile1
OK...

How many records in each file?
Quote:
It has some 50000 records.
Combined or each?

what sort of keys are you comparing in each file?
Quote:
The format of the infile is
VON(8) and Family(3)
for Infile1
Family(3) and VON(8)
OK...

what sort of result do you expect to produce upon a match?
Quote:
If the record match then i want those records need to be dropped from Infile.
OK...

what sort of result do you expect to produce upon a mis-match?
Quote:
Kept?

This sounds like it would work a whole lot quicker and easier if this was done with a sort, something like summing and splitting out all the non dups?
Back to top
View user's profile Send private message
riju_luvjust

New User


Joined: 04 Oct 2006
Posts: 18

PostPosted: Thu Apr 17, 2008 4:59 pm
Reply with quote

Each file have more then 50000 records.

If the records mis match then we will keep the records.

If its sorting then please let me know how to code.

when i tried to do it with easytrieve (both sequencial file). when i tried the search for all the records of 2nd file. now the problem is the counter need to reset. so that for 2nd record of 1st file it will search from 1st record of the 2nd file
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: Thu Apr 17, 2008 6:27 pm
Reply with quote

riju_luvjust wrote:
when i tried to do it with easytrieve (both sequencial file). when i tried the search for all the records of 2nd file. now the problem is the counter need to reset. so that for 2nd record of 1st file it will search from 1st record of the 2nd file
EZT can not do that.

Take a look at Create files with matching and non-matching records in Smart DFSORT Tricks.

Then repost any questions in a new thread in the DFSORT/ICETOOL forum.
Back to top
View user's profile Send private message
riju_luvjust

New User


Joined: 04 Oct 2006
Posts: 18

PostPosted: Thu Apr 24, 2008 3:12 pm
Reply with quote

Thanks i will check the pdf. will update the results.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top