Home > AS/400 Tips > iSeries administrator tips > Three fun things you can do with WRKACTJOB
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Three fun things you can do with WRKACTJOB


Joe Hertvik
04.01.2002
Rating: -4.16- (out of 5)


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


Sometimes it's the simple tools -- like OS/400's green-screen Work with Active Jobs (WRKACTJOB) -- that you take for granted. WRKACTJOB's a lot older than many readers on this list and -- because of that longevity -- it contains some useful features that can be handy in different situations. Let's take a minute and look at three fun things our old friend WRKACTJOB can do:

1.WRKACTJOB can sequence active job data in one of three ways:

a. By using the F16 Key to sort by User, CPU %, Status, or any other of its reported columns.
b. By subsetting active jobs using the F20 key.
c. By specifying additional parameters when you enter the WRKACTJOB command.

WRKACTJOB allows you to sort data by any of its reported columns simply by clicking your cursor on the column you want to sort on and pressing the F16 key. So if you wanted to find out which jobs are currently using the most CPU, click on the CPU % column and press F16, and WRKACTJOB will resort your data by the CPU percentage each job is currently using.

Conversely, if you wanted to sort by user name, click on the User column and press F16 again. Alternatively, you can press the F20 key to select subsets of your WRKACTJOB data in which you can sequence the data in up to 15 ways. Also, by using the Subset Active Jobs panel that appears when you press F20, you can subset job data from certain subsystems or by certain types of job data (all WRKACTJOB entries, subsystem entries, system entries, or all entries that are performing above a minimum processing time or minimum response time). So you can segment and chop up your WRKACTJOB in many different ways. You can also use the same subsetting functions found in the Subset Active Jobs panel as parameters off the WRKACTJOB command by prompting WRKACTJOB from the command line and pressing the F10 key to enter additional parameters.

2. WRKACTJOB can search for a specific


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


RELATED CONTENT
iSeries administrator tips
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
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

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
Tracking critical file access in real time
Create an iSeries Access image and update it with the latest Service Pack

iSeries system performance and monitoring
Translating Linux for IBM i admins: Working with jobs and networking
Database performance comparisons on IBM i
How to: Monitoring job activity on the AS/400
Performance tuning for IBM i: The basics and beyond
How to: Reduce the percentage of ASP used on the AS/400
Detecting system changes made by outside IP address
AS/400 system values quiz
Checking on System i disk space requires creating a new command: XRTVSYSSTS
Drive space management commands
Viewing netstat information

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
CIW  (Search400.com)

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


job by using F7 - Sometimes all you really want to use WRKACTJOB for is to find a certain job to see how much CPU it's using, check its job log, or to end or change the job. Manual job searching can become tedious when you have a big iSeries 400 that may be running hundreds of server or interactive jobs. To find a particular needle in an OS/400 haystack, press F7 inside WRKACTJOB and type in the string you want to search for, as well as the WRKACTJOB column you want to search for the string in (*SBS for subsystem, *JOB for job, *USER for user, etc). Press ENTER after specifying the search info and OS/400 will take you to the first WRKACTJOB entry that matches your search criteria. If you then press the F8 key, WRKACTJOB will take you to next match or let you know when there are no more matches.

3. WRKACTJOB can automatically refresh WRKACTJOB information - Pressing F19 on the WRKACTJOB screen puts the screen into automatic refresh mode, where the statistics are updated automatically without having to press the F5=Refresh key. This feature is especially handy if you first sort the data by CPU percentage before placing the screen into auto-refresh, so that you can automatically see which jobs are using the highest CPU percentage over time. But there's a trick here. The refresh time on the screen is set by the WRKACTJOB automatic refresh interval parameter (INTERVAL). The INTERVAL parameter is recorded in seconds. By default--INTERVAL is set to an initial value of 300 seconds (five minutes). If you want to set the refresh time to a different value, you can call WRKACTJOB with a lower INTERVAL setting. To set your automatic refresh interval to five seconds, for example, you would enter the WRKACTJOB command in the following way:

WRKACTJOB INTERVAL(5)

It's also important to understand that 300 seconds is the default value only until you put in an INTERVAL value of your own. After you enter your first INTERVAL value, WRKACTJOB will automatically set the automatic refresh interval to the previous value it was set at (an INTERVAL setting of *PRV) unless you enter a new value.

While you can also perform automatic screen refresh with the Work with System Activity (WRKSYSACT) command, many people may prefer to use WRKACTJOB because it provides some different information than WRKSYSACT (in particular, WRKACTJOB displays all jobs and subsystems while WRKSYSACT displays data only for jobs or tasks that are currently active on the system). There are some advantages and disadvantages to using each command and you should choose the system reporting function that best meets your needs.

And there are more options you can access through WRKACTJOB if you just dig into it a little bit. So don't be afraid to visit an old friend every once in a while. You might just learn something.

-------------------------
About the author: Joe Hertvik is an IT professional and freelance writer who has been working with OS/400 since the days of the System/38 in the mid-1980s. Joe can be reached at jhertvik@midrangeserver.com.

========================
MORE INFORMATION
========================


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.


Submit a Tip




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 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts