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



Problem solved ...

a. I renamed the procedures and recompiled
b. I renamed the procedures in the copy book
c. I made a new *CURRENT with the new names in the binding dir

thanks everybody



On Thu, Oct 1, 2015 at 7:51 PM, Mark Murphy/STAR BASE Consulting Inc. <
mmurphy@xxxxxxxxxxxxxxx> wrote:

I believe that you can still just go ahead and change the names. Existing
programs will not be affected. You do need to change the names in the
binding source as well, but do not reorder the export names. You won't have
to adjust anything in existing programs until you recompile them (at that
time you will have to have the correct names though since the recompile
will perform a bind step). If you want to create a new signature in your
service program based on the new names, you can change your *CURRENT to
*PRV, and add a new current with the new names, and then rebuild your
service program. You still cannot re-order your exports, and you still will
have to change the names in your programs next time you compile, for the
same reasons, but it will still work because the existing programs know
where to find the service program, and which slot the sub-procedures are
in, and that is where the program will look. It will not look for the old
name again until recompile time. The only thing using *CURRENT and *PRV in
your binder source gives you is a history of your binder source changes.
You still can't reorder or remove exports without causing a complete
recompile of everything that uses the service program.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----Henrik Rützou <hr@xxxxxxxxxxxx> wrote: -----
To: "RPG programming on the IBM i (AS/400 and iSeries)" <
rpg400-l@xxxxxxxxxxxx>
From: Henrik Rützou <hr@xxxxxxxxxxxx>
Date: 10/01/2015 11:48AM
Subject: Re: Renaming subprocedures in a service program

Charles

I use only *CURENT and *PRV in the binding dir but have a lot
of *PRV for each version.

But if it is only a numbered list it should be ok to change the name :-)

On Thu, Oct 1, 2015 at 5:28 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

Actually, you can change the names and not recompile existing programs.

The name is only used during program binding. Once the program is
created,
the procedure is called via number. Thus the reason it's important not
to
change the export order.

This assumes you have binder source and a hard coded signature.

If you don't already have them, you'll have have to create one that
matches
the existing object, then modify it.

Charles

On Thu, Oct 1, 2015 at 11:05 AM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

I have been so stupid to use som procedure names as
they are used in examples on the net.

The procedures are the C procedures for teraspace
memory allocations TS_Malloc, TS_Calloc, TS_Realloc
and TS_Free that calls the _C_TS_xxxxx procedures.

Now these subprocedures interfers with other service
programs that I have no controle of.

Is there any smart way to rename the sub-procedures
without loosing the old exported procedures names in the
previous binding directories so old programs doesn't have
to be recompiled unless they uses the subprocedures?

--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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