GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Passing input to your program, using call GSREAD GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
A single action by the end user can generate up to five types of input, depending on which logical devices are enabled. For instance, pressing a PF key could create:
When GSREAD has made a record available, you may inspect it by issuing a query call, namely GSQCHO, GSQLOC, GSQPIK, GSQSTR, or GSQSTK. Your program is in error if the query is not the appropriate one for the currently available record. The order of the records is undefined, so if you have more than one logical input device enabled, it is essential to test the second parameter of GSREAD before issuing a query. It is important to remember that GSREAD does no I/O unless the queue is empty. In other words, GSREAD does not update the screen while there are any records on the queue. To avoid problems, the recommended technique is to empty the queue immediately after it has been created, as shown in "Handling the input queue" in topic 11.9. GDDM ensures that a GSREAD call issued when the input queue is empty always results in at least one input record being created. If the end user causes an interrupt that does not create an input record, GDDM rejects it. No input record is created if, for instance, the end user presses the CLEAR key when this has not been enabled as a choice device. In such cases, GDDM sounds the terminal alarm and waits for another interrupt. Subtopics: |
Copyright IBM Corporation 1990, 2012 |