1,150 pts.
 creating menus
Hi anybody tell me how can we add the parameters to a new menu thru SDA. eg: for DSPUSRPRF i need to provide the user profile name. Instead i want to give &user1 and want to supply it by prompting. thanks

Software/Hardware used:
ASKED: December 15, 2009  2:06 PM
UPDATED: December 16, 2009  7:39 PM

Answer Wiki:
If you put a ? in front of the command, it will prompt. ?DSPUSRPRF ************** I had composed this answer, before I saw that Charlie Brown had also answered: You could just precede the command with a question mark, like this: ?DSPUSRPRF Or you could use two question marks in front of the appropriate keyword, to prompt for specific parameters: DSPUSRPRF ??USRPRF(&User1) ??TYPE(*ALL). This would insert the value of the &User1 variable into the USRPRF parameter and replace the default value for TYPE with *ALL, and then prompt for both parameters, so that the user could change their values if desired. CWC ************ ============================================================= If basic command and parameter prompting is what's wanted, then the Information Center has lots of details. You can review all of the rules under <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rbam6/allow.htm">Prompting for user input at run time</a>. You might pay special attention to the "Using selective prompting for CL commands" sub-topic. Prompt control can be almost a programming 'language' all by itself. Tom
Last Wiki Answer Submitted:  December 16, 2009  7:39 pm  by  Cwc   4,275 pts.
All Answer Wiki Contributors:  Cwc   4,275 pts. , CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks a lot Charlie

 1,150 pts.