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


GWITM

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



Purpose



 GWITM  (wkid, type, idrl, ldr, datrec)
   
 APL code  1407
 GKS RCP code  X'38006500' (939549952)
   


Function: To write item to GKSM.

Metafile function. Writes a user item to a GKS metafile (GKSM) workstation.

Parameters


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

type (specified by user) (fullword integer)
The item type. For user items, the item type must be greater than 100.

idrl (specified by user) (fullword integer)
The number of significant characters in the data record.

ldr (specified by user) (fullword integer)
The dimension of the data record array datrec. This is the number of 80-character records in the array.

datrec (specified by user) (array of 80-byte character tokens)
The data record array.


Operating states


WSAC, SGOP

Related functions


Get item type from GKSM (GGTITM), Read item from GKSM (GRDITM)

Description


Output is generated on a GKSM output workstation if it is active.

This function can be used only to pass non-graphical data to the metafile. Graphical data is passed automatically, once a metafile output (MO) workstation has been activated. User items can be read from an input metafile using Read item from GKSM (GRDITM) but cannot be interpreted.

Principal errors


5
GKS not in proper state: GKS shall be either in the state WSAC or in the state SGOP
20
Specified workstation identifier is invalid
30
Specified workstation is not active
32
Specified workstation is not of category MO
160
Item type is not allowed for user items
161
Item length is invalid

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012