You are on page 1of 3

System iNetwork Head Nav Subscribe Log In Contact Us Advertise User login Username: * Password: * Request new password

Search Primary links Forums Archives Code Blogs Podcasts Webcasts e-Learning Guides Newsletters About Us Contact Us About the Network Tech Editor Profiles Editorial Calendar Writers Kit Advertise Join Network Categories RPG Programming Other Languages Application Development Database/SQL Availability Security Systems Management Networking IT Mgmt/Careers Site Links Solutions Store Events UK Centre Jobs System iPortal Home Content Exploring The Mysterious User Profile User Options Article ID: 56934Posted July 16th, 2008 in Systems Management By:Dan Riehl When you create or change a user profile, there are many optional parameters for which you can specify a value. Since we normally just clone an existing user pr ofile to make a new one, most of us never get around to examining all of those o ptional parameters. For example, did you know that you could specify the User Options parameter? You can use this parameter to do all sorts of things. Here, I'll discuss the User O ptions parameter in more detail. When using the CRTUSRPRF, CHGUSRPRF, or CHGPRF command, one of the last paramete rs is User Options(USROPT). The default value for USROPT is *NONE, so when we do not specify an alternate va lue, we get no special options for that user. The alternate values we can specify include *CLKWD, *EXPERT, *ROLLKEY, *NOSTSMSG

, *STSMSG, *HLPFULL, and *PRTMSG. Here's an example of using the USROPT parameter. CRTUSRPRF USRPRF(MYUSER) USROPT(*HLPFULL *PRTMSG)*CLKWD Show CL keywords F11 is a toggle switch to see choices or CL Keywords. *CLKWD simply changes the display you see first; choices or keywords. When Prompting a Control Language command with F4=Prompt, we first see a textual description of the choices you can enter for the parameter on the right side of the parameter entry area. If we press F11=Keywords, we will see the CL keyword names to the left of the parameter entry area. If we assign the user option *CLKWD to a user profile, these displays are revers ed. In other words, you will first be prompted with the CL Keywords, and will se e the choices after pressing F11=Choices. As I recall from the old System/38 days, the CL prompter always prompted for CL keywords, and there was no F11 toggle to see the text for the choices. Choices w ere added in OS/400 V1R1. So, for those old hands who want to see things the old System/38 way, set the user option *CLKWD to see the keywords first. (I'm sure someone will correct me if I mis-remember the System/38 Command Prompt from 1988 .) *EXPERT Use expert mode on certain displays I really don't use this option. When I'm on the system, I need as much help as I can get, and *EXPERT mode removes the instructions on some operational screens. It is similar to setting the *ADVANCED assistance level on screens that support that level. *ROLLKEY This user ge up and ion for a Change page up/page down option is a hoot! I guess some folks just don't get the metaphor of pa page down. It seems backwards to some. So, if you set the *ROLLKEY opt user, the functions of page up and page down are reversed.

You can have some real fun with that one. *NOSTSMSG or *STSMSG *Status message display I guess some users get real confused when they see those status messages blinkin g at them from line 24 of the display. It happens a lot during Query operations, and will also show up in custom code where the programmer is sending *status me ssages to keep the user informed. But as the programmer, you may not want the user to know what the code is doing, so sometimes you want to hide your *status messages. If *STSMSG is selected, the user will see status messages. If *NOSTSMSG is selec ted, the user will not see *status messages. If neither of these values is selec ted, the user will see *status messages. Caveat: There are other avenues to control the display of *status messages: the system value QSTSMSG and the job attribute STSMSG. *HLPFULL Full screen help text The i/OS has great HELP facilities. Cursor-sensitive HELP text is available on a ll IBM displays, and IBM and 3rd party vendors have provided great tools to easi ly build HELP text for your own application screens. When you use the F1=HELP key, you typically get a limited help text window, whic h you can then scroll through to view the entire help text.

The *HLPFULL user option changes that windowed help text to cover the entire scr een instead of a fraction of the screen. So *HLPFULL means full screen help text . I like this user option. *PRTMSG Message on printing action Don't you love it when you user calls you and asks, "Where is my report? Is it d one yet?." Well, by turning on *PRTMSG for a user, they receive an interrupting message telling them when their report is done printing. I like this option for end users. Bookmark/Search this post with: Login to post comments Email this page Printer-friendly version Related Links Beware of Registered Exit Programs - Yours and Theirs Securing your CL Commands Each version ! IBM-Supplied Help Text Generator for User-Written Commands Enhance Security with CL Command Exit Point Programs Managing Restricted Commands ProVIP Sponsors ProVIP Sponsors

You might also like