Working With AS/400 Active Jobs

Posted: Apr 28, 2010 |Comments: 0 | Views: 259 |

Having worked on and administered IBMs midrange AS/400, iSeries and System i platforms for the better part of ten years I have found that you can boil down the essential administrative functions to a few select commands available from one primary command. Let me explain.



One of the major functions of the platform is the concept of work management using jobs and subsystems. Everything that runs on the good old 400 is considered a job; now some jobs run interactively like your green screen logins and the rest of them run in batch type environments.



So when it comes to monitoring the performance of the system at any given time you will want to become familiar with the Work With Active Jobs command WRKACTJOB. The command displays all of the jobs presently operating and under which subsystem it is running under. It also shows some vital information related to the job like CPU usage.



Now a really key point that everyone seems to be confused over is whether to use the F5 or F10 keys to refresh the information and datat displayed on the screen. I have seen people do it incorrectly so let's examine what each of those keys do.




First of all F5 refreshes the information on the screen like the CPU % used but it does not reset the statistics. So it just adds it to the running total, you can see the time period for the running total by looking at the "elapsed time" counter at the top center of the screen underneath the display title.



When you press the F10 key it restarts the statistics and displays then since the last time the screen was displayed. So if you wanted to track a specific jobs resource usage over a small period of time you would press F10 to reset the screen statistics and then F5 to update the information. Once finished simply press F10 again to reset those counters.



Other very handy options include the ability to do a display job log by taking option 5 for display which then calls the command Work with Job or WRKJOB. From the WRKJOB screen simply take option 10 and press the F10 to display the entire job log for that job. This is very usefull for debugging purposes or figuring out why a message occurred for a given job.



If you need to see any spool files or printed output that a job has created simply take option 8 from the WRKACTJOB screen. I find this option very useful to see if a job has created a report or other spooled file that may have already printed which is indicated by the status field. This is much more useful then searching through output queues or using the Work With all Spool files command WRKSPLF to find out if a reported has been generated.



Finally you will want to be familiar with using option 4 for ending a job. You will at some point or another find a job stuck in a loop, a user created query taking up all the resources or just needing to log a users interactive sessions off the system. This is what option four is all about by calling up the End Job command ENDJOB.



You will notice that each of the additional job commands available from the Work With Active jobs screen are available as standalone commands, however to use them separately requires knowing the job name, user and the unique job number. I find it is much faster just to pop into WRKACTJOB look at a job log or another function since it passes the name, user and job number into the specific commands automatically.

Questions and Answers

Ask
200 Characters left
Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    Print
    Re-Publish
    Source:  http://www.articlesbase.com/computers-articles/working-with-as400-active-jobs-2253282.html

    Article Tags:

    as400

    ,

    iseries

    ,

    system i

    ,

    i5

    ,

    os400

    ,

    i5os

    An in depth look at the new MMORPG from Blizzard Entertainment known as Diablo III, a long awaited release for Diablo fans.

    By: swtorman90l Computersl Jun 01, 2012

    Most small businesses take advantage of computer technology, and it certainly can make things a lot easier for everyone within the business when you do so properly. Unfortunately, there are also a number of different problems that can occur as a result of the technology that you are using.

    By: Jesus Mattsonl Computersl May 31, 2012

    For any restaurants, it is very important to have vigilant end to end point of sale and service. If someone is new to the business of making and serving meals, it's very important to have a clear cut observation on point to point service to sale.

    By: Jack Authorsl Computersl May 30, 2012

    Small business financial software plays a vital role in the operations of an organization especially the small enterprises. This is where you get the opportunity to keep the record of all the financial activities that are occurring in your organization.

    By: Chris Alexanderl Computersl May 29, 2012

    Wireless is one of the best ways in order to get internet to a laptop or a computer, but if you want to sell wireless items in the US or Canada, you need to be sure you pass the wireless testing and you get the FCC certification to prove it.

    By: Jack Bandyl Computersl May 29, 2012

    When it comes to reporting tools for the AS/400, iSeries and IBM i platform there are many products to pick from. In fact a whole cottage industry has sprang up over the years with a myriad of different data tools for reviewing and extracting data from the OS/400 integrated DB2...

    By: John Andersenl Computersl Jul 19, 2011

    One of the more commonly asked questions I see in forums and by end users is how do you get your data from the AS400 down to the PC in a text file format or as an Excel based spreadsheet. And fortunately with modern tools and software this is a...

    By: John Andersenl Computersl May 09, 2010 lViews: 525

    Whenever I start working on an AS/400, iSeries or Power System box at a new company there are a few key areas I like to be sure of. These areas include ensuring basic system level security, job configuration and process management. Let's take a fast look at how you can...

    By: John Andersenl Computersl May 04, 2010

    One of the nice features of the AS/400 and iSeries platform is it's reliability and administrative requirements. But even in light of this as a system administrator you should also be looking and monitoring key data elements to create a baseline of performance metrics. This data can then be used...

    By: John Andersenl Computersl Apr 28, 2010 lViews: 177

    Discuss this Article

    Author Box
    Articles Categories
    All Categories
    Quantcast