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



All,

You could also use the same API, QLIRNMO, (or via a command wrapper such as that provided by Carsten Flensberg) to "move" the new objects into a "new" program library (at the top of the library list).

Then, you can simply rename the program object in the "new" library, to a "dummy" name, such as "ZZprogram" ... so that it is no longer invoked, to revert to the prior version (still in the original library in the *LIBL). Hence, no "DeletedObj" library is needed. You would still need to run some kind of "clean-up" job to find all the "ZZpgmname" objects in that library and eventually delete them, on a scheduled basis.

After an "acceptance period," once that new version is deemed to be "solid" you can use the same QLIRNMO to move the "new" version from the "new" or "fix" library to the original permanent library, replacing the older version.

Hope that helps,


Mark S. Waterbury

On Friday, June 26, 2020, 6:31:02 AM EDT, Paul Nicolay <paul.nicolay@xxxxxxxxxx> wrote:

Hi,

If you remove the fix as you stated (move object from FIXVERSION to whatever library) the users using the object in FIXVERSION will receive a MCH3402.

The cleanup also requires downtime of your application which you cannot afford in a 24 by 24 operations.  In addition you cannot install a second fix of the same program before the cleanup has been performed.

The API method seems to be the only correct method (apart from recompiling your program).

Kind regards,
Paul
________________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Cussini Danilo <danilo.cussini@xxxxxx>
Sent: Friday, June 26, 2020 11:30
To: RPG programming on IBM i
Subject: R: MCH3402 Can it be avoided ?

You mustn't delete the object, you always must move the object into another library and delete it only when it isn't used (night or IPL). You need 3 libraries: FIXVERSION, CURVERSION and OLDVERSION in this order. At the beginning, your program is only in CURVERSION; then, you must put the new program into FIXVERSION, so the new jobs use it. If you need to remove the fix, you must move the object into OLDVERSION library, so the new jobs use the CURVERSION. In the night by an automatic job, or in QSTRUPPGM program, you must clear OLDVERSION library.

-----Messaggio originale-----
Da: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] Per conto di Paul Nicolay
Inviato: giovedì 25 giugno 2020 17:31
A: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Oggetto: Re: MCH3402 Can it be avoided ?

Hi,

See my previous remarks about the limitations of this... and in addition you can't remove the fix neither when you want as it might again cause a MCH3402.

Kind regards,
Paul
________________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Cussini Danilo <danilo.cussini@xxxxxx>
Sent: Thursday, June 25, 2020 17:27
To: RPG programming on IBM i
Subject: R: MCH3402 Can it be avoided ?

Add to the library list a library for fixes before the library for programs and put inside it the new programs; then, every night or in the weekend, run a job that move all the objects from library for fixes to library for programs. In this way you can remove a fix when it doesn't work as you aspect.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.