GDDM V3R2 Base Application Programming Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Interdependent parameters, array dimensions, string lengths

GDDM V3R2 Base Application Programming Reference
SC33-0868-02



Many GDDM calls have interdependent parameters where earlier lengths and counts describe the lengths of strings and count of elements in arrays. These calls are described in "The GDDM calls" in topic 3.0


     GSCHAR(x,y,length,string)

where length is the length of the string; and


     GSPLNE(count,xarray,yarray)

where count is the number of elements in each of the two arrays.

Where there is one such dependency, the length is the length of the string, or the count is the number of elements in the array.

Where there are two dependencies, strings are given in a one-dimensional array of strings of the given length; numbers are given in a two-dimensional array, with the first count specifying the number of groups and the second specifying the number of elements in each group.


     CHXLAB(count,length,text)

text is an array of count strings each of the number of characters in length.


     CHBAR(components,count,y-values)

y-values is a two-dimensional array with components rows and count columns.

This is shown explicitly for GDDM Base, for GDDM-PGF, and for GDDM-GKS in the relevant reference manuals. The same information is available from the ERXPROTO EXEC.


     /* ERXPROTO forms for the two     */
     /* calls described above          */
     'CHXLAB cnt1 len2 char.cnt1.len2'
     'CHBAR cnt1 cnt2 float.cnt1.cnt2'

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012