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
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
If one must insist on using the very less desirable pre-check,