Using the Call (CALL) Command

You can use the Call (CALL) command to run a program interactively, or as part of a batch job.

The syntax for this command is:
Read syntax diagramSkip visual syntax diagramCALL PGM(library-name/program-name)
For example, the command
CALL PGM(MYLIB/MYPROG)
invokes the program MYPROG located in the library MYLIB.
If the program object specified by program-name exists in a library that is contained in your library list, you can omit the library name in the command, and the syntax is:
Read syntax diagramSkip visual syntax diagramCALLprogram-name
For example, if MYLIB appears in your library list, you can simply enter:
CALL MYPROG
Note: If you need prompting for the command parameters, type CALL and press F4 (Prompt). If you need help on how to use the command, type CALL and press F1(Help).