|
Great ideas, but I don't think it will work in this case! Please
prove me wrong.
I am printing signatures (*PAGSEG) on a document. The pgm writing
the *PAGSEG object couldn't care less if the signature exists or
not, it will happily write the external printer file record with the
JOHNDOE signature and keep on going.
However when the OS starts printing the spool file, and the *PAGSEG
named JOHNDOE isn't found, it crashes with error "*PAGSEG" not
found.
How can I avoid the pre-checking for the *PAGSEG object? Can I
OVRSPLF and somehow tell the writer to ignore *AFPDS elements that
are not available at print time?
CRPence on Wednesday, April 25, 2012 12:20 PM wrote:
On 25 Apr 2012 09:04, Stone, Joel wrote:
<<SNIP>> Is there a better method for checking if object exists?Normally the attempt to use a missing object is the best way. If
any proactive attempt is made, then concurrency means the
presumed-failure style of proactive checking could make an improper
decision; i.e. had the programming style been presumed-success and
just attempted to use the object and found the object to have been
created by then, the code could have continued without error or
ever knowing the object may have been missing even just a
microsecond before.
If one must insist on using the very less desirable pre-check,
then <<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.