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



I created a service program that returns a data structure array as one
of the parameters. I wrapped it in an external stored procedure for
return as an SQL result set. At V5R3, the program would not compile when
the host variable on the SET RESULT SETS clause was a data structure
array (I believe it was global without the QUALIFIED keyword specified
or implied, but it was several months ago). However, it did compile with
a MODS as the host variable. Did V5R4 fix this? Did I miss something? Or
is this the exception that proves the rule "Everywhere you use MODS you
can use datastructure arrays..."

Curious,
Roger Mackie


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of john e
Sent: Wednesday, December 12, 2007 4:27 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Multi- Occurrence Data Structure


<snip>

2) Everywhere you use MODS you can use datastructure arrays, but not the
other way around. E.g. you can't explicitly define nested MODS in RPG,
as you can with datastructure arrays. So instead of using two syntaxes /
concepts for the same thing one could better "standardize" on just one,
being datastructure arrays.

<snip>


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.