PROMPT 'User name ====>>', 8 |
PROMPT 'Department ====>>',20,'TECH-SUPPORT' |
PARM /QUERY,USERID=%%P1,DEPARTMENT=%%P2/ |
The first parameter is blank and the second parameter is TECH- SUPPORT.
If the user enters UserA on the first PROMPT line, leaves the second PROMPT line unchanged, and presses Enter, the following string is passed to the program:
QUERY,USERID=UserA,DEPARTMENT=TECH-SUPPORT |
When both PROMPT and PARM statements are specified, their order within the menu is not important; however, the data is passed to the program as specified in the PARM statement.
Parent Topic |