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