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



The easy way is to have a CMS that track the dependencies and can
automatically recompile everything for you.

I have one, and have used it successfully in the past to do that very thing.

However, now-a-days, I think the easiest way is not to recompile any
programs at all.

No, I don't mean LVLCHK(*NO).

What I do is the following, assume I have a PF called MYPF.

1) I create a new PF, well SQL table actually, named MYPF_T
2) I copy the data in MYPF to MYPF_T
3) I repoint all existing LFs to MYPF_T
4) I convert MYPF from a PF to a LF over MYPF_T

In steps 3 & 4, the key is to ensure that the LF's have an explicit format
(ie. the previously existing fields are specified) and that the new field
is left out.

Done correctly, all previously existing objects will have the same record
format ID as they had before, so no programs need be recompiled.

Going forward, make sure all RLA is done through a LF with an explicit
format and you can add any fields you need with a simple ALTER TABLE / CHGPF

You'll need new LF(s) that contain the new field(s) for any programs that
need access. Don't let this worry you. Assuming that the new LF has the
same key(s) as an existing, it adds no overhead besides a few bytes on
disk.

The technique, logical file access only, has been around awhile and the
process has most recently been outlined as the way to move from DDS to DDL.

You'll mind more discussion on the Midrange and RPG lists.

Charles


On Fri, Oct 23, 2015 at 4:18 PM, Greg Wilburn <
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Let's say I change a database file... now I need to recompile all of the
RPGLE members that reference that file. I have the iSphere plugin, and
have a list of all programs in given source member that need compiled. I
was hoping I could simply select all of them and use one of my compile
options... but it doesn't seem like I can do that.

What is the easiest way to accomplish this?

Greg
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-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.