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



If you use a temporary table make sure you use "Declare Global
Temporary Table" instead of defining a table normally.

Also, I wonder how much data is being returned. Could you define a
second data structure with long names and just move the data structure
from one to the other?

dsLongNames = dsSynonDataStructure;



On Wed, Apr 8, 2009 at 3:26 PM, Neill Harper <neill.harper@xxxxxxxx> wrote:
I didn't think there would be a way to do it.

I guess I'm just going to store my data in a work file and SQL it out into a
cursor where I can control the column names....

Either that or get the pc guys to change their code to reference the field
names of the data structure.

Thanks for the reply.

Neill

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: 08 April 2009 20:58
To: Midrange Systems Technical Discussion
Subject: Re: Stored Procedure Result sets

Not with a stored procedure.  The system doesn't keep track of which
columns are returned by a stored procedure -- indeed, your program logic
could potentially change those columns each time you run it.

However, if you used a UDTF, you could control the column names...

Otherwise, I suggest that you simply name your DS subfields the name
that you want SQL to see.

Neill Harper wrote:
Anybody know of a way to override the Result set column name generated by
the following:

SET RESULT SETS ARRAY :X FOR :Y ROWS

Where is X is a multi occurrence data structure.
Thanks
Neill


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.