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



David,

Honestly, not sure if I'm following you 100%, but yes if the M2
procedures are in a service program instead of bound by copy into your
program, and the other programmer as compiled M2 and recreated or
updated the service program when the file changed, then you wouldn't
get a level check.

Charles

On Mon, Sep 7, 2009 at 9:26 AM, David FOXWELL<David.FOXWELL@xxxxxxxxx> wrote:
Hi,

The thread Running with LVLCHK *NO in production reminded me of a regular difficulty we have :

For development, we have an LPAR which is a copy of our production machine. Developers will modify, test and simulate installations on this LPAR. Now when testing in a test library, you may find that someone else has simulated an installation and changed a file.

Now, if I've modified module M1, I'll run it in a test library of the same name. In that test library is a program TestM1 that I shall first have to bind to M1.
However, if an external bound call is made from M1 to  a procedure in M2 which is compiled on file F1, that another programmer has just modified, then TestM1 will crash if there's a change in level. This is where I'v sometimes been using CHGPF LVLCHK(*NO). If I'm lucky, it works!

This morning I had an idea : if I run DSPPGMREF on TestM1, I see the record level for file F1. ( Everything is bound by copy). If a service program were made from module M2 using file F1, and this service program were used instead of binding M2 by copy, then I would no longer see reference to F1 in TestM1. ...And there'd be no more LVLCHK issues of this kind.

Can someone confirm this?


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



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.