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
 

 

EOF not set in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: EOF not set in Easytrieve
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

Site Director


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

PostPosted: Tue Nov 03, 2009 8:47 pm    Post subject:
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    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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Query regarding Easytrieve program shanudarling All Other Mainframe Topics 2 Wed Jan 06, 2016 5:33 pm


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