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



I have the following code that gets into a never ending loop on the fetch 
loop.  Apparently it does the fetch once, and only once.  Why?
       InitSql();
       Select;
       When DeclareC1()<>*all'0';
         ErrorHandler('DeclareC1');
       When OpenC1()<>*all'0';
         ErrorHandler('OpenC1');
       Other;
         Dow FetchC1()=*all'0';
           callp LockFile(SourceFile.File:SourceFile.Library:
                          SourceFile.LockState);
         EndDo;
         Select;
         When SqlStt='02000';
           // End of cursor (normally).  Ok.
         Other;
           ErrorHandler('FetchC1');
         EndSl;
         CloseC1();
       EndSl;
       *inlr=*on;
       return;
      /end-free
...
      /eject
     P FetchC1         B
     D FetchC1         PI                  like(sqlstt)
     C/EXEC SQL
     C+ Fetch C1 into :SourceFile.Library, :SourceFile.File
     C/END-EXEC
      /free
       return sqlstt;
      /end-free
     P FetchC1         E

Joblog:
...No members exist in data base file QCLSRC in library DARREN.
Objects not allocated. 
Object QWCLOBJL in QTEMP type *USRSPC not found. 
Ownership of object QWCLOBJL in QTEMP type *USRSPC changed. 
Object QWCLOBJL in QTEMP type *USRSPC deleted. 
No members exist in data base file QCLSRC in library DARREN.
Objects not allocated. 
Object QWCLOBJL in QTEMP type *USRSPC not found. 
Ownership of object QWCLOBJL in QTEMP type *USRSPC changed. 
Object QWCLOBJL in QTEMP type *USRSPC deleted. 
No members exist in data base file QCLSRC in library DARREN.
...


Rob Berendt

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.