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

EOF not set in Easytrieve


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

New User


Joined: 17 Aug 2005
Posts: 22
Location: Pune

PostPosted: Tue Nov 03, 2009 4:46 pm
Reply with quote

Hi, I have requirement to match two files on key. File 1 has unique records on key and file 2 has duplicates. I have to do some processing when the records are matched. After all the matching is done, when the EOF for either file is reached, I have to do some special processing at the end. To do this I wrote code similar to one given below:

******************************************
JOB INPUT (FILE1 KEY (KEY1) +
FILE2 KEY (KEY2))
******************************************

IF MATCHED
PERFORM PARA1
END-IF

IF EOF FILE1 OR EOF FILE2
PERFORM PARA2
END-IF.

I am facing issue in certain input situation. The code works perfect when in the last rec KEY1 not equal to KEY2. The EOF for one of the files is set and PARA2 is performed. But when last recs for files are such that KEY1 = KEY2, none of the EOF for these files is set. So the PARA2 is not getting performed. Can someone help?

Thanks,
Rahul
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Nov 03, 2009 8:47 pm
Reply with quote

Hello,

The answer may be in the code you did not show. It appears that you chose to show just bit of the code.

Is there a "finish" proc specified?
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 Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Easytrieve EZABX007 with error code 0... CA Products 7
No new posts Converting SAS code to Cobol or Easyt... All Other Mainframe Topics 6
No new posts Easytrieve with SQL CA Products 1
Search our Forums:

Back to Top