×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Porterfield, Sean wrote:
CPF4128 Escape Message . . . . : Not able to allocate
objects needed for file
I have a program that runs every weeknight. Once a month, it
will crash because the monthend process does ALCOBJ *EXCL on one
of the files my program reads.
If I were in CL, I would likely do an appropriate ALCOBJ and
MONMSG, then do "something" (probably sleep for 5 minutes then
try again) if the file is allocated (i.e. not run my program that
uses the file!) <<SNIP>>
Since the comment is made that the program could wait... It may
be possible to adjust for run-time, for all opens or just that one
open [possibly with USROPN instead] of the file, to enable a longer
WAITFILE() time; i.e. by CHGPF, CHGLF, or OVRDBF to adjust the
"Maximum file wait time" for open requests.
Obviously adjusting the time of the job being run, so as to avoid
the month-end processing, should suffice instead. Wrapped in a CLP,
the CALL to the program could instead be preceded by a request to
"ALCOBJ ((TheLib/TheFile *FILE TheMbr *SHRRD)) WAIT(longtime)", in
order to effect such an avoidance, without explicit scheduling nor
notification by the month-end processing.
Regards, Chuck
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.