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



Ummm... Is this your process you are creating new?  Maybe I'm missing
something... but why can't you pass the dir string to the procedure as a
parameter instead of doing a like and inz to dir.

Circular refence is a common error found in Excel.  You would get that
error when you tried to sum an array of cells but you accidently included
the cell that has the SUM function.  I've never seen this error message in
RPG before, so I am far from the expert (which is always the case), but it
sounds similar to what I've seen in Excel.

Maybe someone can answer again why you "shouldn't" define the parameter as
(*VARSIZE).  Or at the very least, look in the archives as to the pros and
cons of doing it.

Michael Schutte



                                                                           
             "Lim Hock-Chai"                                               
             <Lim.Hock-Chai@us                                             
             amobility.com>                                             To 
             Sent by:                  <rpg400-l@xxxxxxxxxxxx>             
             rpg400-l-bounces@                                          cc 
             midrange.com                                                  
                                                                   Subject 
                                       Circular dependency found defining  
             07/14/2006 04:47          a name like another name            
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
              RPG programming                                              
              on the AS400 /                                               
                  iSeries                                                  
             <rpg400-l@midrang                                             
                  e.com>                                                   
                                                                           
                                                                           




I'm getting compile error "Circular dependency found defining a name
like another name" when try to compile below.  I can't make any sense
out of this error.  *** Note: This error went away if I remove the
inz(dir) on D spec of myNewDir .

D dir             s          10240    varying
D processRequest  pr

C                   eval      *inlr = *on

 *******************************************************
 * process request
P processRequest  B
D                 pi

D myNewDir        s                   like(dir) inz(dir)
D myNeedRefresh   s               n

C                   return

P processRequest  E


--
This is the RPG programming on the AS400 / 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 ...

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.