Hello,
I know I'm missing something very basic, but I'm completely stumped and have been reading everything I can find and have no other resources at the moment. The kicker is this program _used_ to run fine, so anytime I think I've found a reason for it to have failed, I can't see how it was then working originally.
Everything compiles fine now, but the program errors out in ProgramA when it goes to update FileA with the error about trying to update a file before reading it. (sorry not at my desk to copy the exact wording)
Basic code logic
When this started failing, I thought maybe the problem was the new fields in FileA that were not referenced at all in this program, so I added %fields(...) to list only the fields updated here, but still no luck.
I feel like I'm missing some basic concept of reads & updates or file referencea (and I admit most of my 'education' has been self-inflicted in a very piecemeal situation-based focus only)...
but if I needed another read for FileA now, how did it ever work in the past?
I expected runtime errors once I started testing my changes, but I assumed they'd show up in ProgramB which does so much more work... Not this one.
When the error appears, I know how to find the server job to see the job log, but I see no locks or anything that just jumps out at me like an incorrect library reference or such.
If anyone can provide any guidance of how else to investigate this or another approach to researching this type of error, it would be just hugely appreciated.
Thanks!
Liz
I know I'm missing something very basic, but I'm completely stumped and have been reading everything I can find and have no other resources at the moment. The kicker is this program _used_ to run fine, so anytime I think I've found a reason for it to have failed, I can't see how it was then working originally.
- File A is a one line file that is used for gathering header data & counts from..
- File B which takes in a flat file of data with multiple record formats.
- File A- four new fields added now
- Program A gathers, parses and fills in File A with the header data as given
- Program B processes the rest of record data, applies the changes as appropriate to the main account file
And then (new now) should update File A with it's own gathered counts - Both are only used in their own process called on demand. No other users would be accessing them
Everything compiles fine now, but the program errors out in ProgramA when it goes to update FileA with the error about trying to update a file before reading it. (sorry not at my desk to copy the exact wording)
Basic code logic
Code:
FileA is an Update externally described file fileB is internally defined. Read FileA Clear *ALL FileA_Recordname Read FileB dowhile not EOF If first character is 'H' assign values from FileB into fields from FileA EndIf endDo Update FileA_RecordName
I feel like I'm missing some basic concept of reads & updates or file referencea (and I admit most of my 'education' has been self-inflicted in a very piecemeal situation-based focus only)...
but if I needed another read for FileA now, how did it ever work in the past?
I expected runtime errors once I started testing my changes, but I assumed they'd show up in ProgramB which does so much more work... Not this one.
When the error appears, I know how to find the server job to see the job log, but I see no locks or anything that just jumps out at me like an incorrect library reference or such.
If anyone can provide any guidance of how else to investigate this or another approach to researching this type of error, it would be just hugely appreciated.
Thanks!
Liz
Comment