MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can the EOF condition be reset in EZT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
samlwho
Beginner


Joined: 08 Feb 2007
Posts: 21
Topics: 2

PostPosted: Fri Feb 09, 2007 2:32 pm    Post subject: Can the EOF condition be reset in EZT Reply with quote

Experts,

I am building a process that will read record #1 on INPUT1, then read INPUT2 and loop through it building OUTPUT1.

At the end of INPUT2, I read the next record on INPUT1 and attempt the same loop. The job is abending because INPUT2 is still set to EOF, is it possible to reset the EOF conditon and loop through the file again to build the subsequent OUTPUT records?

I need to continue this process until all of the records on INPUT1 have been processed.

Is it possible? Confused
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Feb 09, 2007 3:19 pm    Post subject: Reply with quote

samlwho,

Easytrieve has built-in match logic known syncronised file processing. It automatically takes care of moving the pointers in both the files. Just have both the files sorted on the key you are matching and you are all set.

Check this link for more explanation

http://www.mvsforums.com/helpboards/viewtopic.php?t=5013&highlight=syncronized

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
samlwho
Beginner


Joined: 08 Feb 2007
Posts: 21
Topics: 2

PostPosted: Fri Feb 09, 2007 3:39 pm    Post subject: Reply with quote

kolusu,
I am not trying to match the files, the files are not the same, there are no keys.

INPUT1 ='s PDS Member Names (Length of 10)

INPUT2 ='s PROC STEP (Length of 80)

OUTPUT1 should equal 1 PROC STEP INPUT2 for each record in INPUT1. (lenght of 80)

Example: INPUT1 has 4 records, so OUTPUT1 should contain 1 PROC with 4 steps

For each PDS member I want to create a PROC Step.

The processing is fine until it reaches the end of INPUT2, I do not want to stop until I have built a PROC step for each record on INPUT1.

Please advise...

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Feb 09, 2007 4:54 pm    Post subject: Reply with quote

samlwho,

How many lines do you have in your INPUT2 ? Post a sample of INPUT2 and desired output

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Feb 09, 2007 5:17 pm    Post subject: Reply with quote

if whichever file is smallest could be loaded into an ezytrieve array,
then write an output1 for each item looping thru the array, for each read from the larger input
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
samlwho
Beginner


Joined: 08 Feb 2007
Posts: 21
Topics: 2

PostPosted: Tue Feb 27, 2007 10:47 am    Post subject: Reply with quote

Thanks for the suggestion, I was able to load the PROC into a table and then use that table to build my process. I was already building several tables in the program but it did not occur to me to do the same with the PROC.

I shattered the K.I.S.S rule on this one... (Keep It Simple Stupid) Very Happy

Thanks for the tips...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group