×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Booth,
Your problem is that to clear a file, you need an Exclusive lock on both the file and member.
When you open the file for read only (input primary) and do not set LR on at the end of the program, the file remains open and has a Shared for Read lock on the file and member.
Since you are in a named activation group, the RCLRSC command has no effect on the open file.
You must either set LR on in your program, use ACTGRP(*NEW) for your RPGLE program or change from ILE to OPM to get the results you desire.
Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2
IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3
----- Original Message ----
From: Booth Martin <booth@xxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, July 9, 2008 8:09:27 PM
Subject: Why is an Input/Primary file in an RPGLE program in a CLLE program locking a file?
Why is an Input/Primary file in an RPGLE program in a CLLE program
locking a file?
There is a series of steps, including calls to three RPGLE programs.
These steps all run fine when one after another from the command line.
Now, I have put the steps into a CLLE program. When I run the CLLE I
get a halt saying a file I am trying to clear is locked. The only
thing I see, so far, is that the second program has the locked file
as Input/Primary, so there is *INLR set on in the program. Could that
be my problem? If not, any ideas? If so, what fixes the problem?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.