Hi Patrik,

Am 10.08.2025 um 17:12 schrieb Patrik Schindler <poc@xxxxxxxxxx>:

I would like to know how do you setup the H-Spec/Ctl-Opt in your RPG programs : /copy o hardcoded spec H ?

Hard coded.

For a small project that absolutely OK - for something larger, you might want to have the same options for all programs.

Usually, for production, I change the COPYRIGHT line to reflect the last changed date of the source member.

That's not really necessary as the compiler binds the last source change date into the module. You can see it e.g. with the BOUND_MODULE_INFO view - or with DSPPGM.

For ongoing development, I speed up compilation time by omitting OPTIMIZE(*FULL), but use it when the code is reasonably mature to not mess with it for the next days.

OPTIMIZE(*FULL) is a mixed bag - on one side, you really speed things up - on the other side, those program objects are nearly impossible to debug.

We only do OPTIMIZE(*FULL) for very good tested programs where speed is absolutely crucial.

Just be careful with it.

HTH
Daniel

As an Amazon Associate we earn from qualifying purchases.

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