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



Hello Alexander,

You wrote:
>When we try to create the service program I get the error:
>CPD5D03:  Definition supplied multiple times for symbol ....

Let me know if you want an explanation of why this is occurring.

>How can we solve this problem?

This question is identical to the following:  "Doctor, my arm hurts when I
do this."  The only possible answer is: "Well, don't do that!"

Using a SINGLE binding directory for everything is stupid.  You must
analyse your dependencies and create appropriate binding directories.  I
generally specify the list of modules and service programs when creating
service programs.  I generally use binding directories when building
programs.  I would not put a module used by a service program in a binding
directory used to create programs.

>If we set the parameter OPTIONS in the CRTSRVPGM or
>UPDSRVPGM command to *DUPPROC the program is then
>created without error. But it makes it impossible to defend
>against problems caused by someone creating a completely
>different procedure with the same name as another.

*DUPPROC and *DUPVAR are kludgy work-arounds to compensate for bad design.
You should not be exporting multiple procedures or multiple variables with
the same name.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.