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

8-: 5
Manual
.
Figure 8-4 lists a report menu program. It executes the appropriate
report program selected by the user. The menu program contains two
external subroutines, RUNPGM and COMAND. They are Pascal procedures that
call certain system intrinsics directly.
Figure 8-4. An RPG Menu Program