You are here:

AS400 Mid Range/how to find the record which errored out while writing a duplicate record

Advertisement


Question
How can I find the record which errored out while writing a duplicate in a file? Can Journal dump or job log gives this information?

Answer
When the duplicate key message appears, select the 'D' dump option. This will produce a report in the QEZDEBUG output queue.  Determine which index or indexes over the file are uniquely keyed (they have the UNIQUE keyword in the DDS). The program DUMP listing will show you the values of the key fields at the time the error occurred, and these tell you which record caused the error.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.