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



Selecting one row only, 3 fields. I just need the 3 fields in an array.

Compiler fails if the "into" variable is a dimensioned array.
Variable MYARRAY not defined or not usable. Reason: The variable is a dimensioned array.

BTW - there are ways around using a cursor when more than one row is selected.
https://www.itjungle.com/2021/03/08/guru-select-into-and-arrays/

What I had in my original post works... I just wondered if there was a better way of defining my into variable.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Charles Wilt
Sent: Thursday, September 8, 2022 12:20 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Select Into

SELECT INTO only works for single row result sets...

Does your SQL statement return only a single row?

What error message (and when) are you getting?

Charles


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.