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


GQCHS

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



Purpose



  GQCHS
                                    
                                    
 (wkid, chdnr, mldr, errind, mode,
 esw, istat, ichnr, pet, earea,
 ldr, datrec)
   
 APL code  1487
 GKS RCP code  X'3800BE00' (939572736)
   


Function: To inquire choice device state.

Inquiry function. Returns the state of a choice device at a workstation, from the workstation state list. (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 (1 ... n).

mldr (specified by user) (fullword integer)
The dimension of the data record array.

errind (returned by GDDM) (fullword integer)
The error indicator.

mode (returned by GDDM) (fullword integer)
The operating mode. The only possible value is:

0 (GREQU)
Request

esw (returned by GDDM) (fullword integer)
The echo switch. The possible values are:

0 (GNECHO)
No echo
1 (GECHO)
Echo

istat (returned by GDDM) (fullword integer)
Initial status. The possible values are:

1 (GOK)
OK
2 (GNCHOI)
No choice

ichnr (returned by GDDM) (fullword integer)
The initial choice number.

pet (returned by GDDM) (fullword integer)
The prompt and echo type (always 1 in GDDM-GKS).

earea (returned by GDDM) (array of short floating-point numbers)
The echo area used in device coordinates (XMIN, XMAX, YMIN, YMAX).

ldr (returned by GDDM) (fullword integer)
The number of array elements used in the data record array.

datrec (returned by GDDM) (array of 80-byte character tokens)
The data record array.


Operating states


WSOP, WSAC, SGOP

Related functions


Initialize choice (GINCH)

Description


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

If the inquired information is available, it is returned as output, and errind is returned as 0 (zero). If the inquired information is not available, all output is invalid, and errind returns an error indicator.

The parameter mldr reserves space for the data record returned by the inquiry. If you do not specify sufficient length to accommodate the data record, GKS reports error 2001 in errind.

GDDM-GKS Restrictions

GDDM-GKS ignores the mldr parameter; the data record returned is empty.

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
2001
Output parameter size insufficient

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012