×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




ALCOBJ MYFILE *EXCL
CHGPF MYFILE...
compile programs
DLCOBJ MYFILE

Thanks,
Tommy Holden



From:
Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx>
To:
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Date:
06/05/2008 07:23 AM
Subject:
Re: adding new fields to PF



Chuck,

I'm being dense and missing something here. I understand the danger of
LVLCHK(*NO). What I was describing was how I have added fields to a
*production* file on the fly without getting any level check errors. I
*have* to do step 2, the CHGPF statement, so that the new fields I put
into the DDS source are actually put into the file. *Because* I have
done that CHGPF statement and therefore added fields, any RPG programs
will level check, *except* I put a LVLCHK(*NO) in that CHGPF statement.

Now I compile the RPG programs using that file. Since they now reflect
the new, updated version of the file, I can now do a CHGPF LVLCHK(*YES).

I am not at all concerned about LVLCHK for the compiles, I am concerned
that a user will execute one of these RPG programs before I complete the
compiles. Murphy's law says that if I only need to compile 3 programs,
and it takes less than 20 seconds total (which it would), someone will
call one of these programs in that 20 seconds. That's all.


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.