ILE COBOL Language Reference

+-------------------------------IBM Extension--------------------------------+

OS/400 Graphics Support

You can use the CALL statement to access the following graphics routines:

You access all these graphics routines with the same format of the CALL statement:

CALL GDDM Statement - Format
 
                       (1)
>>-CALL--"GDDM"--USING-------routine-name----------------------->
 
   .-----------------.
   V                 |
>----+-------------+-+-----------------------------------------><
     '-data-name-1-'
 
 

Notes:

  1. IBM Extension

Routine-name is the name of the graphics routine you want to use.

The data-names that follow routine-name are the parameters necessary to use certain graphics routines. The number of parameters that you must specify varies, depending on which routine you select. When you select a graphics routine, make sure each parameter is the correct size and data type as required by that routine.

The following are examples of calling graphics routines. Remember, you must use the CALL literal format and define each parameter as required by the graphics routine you use.

  MOVE "FSINIT" TO OS-400-GRAPHICS-ROUTINE-NAME.
  CALL "GDDM" USING OS-400-GRAPHICS-ROUTINE-NAME.
     .
     .
  MOVE "GSFLD" TO OS-400-GRAPHICS-ROUTINE-NAME.
  CALL "GDDM" USING OS-400-GRAPHICS-ROUTINE-NAME,
                            PIC-ROW, PIC-COL,
                            PIC-DEPTH, PIC-WIDTH.

For more information about graphics routines and their parameters, see the GDDM Programming Guide book and the GDDM Reference.

+----------------------------End of IBM Extension----------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]