Newsletters Subscriptions Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 40 -- June 18, 2003

Fixing Damaged Data Queues


Hey, David:

Is there any way to fix a damaged data queue? Or is there a command to retrieve a data queue's attributes? Our UPS failed in the middle of the day and quite a few data queues were damaged. I ended up restoring them from an offsite backup. They seem to be okay now, but the delay was frustrating.

--Dale


IBM doesn't supply a command to recover damaged data queues. Having experienced damaged data queues myself, I understand the frustration. You cannot duplicate them from another library, and if you don't have a record of how they were created you are out of luck.

There are several ways to approach this problem. One of the simplest is to test for the existence of the data queue in your programs; if it is not found, call a CL to recreate the missing data queue. If a data queue becomes damaged, all you have to do is delete it and your programs will recover themselves.

Unfortunately, you may not know how all of your data queues were created, and with purchased software, you may not have the ability to call a program to recreate missing data queues. In these cases, you can use the retrieve data queue description (QMHQRDQD) API. To make it easier to use the API to recreate data queues, I wrote a Create Duplicate Data Queue (CRTDUPDTAQ) command.

The CRTDUPDTAQ command calls the QMHQRDQD API to retrieve information about an existing data queue and uses that information to create a new data queue with identical attributes. That program is written in RPG IV, and you can view the dtaq.irp source on the Source Forge Web site.

With the CRTDUPDTAQ command, you rename the damaged data queue and specify the renamed data queue for the DTAQ and the original data queue name as the NEWDTAQ. The resulting data queue will be an undamaged duplicate of the original.

You can download the CRTDUPDTAQ command and its associated programs and service programs as part of the iSeries-toolkit. The iSeries-toolkit is a collection of free iSeries utilities. Just follow the current release link on the iSeries-toolkit home page. Installation instructions are available on the documentation page.

--David


Sponsored By
COMMON

COMMON Fall 2003 Conference and Expo
IT in the Palm of Your Hand
September 7 - 11, in Orlando, Florida.

· Education: 700 sessions in four days
· Networking: Meet more than 3,000 IT professionals, IBM executives, and developers
· Influence IBM: Attend sound-off sessions
· First-Hand Look at Latest Products: Talk to the industry's top solution providers

COMMON is the best value in IT education, so don't miss out!

Click and visit www.common.org for details!


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
COMMON


BACK ISSUES

TABLE OF
CONTENTS

Use Soft-Coded Library Lists When Submitting Scheduled Jobs

Fixing Damaged Data Queues

Reader Feedback and Insights: COBOL Help Wanted


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris
Shannon O'Donnell

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

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

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