Home
TFH
OS/400 Edition
Volume 11, Number 42 -- October 7, 2002

Admin Alert: Readers' Insights on Inactive Jobs and QSTRUPJD Job Logs


by Joe Hertvik

One of the best things about the Admin Alert column is that I learn as much from the readers as you, hopefully, learn from me. Several readers have written in recent weeks to add to or correct some of the information I've presented. Here are a few of the more recent gems about inactive jobs and QSTRUP job logs that come straight from my e-mail inbox. My responses follow each e-mail.


More on Dealing with Inactive Jobs

After reading "Dealing with Inactive Jobs," I thought it would be a good idea to mention that the TCP Keep Alive parameter (TCPKEEPALV), in the Change TCP/IP Attributes (CHGTCPA) command, could keep interactive jobs from ending if it is set too low.  In our shop, the inactivity time-out system value (QINACTITV) was set at 160 minutes, while the TCPKEEPALV parameter was set at 120 minutes. This kept our inactive terminal sessions out there and alive, so that the system never took action on inactive jobs.

--Robert M. Boling III


It's important to keep in mind that TCPKEEPALV has a different function from QINACTITV. TCPKEEPALV is concerned with checking whether a connection--not necessarily a terminal session--is active, by sending out TCP probes after x number of minutes, in order to keep it alive. QINACTITV is a timer that prompts OS/400 to take action when an interactive job has been sitting idle for too long. These two settings may conflict with each other. For instance, TCPKEEPALV may keep jobs active that you would rather have end or be disconnected from the system, so you should consider the proper values to set each parameter to.

There's another OS/400 setting that you should look into for ensuring that active Telnet sessions are still communicating with their target iSeries or AS/400 server. The Session Keep Alive Timeout (TIMMRKTIMO) parameter can be found inside the Change Telnet Attributes command. (Type CHGTELNA and press F4.) OS/400 uses TIMMRKTIMO to schedule periodic checks for lost Telnet connections and to end the Telnet connection if it doesn't respond to a TCP probe. It's important to note that the TIMMRKTIMO parameter is entered in seconds, instead of minutes, as OS/400 uses in the QINACTITV and TCPKEEPALV settings. So if you wanted to check for dropped Telnet connections every two minutes, you could set TIMMRKTIMO to 120 seconds by using the following CHGTELNA command:

CHGTELNA TIMMRKTIMO(120)

The default value for TIMMRKTIMO is 600 seconds (or 10 minutes). You can also set TIMMRKTIMO to *CALC, which checks Telnet sessions based on a calculated frequency of sampling value. In addition, you can set TIMMRKTIMO to a specific numeric value.

As a follow-up to last week's story, I've reexamined how QINACTITV and the inactivity message queue (QINACTMSGQ) system value work together when used with Telnet sessions. This week I found instances on three different V4R5 AS/400s where QINACTMSGQ was set to disconnect jobs (*DSCJOB) that exceeded the QINACTITV timer value. However, instead of disconnecting the jobs, OS/400 ended the jobs, leaving the following sequence of messages in the ended device's job log.

CPF1358 - " DSCJOB not allowed for Server jobs."
CPI1127 - "All jobs at work station device_name ended."

These two messages indicate that QINACTMSGQ processing may behave differently for Telnet jobs, and you may not be able to specify *DSCJOB if you're trying to manage inactive Telnet jobs (such as those you create in the PC5250 program that comes with Client Access Express for Windows). It looks as if QINACTMSGQ disconnection processing may not work on 5250 sessions that are activated through the OS/400 Telnet server. As a result, the only viable actions you may be able to set QINACTMSGQ to for Telnet sessions would be to end the job (*ENDJOB) or to send a notification message to a specific OS/400 message queue.

I don't have the definitive word on this from IBM, only what I saw and deduced from trouble-shooting these systems. So be careful when you're setting up inactive-job processing for a system where the majority of users sign on through Telnet server client jobs. This restriction may be in force. If any sharp-eyed reader can provide more information on this issue, please feel free to e-mail me at jhertvik@itjungle.com.


A Better Way to Find QSTRUPJD Job Logs

Here are two e-mails I received about my suggestion that readers can find their start-up program (QSTRUPJD) job log by using the Work with User Jobs (WRKUSRJOB) command for the QPGMR user profile, as follows:

WRKUSRJOB USER(QPGMR)

In the article, I said that, after running this command, you should page through all the QPGMR jobs that WRKJOB provides, looking for the most recent QSTRUPJD job. While that works when QSTRUPJD is run under QPGMR, several readers pointed out the flaws in this technique.


Just a quick thought. The following Work with Job (WRKJOB) command is a better way to find your start-up job's log, especially if you run QSTRUPJD under another user profile (in our case, QPGMR didn't have enough authority to do the things we wanted it to do):

WRKJOB JOB(QSTRUPJD) 

--John Hamrick


I like searching for jobs by the job name, if known. In this case, I'd use the WRKJOB command, like this:

WRKJOB(QSTRUPJD)

And a list of any system jobs with that name will be displayed.

--Vern Hamberg


Using WRKJOB is not only an easier solution, it also takes care of start-up programs that don't run under the QPGMR user profile. I stand corrected, and I even started using WRKJOB to locate other OS/400 jobs I could never find before. So thanks for writing, guys. And keep those e-mails coming.


Sponsored By
RJS SOFTWARE SYSTEMS

Implement Document Imaging on your
iSeries-AS/400 in 30 minutes or less

Image Server/400 is a Web browser-based document image management system for the iSeries.

Documents can be quickly scanned and stored in IFS folders, and then located and retrieved for viewing via any Web browser. Integrate with other iSeries-AS/400 applications.

Visit us at COMMON, Booth 418, call us at 888-RJS-SOFT, or download a FREE fully functional demo from our Web site at www.rjssoftware.com


THIS ISSUE
SPONSORED BY:

BCD Int'l
SoftLanding Systems
Elite Document Solutions
Maximum Availability
RJS Software Systems
Key Information Systems
Quadrant Software
Coglin Mill


BACK ISSUES

TABLE OF CONTENTS
IBM Delivers Dynamic AIX Logical Partitioning, Readies More Regatta-M Servers

IBM Kills Many OS/400 Boxes, Making Way for Regattas

Microsoft Makes Share Gains with Windows on Servers

Setting the Record Straight on Remote Journaling

Admin Alert: Readers' Insights on Inactive Jobs and QSTRUPJD Job Logs

Security Specialist PentaSafe Acquired by NetIQ

As I See It: Evaluate This

But Wait, There's More . . .


Editor
Timothy Prickett Morgan

Managing Editor
Shannon Pastore

Contributing Editors:
Dan Burger
Joe Hertvik
Kevin Vandever
Shannon O'Donnell
Victor Rozek
Hesh Wiener
Alex Woodie

Publisher and
Advertising Director:

Jenny Thomas

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com



Last Updated: 10/7/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.