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



Fisrtly, if the parameters are already given, I am not sure what freedom you may have.
Secondly, I would attempt to use a string for input and output - one rpg or cl "parameter" covering the numerous given "parameters".

Regards,
John McKay
www.rpglanguage.com

----- Original Message ----- From: "David FOXWELL" <David.FOXWELL@xxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Monday, October 20, 2008 10:25 AM
Subject: function with a bunch of parameters


Hi all,

When I first discovered this list, I started a discussion that made Alan Campin's stomach turn. It was remembering these last two words that helped me refind the discussion in the archives.

I was particularly impressed by Alan's response here : http://archive.midrange.com/rpg400-l/200706/msg00363.html

I've kept that in mind ever since and I'm sure that my programs have improved because of this approach. However, I've just been given a function to write where the parameters are already given for me. Alarm bells are ringing.

Here's my list of parameters

Input

Product code
Date (to see if the tax was applied at that time )
Cost before taxes

Output

Cost with all taxes applied
Total of all different taxes
MODS details of each tax applied:
Tax code
Tax type
Tax rate (%)
Tax total (EUR)


I'd be interested to know how you'd go about reducing the size of this bunch of parameters. A lot of RPG400 will need this information.

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