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



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Another GREAT reason to use procedures instead of sub-routines is the
reusability factor.

Traditionally, subroutines were used for "repeatable" code blocks and
often, these blocks of cose were common to more than one program. Although
it was always possible to code them in /COPY elements, this was not often
done as it was confusing to most programmers.

With procedures, the code element exists only once and, as Steven stated
earlier, it is quite easy to see which variables are passed.

One could go on and on about the benefits, but as Steven also succinctly
put,

Procedures are Cool.


John C. Boblitz Jr.
Givaudan Dübendorf Ltd.
Informatics
Ueberlandstrasse 138
CH-8600 Duebendorf, Switzerland
Tel: ++41 (0)1 824 22 09
Fax: ++41 (0)1 821 44 78
john_c.boblitz@givaudan.com
http://www.givaudan.com




"Steve Landess - Hotmail" <steve_landess@hotmail.com>
Sent by: rpg400-l-admin@midrange.com
15.08.2002 17:58
Please respond to rpg400-l


        To:     <rpg400-l@midrange.com>
        cc:
        Subject:        Re: diff btw Procedures and Routines

To the programmer, there's not a lot of difference in using a procedure vs
a
subroutine.  What I'm trying to say is that you can usually achieve the
same
results whether you put your code in a procedure OR a subroutine, BUT:

1) It is easier to see what values the procedure is expecting via the
arguments being passed (tight coupling, which is good)...whereas using the
traditional RPG subroutine it is not always immediately clear which fields
in the program that the subroutine is using and/or possibly modifying
(loose
coupling, which is NOT good).

2) Procedures are Cool!

----- Original Message -----
From: "MURALI DHAR" <nmuralidhar@rediffmail.com>
To: <rpg400-l@midrange.com>
Sent: Thursday, August 15, 2002 9:39 AM
Subject: diff btw Procedures and Routines



why do we use procedures only in modules in ILE programs?why nt
subroutines?whats the diff ...plz kindly answer me
Best regards
Murali

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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 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.