• Subject: Re: Display file usage
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Fri, 01 Dec 00 19:59:26 +1100


Hello Jevgeni,

Even though this question belongs on MIDRANGE-L, since I haven't seen an answer 
to this yet ...

You wrote:
>But there is a problem. When I output and error message this way, my 
>terminal locks keyboard (I use MochaSoft TN5250 for W95/98/NT).
>It is O'k, as other programs work the same way. The user presses 
><RESET> button and resets the keyboard lock.

>But I would like to gain a control over the lock from inside my 
>program! 

While I think ERRMSG and ERRMSGID are a horrible way of sending error 
messages you can stop the keyboard from locking by coding ERRSFL at 
the file level.  That will cause any active ERRMSG values to be 
listed in a message subfile.

>In other words I want that some of the error messages lock 
>the keyboard, and some do not. Is there a way to do that via some 
>smart DDS programming?

I don't think you can accomplish both requirements however you could 
experiment with the LOCK keyword which can be conditioned with option 
indicators.  Try specifying something like:

A       R RCDFMT
A  67                                   LOCK
A         DTAFLD   ......
A  68                                   ERRMSG('Bad data' 68)

Turn on 68 when the error occurs and turn on 67 when you want to lock 
the display.  I'm really not sure if this will work due to the way 
ERRMSG and ERRMSGID function.  They use PUTOVR, OVRATR, and OVRDTA 
under the covers which alters the way the display format is written 
to the screen.  Still you have nothing lose by trying.

>Any advice will be highly appreciated.....

Regards,
Simon Coulter.


 FlyByNight Software         AS/400 Technical Specialists       
 Eclipse the competition - run your business on an IBM AS/400.  
                                                                
 Phone: +61 3 9419 0175      Mobile: +61 0411 091 400           
 Fax:   +61 3 9419 0175      mailto: shc@flybynight.com.au      
                                                                
 Windoze should not be open at Warp speed.                      

+---
| This is the C/400 Mailing List!
| To submit a new message, send your mail to C400-L@midrange.com.
| To subscribe to this list send email to C400-L-SUB@midrange.com.
| To unsubscribe from this list send email to C400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: bob@cstoneindy.com
+---

This thread ...


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

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].