GDDM-GKS V1R1 Programming Guide and Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


GSCHM

GDDM-GKS V1R1 Programming Guide and Reference
SC33-0334-00



Purpose



 GSCHM  (wkid, chdnr, mode, esw)
   
 APL code  1374
 GKS RCP code  X'38004E00' (939544064)
   


Function: To set choice mode.

Input function. Sets the operating mode and echo switch as required for a choice device at a workstation. (See the section "GDDM-GKS restrictions" below.)

Parameters


wkid (specified by user) (fullword integer)
The workstation identifier.

chdnr (specified by user) (fullword integer)
The choice device number.

mode (specified by user) (fullword integer)
The operating mode. The possible values are:

0 (GREQU)
Request
1 (GSAMPL)
Sample
2 (GEVENT)
Event

esw (specified by user) (fullword integer)
The echo switch. The possible values are:

0 (GNECHO)
No echo
1 (GECHO)
Echo

Operating states


WSOP, WSAC, SGOP

Related functions


Initialize choice (GINCH), Request choice (GRQCH)

Description


(See the section "GDDM-GKS restrictions" below.)

This function sets the operating mode and echo switch for a given choice input device; these are stored in the workstation state list.

GDDM-GKS Restrictions

Event and sample modes are not supported at GKS level 2b. If one of these modes is selected, GDDM-GKS reports error 143.

Principal errors


7
GKS not in proper state: GKS shall be in one of the states WSOP, WSAC, or SGOP
20
Specified workstation identifier is invalid
25
Specified workstation is not open
38
Specified workstation is neither of category INPUT nor of category OUTIN
140
Specified input device is not present on workstation
143
EVENT and SAMPLE input mode are not available at this level of GKS
2000
Enumeration type out of range

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012