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



There is a tool out there that will convert all subroutines into
subprocedures. This is useful in some situations, just watch out though...
if the subroutine contains a RETURN opcode, it will return to the calling
program. If that subroutine is migrated to a subprocedure, the RETURN opcode
simply returns to the caller of the subprocedure (i.e., the mainline calcs
or another subprocedure).


Bob Cozzi
Cozzi Consulting
www.rpgiv.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of G Armour
Sent: Friday, October 24, 2003 10:53 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Benefits of Sub-procedures

Not sure whether I was misinterpreted.  I was intending to extend your idea
of
forgoing all subroutines "for two to three months just to get into
practice." 
Sometimes I need to be "coerced" like that.  <g>

By the BTW:  Enforcing this "no subroutines" idea would almost have to take
into
account existing apps that have myriad SR's.  The pre-compiler option could
look at
the source statement mod date and kick out those with a higher date than... 

Like I have nothing better to do.   <g>

GA

--- rob@xxxxxxxxx wrote:
> I think that what you are saying is that if it's so simplistic that you 
> don't want to bother with PI's/PR's then you wouldn't want to bother with 
> BEGSR's/EXSR's.  Interesting thought.
> 
> By the way, I compiled a very simple program with a subroutine in it just 
> to see if it generated any messages like RNF#### - list of subroutines. 
> Nothing.  Too bad, if there was I bet you could have CHGMSGD and kicked up

> the severity to a higher number.  And that would have stopped the 
> compiler.  I bet that's a technique not published in "How to Win Friends 
> and Influence People".      :-)
> 
> Rob Berendt


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
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.