sniger
asked on
locking files
RPG PROGRAM A, opens 30 files, it calls a CL which is Calling another CL, which tries to clear those files. It can not clear the because RPG still has them in the stack
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Reasonable thought, but no not in this case. Try it - it is what? - about 5 lines of code?
Rpg:
CLRPFM requires a system-side exclusive lock. That means no locks on this file by anything in this job - same activation group or different activation group - or any lock in any other job on the system, either.
Rpg:
Fmyfile if e disk
c read myfile
c call 'TESTCLEAR'
c eval *INLR = *ON
TESTCLEAR (Clle)clrpfm myfile
CLRPFM requires a system-side exclusive lock. That means no locks on this file by anything in this job - same activation group or different activation group - or any lock in any other job on the system, either.
ASKER
would this help ?