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


An APL2 programming example

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



With APL2 version 1 release 2 and later a function is supplied that enables you to use GDDM. The function is in a workspace called GDMX. When in APL2, you can type


           )LOAD 2 GDMX
           DESCRIBE

for more details.

GDMX lets you pass GDDM call names and parameter values to it. The calls can be coded in a similar way to that used for other programming languages, with the exception that you write the call name to the left of the function GDMX, and the arguments to the right of GDMX.

The following program draws straight lines in response to cursor movement and user-generated interrupts. PF3 stops the program.


   PICTURE 67          

Figure 135. APL2 programming example


Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012