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



So is Exec  a new op code?


Jeff Stevens
Mize, Houser & Co. P.A.
913 451 1882
JStevens@xxxxxxxxxxxxxx





"Alan Campin" <Alan.Campin@xxxxxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
09/20/2006 01:39 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
<rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Simple Display file problem






<snip>
That looks great. So, no declaring, opening and closing cursors? That is
pretty neat.
</snip>
 
No, if you are doing single I/O using into, you currently do not have to
use a cursor. You only need a cursor for reading multiple records. My
previous example was incorrect. It should have been:
 
Exec Sql Select ItemNumber, ItemDescription Into :dsItem From ItemFile
Where
ItemNumber = :Item;
 
Instead of 
 
/Exec Sql
   Select ItemNumber, ItemDescription 
     Into :dsItem
     From ItemFile
     Where ItemNumber = :Item
/End-Exec
 
And thanks Rob. No slash. Great. Forgot that. 
 
 

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.