GDDM-GKS V1R1 Programming Guide and Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
GINSTS GDDM-GKS V1R1 Programming Guide and Reference SC33-0334-00 |
|||||||||||||
Purpose
Function: To initialize string. Input function. Initializes a string input device at a workstation. If your program is written in FORTRAN IV or VS FORTRAN, use the function Initialize string (FORTRAN only) (GINST) instead. Parameters wkid (specified by user) (fullword integer)
stdnr (specified by user) (fullword integer)
lstr (specified by user) (fullword integer)
istr (specified by user) (character)
pet (specified by user) (fullword integer)
xmin (specified by user) (short floating point) xmax (specified by user) (short floating point) ymin (specified by user) (short floating point) ymax (specified by user) (short floating point)
buflen (specified by user) (fullword integer)
inipos (specified by user) (fullword integer)
ldr (specified by user) (fullword integer)
datrec (specified by user) (array of 80-byte character tokens)
Operating states WSOP, WSAC, SGOP Related functions Request string (GRQSTS), Set string mode (GSSTM) Description This function initializes the string device by defining the initial string, prompt and echo type, and echo area. The function copies the initial string into the input buffer and places the cursor at the initial cursor position. Replacement of characters begins at this point. The input buffer size is compared with the "maximum input buffer size" for the device, which is contained in the workstation description table. If the requested buffer size is greater than the maximum, the maximum buffer size is substituted. If you define an initial string longer than the buffer size, error 154 is reported. If inipos is invalid, error 152 is reported. GDDM-GKS provides one prompt and echo type:
stdnr=1
lstr=6
istr='angle='
pet=1
xmin = 0.0
xmax = xdc
ymin = ydc/10.0
ymax = ydc
buflen = 30
inipos = 7
ldr=0
CALL GINSTS (wkid, stdnr, lstr, istr, pet,
*xmin, xmax, ymin, ymax, buflen, inipos,
*ldr, datrec)
This illustration shows the input buffer containing the initial string,
and indicates the location of the initial cursor position.
Principal errors
|
Copyright IBM Corporation 1990, 2012 |