Another method you can use is try to rename the file (to itself) and monmsg
for file not found

Check if Stream File SAVFMT Exists in IFS Directory
RNM OBJ('/CORP/SAVFMT.SAV') NEWOBJ('SAVFMT.SAV')

MONMSG MSGID(CPFA0A9) EXEC(DO)
You code here if the file does not exist
ENDDO


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Wednesday, September 14, 2011 5:53 PM
To: 'Midrange Systems Technical Discussion'
Subject: CHKOBJ for IFS?

It looks like I'm going to be needing to check for the existence of a *STMF
in the IFS, from a CL program: it's going to be running in a batch job, and
needs to wait (i.e., DLYJOB) until another job (the one that spawned it) has
created the object (and no, there's no way for the creating job to actually
tell the waiting one that the object has arrived).

Is there a CHKOBJ-equivalent for the IFS? The system in question is at V6R1.
It wouldn't exactly be a hard thing to write (at least, in a language other
than CL), but I'm in no hurry to reinvent any wheels.

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.