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

8-: 13
Figure 8-8. Setting User Switches in the System-Defined Job Control Word (JCW)
Figure 8-9 shows a UDC that uses a System-Defined JCW. The UDC
initializes the JCW (SETJCW JCW=0), then calls a menu program, RMENU.
RMENU prompts the user to select the reports to print. These selections
are saved in the JCW. When RMENU ends, the UDC executes the report
programs indicated by the User Switches in the JCW.
Figure 8-9. Using the System-Defined JCW in a UDC