×
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.
On the first point, not always. You can put your mainline logic in a subprocedure and use the MAIN keyword on the H spec to specify the subprocedure to be used as the mainline. In this scenario, the RPG cycle is not invoked, thus eliminating the overhead of the cycle (which I don't use anyway).
Brian May
IBM i Modernization Specialist
Profound Logic Software
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Thursday, January 24, 2013 5:43 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Indicating Total Time in Free Form when using RPG Cycle - Solved
FREE still uses the cycle, so far as I know. It is us programmers who have added in the redundant code of the DOW not %EOF loop. Take out that loop, and so far as I know, you are back to the original RPG cycle.
Setting on the L1-L9 indicators is usually done in the I specs, I believe? In which case it is probably easier to finish converting the old code and do your L1 calculations within the Calc specs and use named indicators and/or conditioned sub routines in place of L1-L9.
If the issue is L0 then my understanding is that L0 is always on and therefore not relevant to solving any practical programing problems.
On 1/24/2013 5:31 PM, Vernon Hamberg wrote:
Well, Jeff, you COULD just write your own level-break processing and
keep it all in /free - I'm almost kidding, it's not the hardest thing in
the world to do.
On 1/24/2013 2:12 PM, Jeff Young wrote:
Thank to everyone that responded.
It appears that (as I presumed) in order to implement this, I indeed must
break out of /free mode to set a CLx spec to indicate the start of RPG
Cycle Total Time processing. After this statement, I can resume /free mode
for all other logic and it will be part of the total cycle.
Thanks again.
As an Amazon Associate we earn from qualifying purchases.