× 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.



Hi, Walden:

True enough.

But if you ever need to recompile a program in "production" (e.g. for an "emergency fix") and you have done this (allocated the *PGM) this will interfere with the IBM compilers REPLACE(*YES) processing and you will not be able to replace a *PGM that is "in use" and has a *USE lock on it. (I think that is part of the rationale as to why IBM does not automatically add a *USE lock when a *PGM is CALLed.)

Regards,

Mark

> Walden H. Leverich wrote:
This will not work, because OS/400 or i5/OS does not place a *USE lock

on a *PGM when it is "in use" ... :-o

But you can allocate yourself if you have a need to. When I've needed to
ensure only one instance of a program is running I've had the program
allocate itself *excl and if successful back it off to a *use lock. If
the program is active another instance can't get the excl lock, and if
the program dies there's no dataarea to reset.

-Walden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.