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



Unused prototypes have zero impact on the program size. They are simply scanned by the compiler and subsequently ignored.

The only potential size impact is If you chose the LISTING or ALL options for debug data - in which case the size of the stored program object is larger but there is still zero impact on run tie memory footprint.

As to the idea of using defines to control the copying, I _think_ I was the first one to publish the idea - it was a adaptation of a practice that is sometimes used in C and other language header files and was a response to complaints from clients about having to worry about an extra source member. I do not use the method myself but ...


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Nov 30, 2017, at 6:18 PM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:

The the "problem" is that used PRs / constants are still in the program and
even with the *NOUNREF compile option have an effect on the compiled object
size...

"problem" is in quotes...becuase I'm not the one who thinks it really
matters.

I don't know who came up with the idea of using /define to copy in only the
PRs you need.

But I personally hate it. :)

Charles

On Thu, Nov 30, 2017 at 3:21 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Why not just use the option to not see unreferenced items in the outline.
Doesn't that take care of the problem? That's what I do.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Nov 30, 2017, at 4:36 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

I'm living with it...

Take my word for it...it's a PITA. ;)

As far as browsing the INCLUDED source...

As mentioned in my first reply...when you do so, basically nothing is
show
in the outline (since all the PR's are wrapped)

So you have to scan down through the PRs themselves to find anything...

(sent you a screenshot off-list)

Charles

On Thu, Nov 30, 2017 at 2:28 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:

"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 11/30/2017 04:16:56
PM:
I don't think it's a good idea...

Especially in the use case of only including 1 or 2 prototypes...

Maybe today you only need 1 or 2 in one place...but some other place
needs
a dozen...

then you've got
/define PROC1
/define PROC2
/define PROC3
/define PROC4
/define PROC5
/define PROC6
/define PROC7
/define PROC8
/define PROC9
/define PROC10
/define PROC11
/define PROC12
/copy PROTOSRC,MYSRVPGM
/undefine PROC1
/undefine PROC2
/undefine PROC3
/undefine PROC4
/undefine PROC5
/undefine PROC6
/undefine PROC7
/undefine PROC8
/undefine PROC9
/undefine PROC10
/undefine PROC11
/undefine PROC12

Now say I need to add a call to another existing proc...what was that
name
again? No way to see it in my program..

What's worse...you open up PROTOSRC,MYSRVPGM and the outline view shows
no
prototypes!...


I understand what you're saying but I don't think it is as bad as
all that. You don't always have to undefine everything. If you need to
see the name of another prototype all you have to do is right-click on
the
INCLUDEd member name and select BROWSE. But, that's OK, I give up the
idea.


Sincerely,

Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300

Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331




************************************************************
*********************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
************************************************************
*********************************
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

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

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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.