Home > AS/400 Tips > iSeries administrator tips > Old recommendations for WRKACTJOB no longer true
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Old recommendations for WRKACTJOB no longer true


Vernon Hamberg
10.06.2003
Rating: -4.53- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


In the 10/1 Administrator Tip there was an article on the proper way to end WRKACTJOB. I believe it is in error, as WRKACTJOB has been changed since this information was correct. There is not a job collecting the statistics constantly. In fact, the stats are those continuously collected by the system. The only work done by WRKACTJOB is done when the user refreshes (F5), resets (F10), or restarts (F13), when the various machine and resource data is retrieved and processed.

I just did a quick test with WRKACTJOB up in one session and WRKSYSSTS in another. I reset the WRKSYSSTS display (F10), and there was no noticeable change in CPU% while my WRKACTJOB session was idle. Then I shutdown the WRKACTJOB (admittedly, F3) and there was no difference. Then I started WRKACTJOB and ended with SYSREQ 2 -- again no difference.

Here is something from Ed Fishel of IBM that was included in MIDRANGE dot COM's Midrange-L mailing list. It seems that ending with SysReq 2 causes WRKACTJOB to do more work when starting up again:

Q. I've often heard that WRKACTJOB takes up a lot of CPU power. Why?

A. Over the years there have been changes to the way WRKACTJOB works. What was once true for DSPACTJOB on System/38 is no longer true for WRKACTJOB. Unfortunately people still pass on the old recommendations. In the following paragraphs I will attempt to provide an up to date description of WRKACTJOB.

When you exit WRKACTJOB by using Enter, F3, or F12 you have totally ended WRKACTJOB. The statistics reported by WRKACTJOB are not collected by WRKACTJOB. The collection of those statistics is always done for every job in the system by LIC. This collection occurs even when WRKACTJOB has never been used on the system.

WRKACTJOB does keep an internal space somewhere to save the current statistics so that it can report the changes the next time it is used within the same job. You can reset those statistics by using F13=Reset statistics or by using the RESET(*YES) parameter on the command. Using System Request followed by option 2 will cause WRKACTJOB to destroy the internal space it uses to save its statistics. It will then create another space the next time it is run. The space is also destroyed at the end of the job, so there is no advantage to using System Request followed by option 2 to end WRKACTJOB. The only WRKACTJOB resource you release when you sign off is the internal space object used to store the statistics. The size of this space varies based on the number of active jobs in the system. By signing off and then on again after each use of WRKACTJOB you are forcing it to recreate that space in the new job. This will waste more resources than it saves. Since WRKUSRJOB does not report any job statistics it does not need to use a space to save them.

In the past, the reason for the recommendation to not use WRKACTJOB (or DSPACTJOB on System/38) was because of the resources that it used while it was building the data to be displayed. In the past WRKACTJOB searched all work control blocks on the system looking for active jobs. When the system had lots of jobs with a status of JOBQ or OUTQ it could take WRKACTJOB a relatively long time to find just the active jobs. This was changed several releases ago. Now WRKACTJOB uses a much faster LIC interface to materialize the list of active jobs.

And in a later post on the same topic, Ed says:

The purpose of my post was to set the record straight on how WRKACTJOB works.

I have been told that on a system with tens of thousands of active jobs, even one user using WRKACTJOB is too many. Even when the WRKACTJOB list is subset it still looks at the control blocks for each active job just to see if the job should be in the list. I was also told that the GUI interfaces can have a smaller impact on the system when the list is subset to a small number of jobs in a subsystem, and if the default (or fewer) output columns are used.

My recommendation is to use WRKACTJOB sparingly. Use WRKSPLF, WRKSBMJOB, and WRKUSRJOB whenever they provide the information you are looking for.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Create an iSeries Access image and update it with the latest Service Pack
Tracking critical file access in real time

iSeries administrator tips
How to: Upgrade the OS for AS/400
V6R1 upgrade planning checklist
Connecting multiple iSeries systems through DDM
Analyze the health of your IBM i server with iScore
Researching high availability for your System i shop
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i

OS/400
Top 10 backup commands
Take control of your iSeries
How to save time using the CPYTOPCD and CPYFRMPCD commands
Top Q&A's on the OS/400
Top 10 security tips
Use caution when providing access to file shares
How to set up an autostart job
How does Sarbanes-Oxley affect you?
Automated disaster recovery revisited
Top 10 Administrator Tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts