fhg
Volume 7, Number 6 -- February 14, 2007

What Happened to My Backup?

Published: February 14, 2007

Hey, Joe:

My automated tape backup job just stopped working. It was working fine last week, but when I try to run any of the i5/OS Save commands (SAVOBJ, SAVLIB, SAV, etc.), the command fails with a CPF4380 message ("Open attributes not valid in a multithreaded job"). I can manually back up my data, but I can't use my usual backup routine. What's going on here and do you have any idea why my automated backup suddenly started failing?

--Jim


In spite of a scary scenario when your backup stops running, this problem is actually very easy to solve. Here's what I think is happening in your shop.

In i5/OS V5R4 and OS/400 V5R3, as well as in earlier versions of OS/400, the QSYSTAP device is the name of the tape device file that the system uses for input/output operations during Save and Restore commands. Like many other i5/OS files, QSYSTAP is not eligible to be opened in multithread-capable jobs. According to IBM, the only files that can be opened in multithreaded jobs are Integrated File System stream files, printer-files, save files, IP-based distributed data management (DDM) files, and local database files. If you try to open any other types of file objects (*FILE) inside a multithread capable job, i5/OS will issue a CPF4380 message containing the following text:

Message . . . . :   Open attributes not valid in a 
  multithreaded job.
Cause . . . . . :   The open of file &2 in library &3 
  device &4 failed because this job is multithreaded and 
  one of the following attributes has been specified.
    - The file being opened is a type of file which is not 
	supported in multithreaded jobs. 
    - SPOOL(*NO) was specified on an Override with Printer File 
	(OVRPRTF) command, in the program, or on the file.
    - A save file was opened when more than one thread exists. 
Recovery  . . . :   Correct the attributes which caused the 
  failure and try the request again.

Because QSYSTAP isn't designed to run in multithread capable jobs, tape backup operations will automatically fail when the running job's Allow multiple threads parameter is set to *YES. So my strong suspicion is that Allow multiple threads was recently reset to *YES for the job running the backup, and that is what's causing your CPF4380 problem.

This theory is easy verified by checking whether or not the job is multithread capable. The easiest way to do this on the green screen is by running the Display Job command for the running job and taking option 2, Display job definition attributes. You'll find the job's Allow multiple threads setting on the fourth screen that appears after selecting option 2. If this setting is set to *YES for the job running your backup, it's almost a certainty that this is what's causing your problem and changing Allow multiple threads to *NO for your job will take care of the issue.

What's happening is that all jobs retrieve their multiple threads setting from the job description used when the job starts running. The name of the job description being used for your backup job can also be found under option 2 of the DSPJOB command. Once you've found the job description that is making your backup job multithread capable, you have two options: you can either change that job description's Allow multiple threads parameter (ALWMLTTHD) to *NO or you can change the job to run under another job description that already has an ALWMLTTHD setting of *NO.

To change the ALWMLTTHD setting in a job description, use the Change Job Description command (CHGJOBD) to switch the ALWMLTTHD setting from *YES to *NO. Then end and restart the job performing the backup and the CPF4380 failure will disappear.

If you opt to give your job a new job description rather than changing its existing one, there are two ways to change the job description that a job runs under. If your backup job is submitted to batch, you can designate a different job description to use under the Job Description parameter (JOBD) on the Submit Job command (SBMJOB) that submits the job. By default, SBMJOB uses the job description that is assigned to the user profile that the job is running under, but the job description name can be overridden by specifying a different job description name in the command's JOBD parameter. For scheduled jobs that are entered through the Work with Job Scheduled Entries command (WRKJOBSCDE), you can change the job description name under the entry's Job Description parameter (JOBD) and that job description will be used when the job is submitted for batch processing.

If you are interactively running your backup (say from the GO SAVE menu), the job's ALWMLTTHD setting is retrieved from the job description associated with the user profile running the job. For interactive backups, you can change the ALWMLTTHD setting by changing the job description already assigned to your backup user profile. You can also assign a different non-multiple threaded job description to your user profile's Job Description parameter (JOBD). To change a user profile's JOBD parameter, use the Change User Profile command (CHGUSRPRF). Once you have made this change, have your user sign off and sign back on the system, and he should be able to backup your i5/OS objects again.

Anyhow, that's my take. I'm almost 100 percent certain that the ALWLMTTHD setting is your issue because the CPF4380 issue often occurs in multithread capable jobs.

--Joe


RELATED RESOURCES

Data management considerations for multithreaded programming

IBM eServer iSeries Information Center, Version 5 Release3



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


Sponsored By
RPG & DB2 Summit

Take it to the SUMMIT!

 

On March 20-22, the leading RPG & DB2
minds will convene at the RPG & DB2 Summit
in Las Vegas to offer three days of intensive
education. Learn the latest in practical tips and
techniques from gurus Jon Paris, Susan
Gantner
, Paul Tuohy, Skip Marchesani,
Scott Klement and others in a highly
interactive, focused, fun environment.

 

Learn more about the best training
value of 2007
and register today!

 

SystemiDeveloper.com


Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
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.

Sponsored Links

Bytware:  StandGuard Network Security 3.0, the next generation of System i security
nuBridges:  Leading provider of secure FTP on the iSeries
COMMON:  Join us at the 2007 conference, April 29 – May 3, in Anaheim, California


Books on Sale at the IT Jungle Store: 30 Percent Off for 30 Days

The System i Pocket RPG & RPG IV Guide: List Price, $69.95; Sale Price, $49.00
The iSeries Pocket Database Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket Developers' Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket SQL Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket Query Guide: List Price, $49.00; Sale Price, $34.00
The iSeries Pocket WebFacing Primer: List Price, $39.00; Sale Price, $27.00
Migrating to WebSphere Express for iSeries: List Price, $49.00; Sale Price, $34.00
iSeries Express Web Implementer's Guide: List Price, $59.00; Sale Price, $41.00
Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95; Sale Price, $56.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00; Sale Price, $62.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00; Sale Price, $34.00
WebFacing Application Design and Development Guide: List Price, $55.00; Sale Price, $38.00
Can the AS/400 Survive IBM?: List Price, $49.00; Sale Price, $34.00
The All-Everything Machine: List Price, $29.95; Sale Price, $21.00
Chip Wars: List Price, $29.95; Sale Price, $21.00

 

The Four Hundred
Faster i5 595 Rumored to Be Imminent

IBM Moves OS/400 V5R3 Towards the Door, Rejiggers i5 Prices

Zend Upgrades Commercial Add-Ons for Its PHP Engine

As I See It: The Elusive Leader

The Linux Beacon
Chip Makers Strut Their Stuff at ISSCC

AMD Delivers Faster and Cooler Rev F Opteron Chips

Zend Upgrades Commercial Add-Ons for Its PHP Engine

As I See It: Measuring What Counts

Four Hundred Stuff
Lawson Brings Former Intentia ERP Suite Closer to Landmark

iSeries Web Adventures Call with iSafari

Valid Tech Assimilates Biometric Authentication Into the Enterprise

Gumbo's Dumpster Dives Into i5/OS Spool Files

Big Iron
Platform Solutions v IBM: Estoppel, Old Show Key

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

System i PTF Guide
February 10, 2007: Volume 9, Number 6

February 3, 2007: Volume 9, Number 5

January 27, 2007: Volume 9, Number 4

January 20, 2007: Volume 9, Number 3

January 13, 2007: Volume 9, Number 2

January 6, 2007: Volume 9, Number 1

The Windows Observer
Microsoft Hits Snags in Anti-Piracy Net

AMD Delivers Faster and Cooler Rev F Opteron Chips

Microsoft Hypes the NAP, Unveils New Security Appliance

VMware, XenSource Launch Virtualization Bundles

The Unix Guardian
HP Puts Solaris on More X64 Servers, Partners for Solaris Emulation

Sun Details Server Chip Roadmaps at Analyst Summit

AMD Delivers Faster and Cooler Rev F Opteron Chips

The X Factor: One Socket to Rule Them All

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

THIS ISSUE SPONSORED BY:

ProData Computer Services
WorksRight Software
RPG & DB2 Summit



TABLE OF CONTENTS
Be Content with Content Assist

The Long and Short of Setting Up Level 40 Security

What Happened to My Backup?

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
Julian Date file

Interesting resource and apparently free!

Alert emails from the iSeries

CL Question on Overrides

Entry parms getting overlayed--RPG





 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement