Q
Problem solve Get help with specific problems with your technologies, process and projects.

Locating user profiles with the WRKUSRJOB command

I would like to use the command WRKUSRJOB with a generic user profile, such as LOPS*. I want to see all the jobs that belong to the users whose profile start with LOPS. Is there any method to implement this?
Unfortunately, I do not know of a command that allows you to do this. However, you could create your own command and accomplish what you are looking for with a little programming. To accomplish this, I would execute the following steps:

1. Execute the following command in a CL:
DSPOBJD OBJ(LOPS*) OBJTYPE(*USRPRF) OUTPUT(*OUTFILE) OUTFILE(QGPL/USRPRF)

Then , create a program to read through the output file from the above command and do a WRKUSRJOB for each user profile in the file and output to another work file. I would then read through this work file to display a screen of all the jobs. You will need to bring the functionality of the WRKUSRJOB to the screen to work with. Hope this helps.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: Tips, tutorials and more.

Visit the ITKnowledge Exchange and get answers to your systems management questions fast.

Read this Search400.com Featured Topic: Take control of your iSeries.

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.

Dig Deeper on iSeries service and support issues

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close