Ask the Expert

Why is the batch job failing?

In our day-to-day application, we submit some jobs which do the following tasks:

[1] A temporary file (say TEMP1) is being created in QTEMP [2] Some data is then populated to TEMP1. [3] Using that data of TEMP1, another file FILE1 is populated. [4] After the successful population, TEMP1 in QTEMP is cleared.

Sometimes, due to unknown reasons, this batch job fails after step three, when the TEMP1 in QTEMP has already been populated. Is there any way to see the data in this file (QTEMP/TEMP1)? To access the QTEMP of the submitted job?
Library QTEMP is generally only accessible from the job that owns it. There are third-party packages that can be implemented to allow direct access to another jobs QTEMP library, however, I'd just modify the program to monitor for this error message and then either print out the contents of the file.

<CPYF FROMFILE(QTEMP/TEMP1) TOFILE(*PRINT)>

OR

...copy it to another library where you can look at it using the DSPPFM command.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade


This was first published in May 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: