TechTalk: Using Profiles and Device Descriptions

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

From: Monte Hill To: All

Would someone please tell me how to print a list of User Profiles and Device Descriptions? I am new to the AS/400 (coming from a System/36) and need a little help with the new commands. Thanks.

From: Ernie Malaga To: Monte Hill

You can get a list of any kind of object with the Display Object Description (DSPOBJD) command. For example, use this command to print a list of user profiles:

 DSPOBJD OBJ(QSYS/*ALL) + OBJTYPE(*USRPRF) + OUTPUT(*PRINT) 

To print a list of device descriptions:

 DSPOBJD OBJ(QSYS/*ALL) + OBJTYPE(*DEVD) + OUTPUT(*PRINT) 

The trouble with these listings is that they're too generic-they give you very little information about the objects themselves besides name and description. For example, the first command doesn't give you any user profile- specific information such as user class or default output queue assigned to the users. To the best of my knowledge, there's no built-in command to print a detailed list of user profiles. I wrote a command called LSTUSRPRF which appeared in the August 1991 issue of MC. You can download it from OpenBBS, or you can get the whole thing from the ResourceLibrary.

Also try the PRTDEVADR command (IBM's) to print a chart showing all the device descriptions attached to a specific workstation controller. For example, try running PRTDEVADR CTL(CTL01). It will give you a chart showing all the local devices attached to that controller.

From: James Coolbaugh To: Ernie Malaga

Ernie, you can use the WRKUSRPRF command to list all the user profiles to the screen; then use option 5 on all the profiles, but on the command line use OUTPUT(*PRINT). This will quickly generate a *BASIC listing of information for every profile.

From: Charlie McLean To: Monte Hill

User Profiles: DSPUSRPRF, F4 to prompt. Local Devices: DSPHDW-RSC, F4 to prompt.

From: Monte Hill To: Ernie Malaga

Thanks for the information. I will give these commands a try. What I am really after is a listing of device descriptions and user profiles that I can store with my backups in case I have a disk failure. Do you think these listings will be specific enough for that purpose? I have run the PRTDEVADR for each of my controllers and have a hard copy on file.

From: Monte Hill To: Charlie McLean

Thanks for the reply, Charlie. I will try the DSPUSRPRF as soon as I get a chance.

From: Ernie Malaga To: James Coolbaugh

Well, that goes to show you that you can never tell what tricks people come up with. I had never thought about that possibility. I tried it (you have to enter an option 5 next to each user you want printed) and it works. I suspect, however, that the question was if there was an OS/400 command that generated a System/36-like listing (you know, like SECLIST) where all user profiles are listed one after the other. I can't figure out why IBM hasn't provided this option-or one to print a similar listing of device descriptions,

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: