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


GQSKS

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



Purpose



  GQSKS
                                    
                                    
                                    
 (wkid, skdnr, type, n, mldr,
 errind, mode, esw, itnr, np, pxa,
 pya, pet, earea, buflen, ldr,
 datrec)
   
 APL code  1485
 GKS RCP code  X'3800BC00' (939572224)
   


Function: To inquire stroke device state.

Inquiry function. Returns values giving the state of a stroke device at a workstation, from the workstation state list.

Parameters


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

skdnr (specified by user) (fullword integer)
The stroke device number (1 ... n).

type (specified by user) (fullword integer)
The type of returned values. The possible values are :

0 (GSET)
Set
1 (GREALI)
Realized

If type equals set, the returned values are the same as those originally passed by the Initialize stroke (GINSK) function call. If type equals realized, the returned values are the closest available actual values at the device.

n (specified by user) (fullword integer)
The maximum number of points.

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

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

itnr (returned by GDDM) (fullword integer)
The initial transformation number (0 ... n).

np (returned by GDDM) (fullword integer)
The number of points (0 ... n).

pxa (returned by GDDM) (array of short floating-point numbers)

pya (returned by GDDM) (array of short floating-point numbers)
The initial points of the stroke in world coordinates.

pet (returned by GDDM) (fullword integer)
The prompt and echo type.

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

buflen (returned by GDDM) (fullword integer)
The input buffer size.

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

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


Operating states


WSOP, WSAC, SGOP

Related functions


Unpack data record (GURECS), Initialize stroke (GINSK)

Description


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.

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
2000
Enumeration type out of range
2001
Output parameter size insufficient

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012