You access all these graphics routines with the same format of the CALL statement:
CALL GDDM Statement - Format .-----------------. (1) V | >>-CALL--"GDDM"--USING------routine-name----+-------------+-+-->< '-data-name-1-'
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.
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.