× 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: External procs with F-specs (WAS DoW (WAS DoU...))
  • From: Scott Mildenberger <Smildenber@xxxxxxxxxxxx>
  • Date: Tue, 12 Dec 2000 16:00:38 -0700

Patrick

The USROPN is on the file spec at the top of the service program (I code all
procedures in a service program in one source member).  Then I do use %open
in each procedure for determining if I need to open the file.  I don't know
the cost of %open but most cases I don't worry about it.  The tradeoff is
that you can let all the files be opened when the service program is
activated, this impact to response time may or may not be noticeable
depending on the number of files.  If I have a procedure that is going to be
called with a very high frequency then I usually don't do it this way and
just leave the USROPN off of the file spec. for any files needed there.

Scott Mildenberger

> -----Original Message-----
> From: Contractor1@Parkdalemills.com
> [mailto:Contractor1@Parkdalemills.com]
> Sent: Tuesday, December 12, 2000 2:46 PM
> To: RPG400-L@midrange.com
> Subject: RE: External procs with F-specs (WAS DoW (WAS DoU...))
> 
> 
> 
> If I understand you correctly, you are coding the UsrOpn at 
> the beginning
> of each procedure or module in the service program. So, if a 
> procedure is
> called for the first time it will open only the files that it 
> is coded for.
> Do you use %open to check this? If so, what is the cost of %open?
> 
> Patrick Conner
> www.ConnecTown.com
> (828) 244-0822
> 
> 
> 
>                                                               
>                                  
>                     Scott                                     
>                                  
>                     Mildenberger             To:     
> "'RPG400-L@midrange.com'"                 
>                     <Smildenber@Washc        
> <RPG400-L@midrange.com>                           
>                     orp.com>                 cc:              
>                                  
>                     Sent by:                 Subject:     RE: 
> External procs with F-specs (WAS 
>                     owner-rpg400-l@mi        DoW (WAS 
> DoU...))                                 
>                     drange.com                                
>                                  
>                     12/12/00 01:54 PM                         
>                                  
>                     Please respond to                         
>                                  
>                     RPG400-L                                  
>                                  
> 
> I do it so that the service program only opens the files that 
> actually get
> used.  And so that all the files used in a service program 
> aren't opened at
> activation time which can be noticable if a service program 
> uses a lot of
> files.
+---
| 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.