AS400 Mid Range/Corrupted file

Advertisement


Question
Hello

I got a corrupted file on our AS400, I can
copy off the data fine, but I can't delete the
file itself as the member is not closed. It wants
me to use commit or rollback on it. If I run jobs
against an cpyf version of this file it runs fine,
however it crashes with an array error on the old
object. I need to delete this object (old) and replace it.

Answer
First, I would try to find the job that has the file locked, using the WRKOBJLCK command and if appropriate, cancel that job with the OPTION(*IMMED)parameter.  If nothing turns up with the WRKOBJLCK, then an IPL is probably called for at the earliest opportunity that works for your users.  If there is STILL a lock on the file after an IPL, then this is an issue for IBM.  In any case, the original file should perform just like the copied file unless you are omitting data when you do the CPYF.  You may want to report this to IBM even if you resolve it - a program fix is called for!

Laird Scranton
Concise Systems

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.