Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us