Just issue a PIPE CP Q RDR * ALL to get all the reader files sitting in your reader queue. This way you can also check for "HELD" files, prt/pun files, form, etc...
I've never used the "file in reader" message for anything. There is a "XRDR" command to help as well. Issue HELP XRDR Good Luck. ____________________________ Jim Hughes 603-271-5586 "Its kind of fun to do the impossible." (Walt Disney) =>-----Original Message----- =>From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On =>Behalf Of Wakser, David =>Sent: Tuesday, July 01, 2008 12:04 PM =>To: IBMVM@LISTSERV.UARK.EDU =>Subject: Re: Best method => =>Bob: => => Is there a method of also trapping the "message" that shows when =>a file is sent to the VM reader? I need it to issue the RECEIVE =>properly. In the HELP WAKEUP it seems that setting the various message =>types to IUCV should work, but it doesn't seem to do that, => => Thanks, in advance. => =>David Wakser => =>-----Original Message----- =>From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On =>Behalf Of Bob Bates =>Sent: Tuesday, July 01, 2008 10:21 AM =>To: IBMVM@LISTSERV.UARK.EDU =>Subject: Re: Best method => =>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