× 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: Creating a service program
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Wed, 23 Aug 2000 12:25:51 -0500

You can specify more than one signature.  So, when you add the 4th in your
example, you make a copy of the first export, change it to *PRV for
signature, and add the 4th to the top list.. like this..

STRPGMEXP                        
EXPORT     SYMBOL(Proc1)    
EXPORT     SYMBOL(Proc2)    
EXPORT     SYMBOL(Proc3)    
EXPORT     SYMBOL(Proc4)    
ENDPGMEXP                        
STRPGMEXP  PGMLVL(*PRV)          
EXPORT     SYMBOL(Proc1)    
EXPORT     SYMBOL(Proc2)    
EXPORT     SYMBOL(Proc3)   
ENDPGMEXP         

You will now have to sigs for the service program.  The old programs that
don't need Proc4 don't need to be recompiled because they'll still function
fine with the old sig. 

One thing you do have to watch out for is this.

SRVPGM1 is created and in production.  It's updated, now has 2 sigs, but the
SRVPGM is only in test environment.  Now, a new program is created that uses
SRVPGM1 and is compiled, so it will grab the current sig from SRVPGM1.

If you move NEWPGM into production before the new copy of SRVPGM1, you will
get a signature error.  Just a slight gotcha... :)  When programs are
compiled using a service program, they always grab the *CURRENT signature.

Rare case, but something to be weary of.

Brad               

> -----Original Message-----
> From: Gwecnal@aol.com [mailto:Gwecnal@aol.com]
> Sent: Wednesday, August 23, 2000 11:56 AM
> To: rpg400-l@midrange.com
> Subject: Re: Creating a service program
> 
> 
> OK - From the thread on this topic I understand that when you 
> add procedures 
> to a service program and export(*all) the signature changes 
> and calling 
> programs will do the equivalent of a level check.  If you 
> list the procedures 
> separately in a bind source and use this on the create 
> service program, this 
> problem goes away. This is the part I don't understand.  Say 
> I have a service 
> program with three procedures (Proc1, Proc2, and Proc3) and I 
> create a 
> service program (SrvProg) listing all three in my bind 
> source.  Then I use 
> this service program in 50 other programs.  Then I decide 
> that Proc4 would be 
> useful so I add it to my service program source, add it to my 
> bind source 
> list and re-create SrvProg with the new bind source.  Doesn't 
> SrvProg now 
> have a new signature?  Won't my other 50 programs blow up?  
> If not, why not?  
> TIA, Lance
> +---
> | 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
> +---
> 
+---
| 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 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.