creating menus

1150 pts.
Tags:
AS/400 development
AS/400 user profiles
DSPUSRPRF
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ten2008
    Thanks a lot Charlie
    1,150 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following