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



David,

The issue I have is that you're throwing away some of RPG IV's nicest features:
the parameter options
of CONST, VALUE, OMIT and NOPASS.

If you add a parameter, and recompile everything, then you should really test
everything too.

On the other hand, if you add a parameter as NOPASS, you don't have to
recompile anything and only
have to make sure that the procedure functions as expected with and without the
parm.

You could get fancy with the DS parms and pass a value that lets you determine
what "version" of the
DS is in use, basically like IBM does with its APIs.

If you got a lot of info going in or a lot coming out, a DS might make sense.
But as an doing it that
way for every procedure? I don't think so.


Just my .02

Charles


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Foxwell
Sent: Monday, June 18, 2007 4:59 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Adding parameters to procedures

Hi,

We are looking at the possibility of standardizing our
procedures in the manner described at the link below.

The aim is to avoid touching any procedures that don't use a
parameter that has been added to an exported procedure. We
just recompile everything.

Each procedure uses a DS for entry and another for output
parameters. If a new parameter has to be added it is just
added to the DS in question.

I have a problem with this : it gives rise to horribly long
parameter names ( I've simplified in the example) and
debugging is annoying.
But my biggest concern is what else are we missing? Someone
out there MUST have already tried this system.

Any comments would be greatly appreciated.


http://code.midrange.com/index.php?id=703f46126a
--
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.