Absolutely,
        Use the WAKEUP module.

        I have a program that waits for reader files and messages. The
waiting part looks like: 


        do forever
                'WAKEUP +30 (RDR IUCVMSG'
                saverc = rc
                select
                        when saverc = 4 then 
                                "process reader file"
                        when saverc = 5 then
                                "process a message"
                                
You might want to change the +30 if all it does is wait for reader
files. See HELP WAKEUP for details


Bob Bates
Enterprise Hosting Services - Enterprise Virtualization - z/VM and
z/Linux 

w. (469)892-6660
c. (214) 907-5071

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein.  If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation."



-----Original Message-----
From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On
Behalf Of Wakser, David
Sent: Tuesday, July 01, 2008 9:10 AM
To: [email protected]
Subject: Best method

All:

        What is the best method to code, for a SVM, a wait for a file to
arrive in its reader?

        I have a (very old) EXEC that has a "do forever" loop with a
"EXECIO * CP (STEM" aa. "STRING CP Q RDR * ALL" command followed by a
SLEEP when no files are found. Is there a better method of "waking up"
an EXEC when a RDR file arrives?

        Thanks, in advance.

David Wakser

Reply via email to