Download View Online
Transcript
Some important fields include: Verify selection: Indicate whether you want to verify your selection. *YES specifies that you do want to verify your selection, and the command will not be run until you do. *NO indicates that you are to automatically run the command without verification. Command: Specify the CL command that you want to run when this menu option is selected. You can prompt the command by pressing F4. Information (*INFO) The *INFO menu item type allows you to play a simple customized message or it allows you to run a CL program that you have created. This item type is used when an interface into your application is needed, such as playing the current sales for the week. You can specify the option number, a text description of the menu item, a message to be associated with the menu item, the program to process and library, as well as program value and whether to pass a reply or not. The *INFO type allows a user exit program to be in control of the dialogue between the System i and the person on the phone. Within the ICOMTOOLS source file found in the ICOMTOOLS library are two sample programs that will help you understand how this process works. The source members start with PARTDEMO and SAYSTATUS. The SAYSTATUS sample program is the equivalent to the ICMCSTS program that is used in the SAMPLE2 menu. Add Menu Item Type . . . . . . . . . . . . . . : *INFO Type choices, press Enter. Option number . . . . . . . . . . . Menu item text . . . . . . . . . . 1 Message . . . . . . . . . . . . . . *PGM Program to process Library . . . . . Program value . . . Pass reply . . . . *LIBL *NONE *NO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Number, 01-10 Name, *NONE Name, *LIBL Chararcters, *NONE *NO, *YES Some important fields include: Message: Specify the message you want to play for this option. *PGM indicates that you wish to execute a program to run when this menu option is selected. If you specify *PGM in the Message field, you must enter a program name and library in the Program to process and Library fields. If *PGM is not used, you can also enter plain text in the message field. Program to process: Indicate the program and library that you want to execute when *PGM is specified in the Message field. Specify *NONE if you do not want to execute a program, or the name of the program you want to run. Program value: Specifies a value that will be passed to the program. This value is used by the program to know what to process next. Refer to Appendix E for more information. *NONE indicates that there are no program values to pass to the program you have selected to run. Pass reply: Specifies if you want to call the specified program twice. Once in order to request the user to enter a number (such as salesperson number) and then a second time in order to pass the number that the user entered to your program. *NO indicates that you do not want icom/400 User Manual- 211