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



Disinformation? What are you a Republican?  <tic>
Geesh, we're talking about the OPDESC keyword which is probably used in a
handful of shops world wide. 

In the context of the original question, which was lots of data being
returned for QzhbCgiParse, one solution was offered that suggested using
OPDESC and a CALL to CEEDOD to get the length of the variable being passed
in. Many RPG programmers use data structures to store variables. This became
a habit during the RPGIII's days with its 256-character field limitation.
So my interjection was focused on that particular point. If you do that, and
then pass a data structure (for example) OPDESC will not work. I did avoid
mentioning "with data structures" specifically, so if that's your point,
then I agree, I should have been more precise. But "disinformation"? Think
about the number of incorrect responses that get posted on this and other
forums each and every hour by people who seem to have a need to respond to
question without actually knowing the answer... now that's disinformation.

-Bob

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Douglas Handy
Sent: Wednesday, February 25, 2004 8:20 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: FW: Have you seen this? An improved way.

Hans,

>No, technically, data structures are character variables. 

Except that the compiler / OpDesc support does not treat them as such.  My
point
was that OPDESC *only* works on stand-alone or sub-field type A character
fields, and not on any other declaration type including a data structure
name.

So the fact OpDesc did not work with a DS name says nothing about its
reliability when used properly with a (type A) character field.  In my
experience, OPDESC has always worked correctly and I've been using it since
V3R2.

Now I certainly wish it handled other declaration types, particularly
numeric
types, but I understand why Torronto can't implement that by themselves.
However, to my knowledge it is disinformation to suggest OPDESC does not
work
correctly when used as designed.  Or at least I've never experienced nor do
I
recall reading on this forum the fact it does not work with any combination
of
CONST or *NoPass or whatever.

Doug
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.