• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: When System Job Tables Attack, Part II

    October 1, 2008 Joe Hertvik

    Last issue, I discussed the ins and out of i5/OS system job tables and how job table overflows can hurt your system. This week, I’ll provide some advice on how to detect and delete excessive jobs that are cluttering your system. Next week, I’ll show you how to maintain the job tables and how to check for job table damage.

    What Are System Job Tables, Again?

    System job tables are internal system objects that i5/OS uses to track partition jobs. There can be up to 10 job tables on a partition, and the maximum number of system jobs for a partition is designated in the Maximum Number of Jobs (QMAXJOB) system value.

    As the number of partition jobs approach the system’s QMAXJOB value, your system job tables start to fill up and a number of issues can occur. These issues include slow backups, failure to accept new jobs, high DASD usage due to a large number of spooled files, performance issues, and IPL problems. As the number of system jobs approaches the system’s QMAXJOB value, the more likely you are to experience system issues.

    You can check your current system job table status by running the Display Job Tables (DSPJOBTBL) command, which generates a screen display that looks like this.

                              Display Job Tables
    
    Permanent job structures:                Temporary job structures:
     Initial  . . . . :   30                  Initial  . . . . :   20
     Additional . . . :   10                  Additional . . . :   10
     Available  . . . :   72480               Available  . . . :   583
     Total  . . . . . :   126625 
     Maximum  . . . . :   163520 
    
    
                ---------------------Entries----------------------
     Table         Size        Total    Available       In-use        Other
         1     16752384        16352            0        16352          0
         2     16749312        16352           99        16253          0
         3     16749312        16352         1718        14634          0
         4     16749312        16352        11136         5216          0
         5     16749312        16352        15891          461          0
         6     16749312        16352        16312           40          0
         7     16749312        16352        15833          519          0
    

    The specifics on reading this display are contained in last week’s column. Generally, you can detect the following situations when examining the Permanent Job Entries on the DSPJOBTBL screen.

    1. If the total number of permanent job structure entries start approaching the maximum system jobs, your system may start experiencing the problems listed above. i5/OS will issue a CPF1468 message: System job tables nearing capacity. In this situation, you will want to delete old jobs from the system to decrease the total number of permanent job entries.
    2. Your system contains a small number of available entries in relation to the system’s total entries. Your system may experience performance degradation because it will have to continually extend the job tables as new work enters the system. Deleting old jobs will also help in this situation.
    3. Your system contains a large number of available entries in relation to the total entries. This can cause problems when running functions that examine jobs. It can also degrade performance during IPL steps that process table entries. You will want to compress your system job tables in this situation.

    I’ll cover how to handle the first two situations this week and talk about the third situation next week.

    What Causes Job Table Usage To Run High?

    The number one reason that system job table problems occur is because organizations maintain too many spooled files on a system. It may be that system applications overproduce spooled file output, or that spooled files aren’t efficiently pruned from the system by printing or deletion, or that your organization likes to hang on to their system output. Whatever the reason, too many jobs with unprocessed spooled files can cause performance problems and getting control of spooled file output is critical to resetting your system.

    The easiest way to check for excessive spooled files is to browse through your output queues by using the Work with Output Queues (WRKOUTQ) command, like this:

    WRKOUTQ OUTQ(*ALL)
    

    This will display all the output queues on your system and how many spooled files are in each output queue. From here, it’s fairly easy to identify which output queues contain too many spooled files. Here’s a sample WRKOUTQ display that I recently ran on one of my machines that had excessive job table entries.

                    Work with All Output Queues 
    
     Type options, press Enter.
    2=Change   3=Hold   4=Delete   5=Work with   6=Release
    8=Description   9=Work with Writers   14=Clear
    
     Opt     Queue     Library     Files     Writer     Status
             QDKT       QGPL           0                  RLS
             QKROUTQ    QGPL           0                  RLS
             QPFR OUTQ  QGPL           0                  RLS
             QPRINT     QGPL      321969                  RLS
             QPRINTH    QGPL           0                  RLS
             QPRINTM    QGPL          28                  RLS
             QPRINTS    QGPL           0                  RLS
             QPRINT1    QGPL           0                  RLS
             QPRINT2    QGPL         387                  RLS
             QUERY      QGPL         830                  RLS
    

    A screen like this makes it easy to identify where excessive job table entries are coming from. The hard part is deciding which spooled files to delete. Some users can be notoriously fussy when it comes to removing their spooled file output. It’s helpful if your shop has a policy that it will only keep spooled files for a certain time period, perhaps 30 days. With a policy in place, you can set up routines to automatically delete spooled files that are older than a certain date. To help with that task, I published a generic routine for selectively deleting spooled files according to any criteria you wish. After spooled files are deleted, the jobs associated with the spooled files will be removed from the system and your available permanent job structure entries will go up. If you want to use the brute force method, you can also reduce your available entries by simply clearing overcrowded job queues when you find them.

    It’s also worthwhile to check the number of entries in the QEZJOBLOG output queue. On busy systems, tens of thousands of job logs can be kept on the system, taking up disk storage and filling up the system job tables. In the i5/OS CLEANUP options, IBM provides a setting that lets you designate how many days you should keep job logs and other system output. Job logs older than the designated number of days are automatically deleted. Take the following options to check and reduce a partition’s number of days to keep: job logs and other system output value.

    1. Call the Cleanup Tasks menu by executing the following Go to Menu (GO) command:

    GO MENU(CLEANUP)
    

    2.Take option 1, Change cleanup options from the menu that appears. You can change the number of days to keep values on this screen.

    By reducing this value to a reasonable number, you are setting up an automatic routine to prune your system job tables by deleting excessive job logs and the jobs they are associated with.

    Keeping Your Spooled Files and Eating Them, Too

    There’s a second way to take care of excessive permanent structure entries caused by jobs that contain unprinted and undeleted spooled files. In i5/OS V5R2 and above, IBM offers a system value called Spooled file action (QSPLFACN). You can set QSPLFACN to one of two values: *KEEP (its default) or *DETACH. When set to *KEEP, spooled files are associated with the job that produced them. After completion, the system table entries for jobs containing spooled files remain active with a status of completed.

    Two things happen when you change QSPLFACN to *DETACH. First, when the job ends, all its associated spooled files are detached from the job. After the spooled files are detached, the job itself is removed and its permanent job structure entry is recycled back to the system. *DETACH processing takes effect immediately for any job that becomes active after the change occurs. It does not affect jobs that ended before the change occurred.

    Detaching spooled files from their originating jobs can be a great boon in keeping your system job tables under control, because it will keep your job tables relatively small. It can also cause problems in locating spooled file output through i5/OS job commands. After changing QSPLFACN to *DETACH, you will no longer be able to find completed jobs and their associated spooled files by using any of the following job commands:

    Work with Job (WRKJOB)
    
    Work with Submitted Jobs (WRKSBMJOB)
    
    Work with User Jobs (WRKUSRJOB)
    

    The bottom line is that setting QSPLFACN to *DETACH is a great move if you will never need to locate spooled files by examining the jobs that created them (and this includes looking for job logs). However, if your spooled files are more device-oriented than job-oriented (such as barcode labels or packing lists) and you don’t care about finding the jobs that created them, QSPLFACN can help you skirt most of the issues with system job table overflow.

    A Correction From My Last Column (Already)

    In last week’s article, I stated that i5/OS has no mechanism for changing the threshold value at which the CPI1468 message is sent. I was wrong. Reader C. Barbie wrote in to tell me that IBM is offering two PTFs to add this capability to i5/OS V5R4 and V6.1 systems:

    V5R4 – PTF SI29585
    V6.1 – PTF SI30171

    Once these PTFs are applied, you can create a two-digit decimal data area called QMAXJOBPCT that contains a new lower threshold value to use for sending out the CPI1468 error message. If you want the system to monitor system job table usage when it reaches 80 percent, for example, you can create QMAXJOBPCT by using the following Create Data Area command (CRTDTAARA).

    CRTDTAARA DTAARA(QSYS/QMAXJOBPCT) TYPE(*DEC) LEN(2 0) VALUE(80)  
    

    To activate the new threshold, you would do one of two things. You can either IPL the system or you can change the value in the QMAXJOB. The new QMAXJOBPCT data area value will immediately take effect after one of these two actions is completed.

    Too Much for Two Articles

    Unfortunately, I don’t have enough time this week to cover my final topics: how to maintain system job tables and how to check for job table damage. I’ll fill you in on this valuable information next issue.

    About Our Testing Environment

    Configurations described in this article were tested on an i5 550 box running i5/OS V5R4. Many of the commands are also available in earlier versions of the operating system running on iSeries or AS/400 machines. If a command is present in earlier versions of the i5/OS or OS/400 operating systems, you may notice some variations in the pre-V5R4 copies of these commands. These differences may be due to command improvements that have occurred from release to release.

    RELATED STORIES

    Selectively Deleting Spooled Files

    When System Job Tables Attack, Part I



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    MoshiMoshi:  Episode Three now showing! Watch and Win!
    COMMON:  Join us at the Focus 2008 workshop conference, October 5 - 8, in San Francisco, California
    Vision Solutions:  A $20 gas card for completing a short i5/OS DR survey

    IT Jungle Store Top Book Picks

    Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
    Getting Started with PHP for i5/OS: List Price, $59.95
    The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
    The System i Pocket RPG & RPG IV Guide: List Price, $69.95
    The iSeries Pocket Database Guide: List Price, $59.00
    The iSeries Pocket Developers' Guide: List Price, $59.00
    The iSeries Pocket SQL Guide: List Price, $59.00
    The iSeries Pocket Query Guide: List Price, $49.00
    The iSeries Pocket WebFacing Primer: List Price, $39.00
    Migrating to WebSphere Express for iSeries: List Price, $49.00
    iSeries Express Web Implementer's Guide: List Price, $59.00
    Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95
    Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
    Getting Started with WebSphere Express for iSeries: List Price, $49.00
    WebFacing Application Design and Development Guide: List Price, $55.00
    Can the AS/400 Survive IBM?: List Price, $49.00
    The All-Everything Machine: List Price, $29.95
    Chip Wars: List Price, $29.95

    TMW Systems Certifies ALK Technologies’ Truck Routing Software Bytware Bought by Help/Systems and Audax

    Leave a Reply Cancel reply

Volume 8, Number 33 -- October 1, 2008
THIS ISSUE SPONSORED BY:

WorksRight Software
System i Developer
Bug Busters Software Engineering

Table of Contents

  • Keep Your Hands on the Keyboard with RSE
  • Simulate a Boolean Data Type in a Database Table
  • Admin Alert: When System Job Tables Attack, Part II

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle