× 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: Embedded SQL
  • From: Ravi <ravi@xxxxxxxxxxxxx>
  • Date: Fri, 05 Mar 1999 14:01:43 -0600

Sudha, thanks for your help. 

Ravi


Sudha Ramanujan wrote:
> 
> Ravi,
> 
> You can use DOW SQLCODE = 0 and FETCH within the loop.
> 
> You could also use Scroll Cursor and fetch more than 1 records.  (This comes
> in handy in subfile operations.)
> 
> Thanks,
> Sudha
> 
> > -----Original Message-----
> > From: owner-midrange-l@midrange.com
> > [mailto:owner-midrange-l@midrange.com]On Behalf Of Ravi
> > Sent: Thursday, March 04, 1999 2:04 PM
> > To: MIDRANGE-L@midrange.com
> > Subject: Embedded SQL
> >
> >
> > Hi all,
> >
> > I am trying to read records from an Oracle database from the
> > '400 using
> > ORacle Access Manager, embedded SQL and ILE RPG.
> >
> > My selection criteria may return more than 1 record from ORacle.
> > I have declared the cursor etc. When I fetch the cursor, I get one
> > record into my host variables. How do I do this in a DO loop
> > until there
> > are no more records to be fetched? How do I monitor for "no
> > more records
> > found to satisfy selection criteria" ? There must be some
> > SQLCODE that I
> > can monitor. Is there some other way to select all records with just
> > one  "Fetch" ? How would I store all the records into host variables?
> >
> > Any help will be appreciated....
> >
> > Thanks
> >
> > Ravi
> > +---
>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 ...

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.