|
Batch job - no joblog messages. During testing (new application) the
job didn't complete in a timely manner so I looked at the call stack
and it was showing the "enddo" statement.
Stepping through debug showed the "dow" loop happening although the
record fields were blank. All the key variables were correct - no
corruption. I added a %status() to see what was happening and it
returned 1211.
It's a random problem.
Same parameters and the job runs fine several times and then, this
happens.
As to the file never being opened - not the case. This occurs a few
records into the process so the procedure already executed several
times. Here is the construct:
bLoop = '1';
setll(e) (pCONO : pPNUM : DIVN) OEP33UL1;
reade(e) (pCONO : pPNUM : DIVN) OEP33UL1;
dow bLoop AND NOT %eof(OEP33UL1);
If pDTIN >= SCYM33
and pDTIN <= ECYM33;
retDPAM = DPAM33;
bLoop = '0';
endif;
reade(e) (pCONO : pPNUM : DIVN) OEP33UL1;
enddo;
The variables prefixed with "p" are incoming parms to the procedure.
DIVN is derived locally.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.