HP RPG/XL Programmer's Guide (30318-90001)

8- 8
Figure 8-4. An RPG Menu Program (Continued)
Comments
1 This line calls an external subroutine, RUNPGM. RUNPGM is a
Pascal procedure that directly calls the operating system
intrinsic RUN. RUN creates a process for the report program
selected.
2 This line calls an external subroutine, COMAND. COMAND is a
Pascal procedure that directly executes the selected operating
system command (for example, FILE).
Communicating with Other RPG Programs
The remaining sections in this chapter explain how to use certain
operating system and RPG facilities to communicate information to other
RPG programs. The sections discuss ways to communicate:
* Switches (user indicators U1-U8)