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



While everybody else has told you why this is happening.

Let me say that the way you've handled the problem, by adding CONST to the procedure, is IMHO the
"right" way to fix this.

When dealing with procedures, it is very important to specify CONST or VALUE for those parameters
which are used for input only. It's import to specify CONST or VALUE for flexibility, reusability,
and maintainability.

In your specific case, the increased flexibility is taking care of the original issue.

Just my .02

Charles

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob P. Roche
Sent: Wednesday, October 17, 2007 5:29 PM
To: RPG programming on the AS400 / iSeries
Subject: Zoned fields showing as packed

A co-worker had a problem, that I haven't seen before, maybe
there is a PTF for it. He has a file with a field defined as
9s 0, we can verify it in several places. When he tries to
use that field in a prototyped call , also defined as 9s 0,
he get a compile error - The type and attributes of the
parameter do not match those of the prototype. RNF7535.
looking at the source everything is fine. Looking at the
compile listing, The field in question is defined as 9s 0
everywhere until the global field references section when it
shows as P(9,0).
Has anyone seen this before? For now he added CONST to the
parm, The value is not going to be changed so this converts
it under the covers, but it should work without that.
--
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.




This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.