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



Hello all,

 

I am trying to use the stat() function and getting a RNQ1211 message on my
printer file. The code is:

 

Fqsysprt   o    f  198        printer                                    

                                                                         

D stat            PR            10I 0 ExtProc('stat')                    

D path                            *   value options(*string)             

D buf                             *   value                              

                                                                         

d testing         pr             1n                                      

                                                                         

D rootdir         c                   const('/qntc/10.0.0.3/invoices')   

                                                                         

D p_statds        S               *                                      

D statds          DS                   BASED(p_statds)                   

D st_mode                       10U 0                                    

                                                                         

D MyStat          S                    like(statds)                      

                                                                         

 /free                                                                   

                                                                         

     stat(rootdir + '/00618':%addr(mystat));                             

     except;                                                             

     testing();                                                          

     except;                                                             

                                                        

     *inlr = *on;                                       

                                                        

 /end-free                                              

Oqsysprt   e                                            

O                                              'ouput'  

                                                        

P testing         b                                     

d testing         pi             1n                     

 /free                                                  

   return *on;                                          

 /end-free                                              

P testing         e                                     

 

 

When I debugged the code,  the testing() subproc seems to be closing qsysprt
before it does anything. Then when control returns to the except after
testing(), it blows up.

 

Anyone have any ideas on this.

 

Tim


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.