Newsletters Subscriptions Forums Media Kit About Us Contact Search Home

TFH
OS/400 Edition
Volume 12, Number 50 -- December 15, 2003

Admin Alert: Does ENDJOBABN Prevent PTF Applications?


by Joe Hertvik

In "Admin Alert: Reader Feedback on How ENDJOBABN Affects PTF Application," I noted that using ENDJOBABN causes the previous end of system indicator, QABNORMSW, to be set to 1 (abnormal ending), which prevents PTFs from being applied at IPL time. I recently received an e-mail indicating that this might not be the case with OS/400 V5, and the problem may have been fixed as far back as OS/400 V3.

The e-mail was sent by an IBM employee, and it confirmed that using ENDJOBABN does turn on the QABNORMSW. The e-mail also referenced IBM APAR (authorized problem analysis report) SA54989 for OS/400 V3R2 and V3R6 from November 25, 1996. That APAR (which I was unable to find on the APARs Web site) states the following, in the conclusion section: "If the only reason an IPL is abnormal is because ENDJOBABN has been invoked, and the only reason PTFs are not applied is because the IPL is abnormal, then the PTFs will now be applied on the IPL even though it is an abnormal IPL."

I tried to find other APARs that might reference this issue, but I didn't see any on the site, either. However, since this APAR was written for OS/400 V3R2, it's reasonable to believe that this fix was ported upward to OS/400 V5, and that if you had used ENDJOBABN before IPLing your system, you wouldn't have to perform a second IPL to apply PTFs. However, I received a different answer from another source at IBM before I wrote the column.

If anyone at IBM can provide a definitive answer on this issue, please e-mail me at jhertvik@itjungle.com. We'll print the results of any correspondence in a future column.

I can recommend that the best course of action is to follow good PTF application practices and to check your installation history after you IPL. If you loaded PTFs to be applied, before you ran an ENDJOBABN command, you can check your installation history to see if those PTFs were applied, by running the following steps from the system console after the IPL completes.

First, go into the Work with Licensed Programs menu by entering the following OS/400 menu command: GO LICPGM

Next, take option 50, "display log for Messages," from the menu, and check for successful PTF application messages. If you see that your PTFs have installed successfully, a second IPL is probably not necessary. If, however, you see that there was an error in PTF installation, or that the PTFs weren't applied at all, you can try a second IPL to apply your loaded PTFs.

These instructions should also be available in the documentation you receive with PTFs.

Three More Facts on ENDJOBABN and PTF Application

While researching these columns on ENDJOBABN, I ran across a few other items for checking for abnormal termination that didn't quite fit into the main article. I'm passing them on to you because they may be valuable for general information.

Fact 1: You can check to see if ENDJOBABN was used on your system by checking for the following error messages in a job log or in your history log (QHST):

CPC1124 - ENDJOBABN issued against job &3/&2/&1 by user &4.

The ampersand parameters (&1, &2, &3, etc.) are returned by the system to provide more information about what happened. In the CPC1124 message, the returned value in the string &3/&2/&1 tells you which job was ended abnormally, and the value &4 tells you which user cancelled the job.

In addition to CPC1124, you may also find more information about whether a specific job ended abnormally by checking for CPF1164 messages. CPF1164 is a standard job completion message that has the following format:

CPF1164 - Job &3/&2/&1 ended on &5 at &4; &6 seconds used; end code &8 &13.

For jobs that complete abnormally, you can tell whether the job completed abnormally by checking the end code parameters (&8 and &13). If the job ended abnormally, these parameters will be set to one of the following values: 80 means that the job was ended through the ENDJOBABN command, and 90 means the job was forced to end after the time limit for ending the job was exceeded.

Under certain circumstances, the system can also end a job abnormally, and that might prevent a CPF1164 message from being issued.

Also note that since OS/400 may issue a CPF1164 message for almost any job that it ends, checking this particular message for end job information could be incredibly tedious, unless you know the exact job identification of the job you're looking for.

Fact 2: If OS/400 tells you that your system previously ended abnormally (by checking the QABNORMSW system value or during an IPL), you can check the reason for that abnormal ending by looking for a CPI091D message in your history log.

CPI091D has the following format: CPI091D - Previous ending abnormal, reason code &1

The parameter &1 can be equal to any of the following reason codes:

1. The system ended a job abnormally.

2. The Power Down System (PWRDWNSYS) command did not complete.

3. The system ended unexpectedly.

4. The system ended before the previous IPL completed.

5. The system ended before database recovery completed.

6. The system ended with a reference code, ended while on auxiliary power, or was not ended with the PWRDWNSYS command.

7. PWRDWNSYS did not complete within the time limit specified by the Maximum Time for PWRDWNSYS system value (QPWRDWNLMT).

8. Some data could not be written to auxiliary storage.

Fact 3: If PTF application failed, you may be able to find a little more information in message CPI091E, "double IPL for PTF apply failed."

This message has the following format: CPI091E - Double IPL for PTF apply failed, reason code &1

The parameter &1 can be equal to any of the following values:

1. System value QIPLTYPE was not set to 0=Unattended IPL.

2. RESTART(*YES) was not specified on PWRDWNSYS.

3. The keylock position was in MANUAL.

4. The last IPL was not on the B side.

5. The current IPL source is not B, and IPLSRC(B) was not specified on PWRDWNSYS.


Sponsored By
BYTWARE

Santa has an early gift for you:
50% off from Bytware!

This holiday season, take advantage of the special StandGuard Premier Promotion and you can get StandGuard Network Security at a whopping 50% savings. For more information, call us at 775-851-2900 or 800-932-5557.

Make sure your system is protected with the most extensive iSeries security around.
Get Secure. Get StandGuard.
Get 50% off!

www.bytware.com



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
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.


THIS ISSUE
SPONSORED BY:

T.L. Ashford
Aldon Computer Group
FAST400
Bytware
RJS Software Systems
Affirmative Computer


BACK ISSUES

TABLE OF
CONTENTS
Analysts Prognosticate About IT in 2004

IBM Raises WebSphere Development Studio Prices

AS/400 Programmer Convicted of Computer Fraud

Admin Alert: Does ENDJOBABN Prevent PTF Applications?

As I See It: A Shopper's Guide to an IT Christmas

But Wait, There's More



Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.