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



You can do this:

* declare cursor
C/Exec sql                     
C+ Declare myCursor cursor for P1 
C/End-exec                     

* prepare the sql statement
C/Exec sql                    
C+ Prepare P1 from :Sqlsmt 
C/End-exec
                    
C/Exec sql                    
C+ Open myCursor                 
C/End-exec                    

-----Original Message-----
From: THarteau@xxxxxxxxxxxxxxxxxx [mailto:THarteau@xxxxxxxxxxxxxxxxxx]

0117.04 C                   EVAL      SelSmt =
0117.05 C                             'SELECT * FROM JTD WHERE JDJBT#
= :JOBNO'
0117.07 C                   EVAL      SqlSmt =
0117.08 C                             SelSmt + 'ORDER BY ' + L1Fld + ',' +
L2Fld
0117.09 C                              + ',' + 'JDPROD'

I'm not sure how to now set up the declare. Any ideas?



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.