View previous topic :: View next topic |
Author |
Message |
samlwho Beginner
Joined: 08 Feb 2007 Posts: 21 Topics: 2
|
Posted: Fri Feb 09, 2007 2:32 pm Post subject: Can the EOF condition be reset in EZT |
|
|
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?  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
samlwho Beginner
Joined: 08 Feb 2007 Posts: 21 Topics: 2
|
Posted: Fri Feb 09, 2007 3:39 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Feb 09, 2007 4:54 pm Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Fri Feb 09, 2007 5:17 pm Post subject: |
|
|
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 |
|
 |
samlwho Beginner
Joined: 08 Feb 2007 Posts: 21 Topics: 2
|
Posted: Tue Feb 27, 2007 10:47 am Post subject: |
|
|
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)
Thanks for the tips... |
|
Back to top |
|
 |
|
|