Well, of course you can call a sub-procedure. But, I'm talking wholly contained in the CL itself.
Making modules/service programs in RPGLE or CLLE would be way overkill for the stuff I'm thinking of. Now, you've got more pieces and maintenance.
Oh, I just want to shoot people who continue to use GOTO in CL. A couple of years ago, I did a 1-hour presentation to our developers on the benefit of structured CL and subroutines. It hasn't gone very far ;-(( And, they don't/won't use RDi so there is no structured indenting. <aarghhhh>
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxx> on behalf of Ken Killian <kkillian@xxxxxxxxxxxx>
Sent: Wednesday, February 8, 2017 5:23 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Slow opening CLP's?
Short link on Using CL Procedures:
http://www.rpgpgm.com/2015/08/using-cl-procedures.html
Using CL procedures | RPGPGM.COM - From AS400 to IBM i
www.rpgpgm.com
I have found lots of examples of how to use procedures in RPG, but no examples using CL. Procedures in CL are possible, and are a great way to modularize your CL logic.
Since 5.4, that could run on the discontinued AS400 from Last Century. CL can do structure programming, such as DO WHILE, DO UNTIL and has subroutines. The AS400 was last manufacture over 18-years ago. Wow almost 2-decades!
http://www.ibm.com/support/knowledgecenter/ssw_i5_54/cl/dountil.htm
Do Until (DOUNTIL) - IBM
www.ibm.com
The Do Until (DOUNTIL) command processes a group of CL commands one or more times. After the commands in the group have been processed, the logical condition is ...
http://www.ibm.com/support/knowledgecenter/ssw_i5_54/cl/dowhile.htm
IBM Knowledge Center
www.ibm.com
Welcome to IBM Knowledge Center: IBM's new home for technical product documentation. You can find product documentation here from over 3000 IBM products. In IBM Knowledge Center you can browse this documentation or search it to find the answers you need.
There is No Excuses to use "GOTO" in CL programs. Except if you have a love for spaghetti code!
Of course, the defunct hardware AS400, is INCAPABLE of running a powerful OS like IBM i 7.1, 7.2, 7.3 or even IBM i 6.1.
The IBM Power system can run OS IBM i 6 & 7 (6.1, 7.1, 7.2, 7.3)
PS. I like to point that out to the punch-card hold outs, who love discontinued hardware. Just as they remember punch card machine Model Numbers. Welcome to the 21st Century!
-Ken Killian-
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark Murphy/STAR BASE Consulting Inc.
Sent: Wednesday, February 8, 2017 7:01 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Slow opening CLP's?
Wouldn't that be called sub-procedures? CLLE can do that now!
Mark Murphy
Atlas Data Systems
mmurphy@xxxxxxxxxxxxxxx
-----Roger Harman <roger.harman@xxxxxxxxxxx> wrote: -----
To: "Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
From: Roger Harman <roger.harman@xxxxxxxxxxx>
Date: 02/07/2017 04:54PM
Subject: Re: [WDSCI-L] Slow opening CLP's?
I like that thought. I'm inferring something like RDi interpreting a tag in a standard comment.
Not sure how much investment is going into CL. If CL gets improvements, I'd prefer things like parameter passing to subroutines and local variables.
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxx> on behalf of Barbara Morris <bmorris@xxxxxxxxxx>
Sent: Tuesday, February 7, 2017 7:52 AM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] Slow opening CLP's?
On 2017-02-03 7:56 PM, Roger Harman wrote:
I'd sure like the ability to insert a tag to tell the parser not to auto-indent or align.
Of course, the compiler needs to accept it too.
If it was a special form of comment, the compiler wouldn't need to know
about it.
As an Amazon Associate we earn from qualifying purchases.