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


  • Subject: RE: Module source naming schemes
  • From: Scott Mildenberger <Smildenber@xxxxxxxxxxxx>
  • Date: Wed, 10 Jan 2001 07:35:46 -0700

Scott,

Your description of how to modify a service program was good except for one
detail.  When you are a new procedure to a service program you have to put
it at the end of the list in the *CURRENT section in the binder source.
That is because the programs that are using the service program don't retain
the name, just that they are to call the 3rd export from the service
program.  In your example below, a program that had previously been bound to
this service program and was calling RNF_CLOSE would now call RNF_READP if
it wasn't rebound.  In the best case, the program would bomb when making
this call.  In the worst case, it won't get an error and appear to work and
just do strange things (I have been here and it is not a good place!).  You
may already know this but wanted to make sure that anyone new to service
programs was aware of this little detail.

Scott Mildenberger

> -----Original Message-----
> From: Scott Klement [mailto:klemscot@klements.com]
> Sent: Tuesday, January 09, 2001 10:56 PM
> To: RPG400-L@midrange.com
> Subject: Re: Module source naming schemes
> 
> 
> 
> If you decide to add another function, for example 
> rnf_readp(), later on
> you'd change your bindery source to look like this:
> 
> STRPGMEXP PGMLVL(*CURRENT)
>      EXPORT SYMBOL(RNF_OPEN)
>      EXPORT SYMBOL(RNF_READ)
>      EXPORT SYMBOL(RNF_READP)
>      EXPORT SYMBOL(RNF_CLOSE)
> ENDPGMEXP
> STRPGMEXP PGMLVL(*PRV)
>      EXPORT SYMBOL(RNF_OPEN)
>      EXPORT SYMBOL(RNF_READ)
>      EXPORT SYMBOL(RNF_CLOSE)
> ENDPGMEXP
> 
> The existing programs will have signatures that match the 
> *PRV section,
> and they'll use that interface.  The new programs that you 
> bind will grab
> the new signature, and use the *CURRENT section.  Very simple.
> 
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.