Title: REXX - WAKEUP - FULLSCREEN ON - programming question

Good morning all,

I have a little programming problem I could use some comments on.

I have a REXX program that runs in CMS FULLSCREEN mode (to use OTTOSCR) that basically sits and waits for messages to display or to execute a command entered at the terminal .

The pertinent code looks like this.


WAKEUP '00:02:00 (IUCVMSG CONS QUIET'
..
.. some stuff to do at midnight
..
IF RC = 6 THEN DO                               
    IF EXTERNALS() + QUEUED() = 0 THEN ITERATE  
    PULL CMD                                    
    ..   
    ..  there is some code to process PF keys ..            
    ..                                     
    IF CMD = '' THEN ITERATE                    
    CMD                                         
    SAY 'COMMAND COMPLETE ' TIME()              
    ITERATE LOOPBK                   /* return to wakeup /*           
 END

This works fine until someone hits the 'enter' key without typing anything on the screen.
Then I get ...... 'Enter your response in vscreen CMS' ... aka (VM READ)

A way to avoid this is to use the 'NOREAD' option on WAKEUP, but then I loose whatever may have been typed on the terminal and I need to ask that it be retyped .. unacceptable

Is there some technique where I can get a 'null' input line to become a 'blank' input line?

Thanks

Tom


                                            

 

__________________________________________________________________
<< ella for Spam Control >> has removed VSE-List messages and set aside VM-List for me
You can use it too - and it's FREE!  http://www.ellaforspam.com

Reply via email to