Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Comparing the two files with easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Comparing the two files with easytrieve
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: 2150
Location: At my coffee table

PostPosted: Wed Apr 16, 2008 6:53 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Wed Apr 16, 2008 9:01 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 17, 2008 6:27 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us