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



The Ifxx op codes are not valid in Free-Form, only fixed form.


On Thu, Jan 24, 2013 at 3:22 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>wrote:

Nancy

Most of the free-form operations are the same or very close in name to
the fixed ones, as I recall.

And yes, IF can be used in free-form. I haven't looked into the IFxx
things, and those are just messier anyhow! I suspect they are not there,
since they depend on being in separate statements, I think.

Regards
Vern

On 1/24/2013 1:26 PM, newnancy@xxxxxxxx wrote:
This is the original email note. I suppose that the FREE opcodes use an
IF statement also.

Thank you,
Nancy
On Wed, 23 Jan 2013 16:18:30 -0500 Michael Schutte
<mschutte369@xxxxxxxxx> writes:
I'm not all that familiar with cycle pgm. But just a little... but
isn't it
just an indicator that you can check on an if statement? \


/free
main code blah blah blah
if *inL0;
ExSr Break1;
EndIf;


??? Excuse my ignorance....



setll (field1) file;
Reade(field1) file;
dow not %Eof();
dow not %eof();
// do something here.
reade(field1:field2) file;
enddo;
Exsr break1#;
setgt (field1:field2) file;
reade (field1) file;
enddo;



On Wed, Jan 23, 2013 at 4:12 PM, Jerry C. Adams <midrange@xxxxxxxx>
wrote:

Multi-Functional Card Unit.

Jerry C. Adams
IBM i Programmer/Analyst
Who ever says "Talk is cheap" hasn't spoken to a lawyer recently.
--
Home Office: 615-832-2730
email: midrange@xxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jeff Young
Sent: Wednesday, January 23, 2013 11:34 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Indicating Total Time in Free Form when using RPG
Cycle
S/3.... Wow, I did not think anyone remembered that system. :)
Now, do you
remember what MFCU *really* meant?


On Wed, Jan 23, 2013 at 12:28 PM, Jerry C. Adams
<midrange@xxxxxxxx>
wrote:

Look Ahead? I *think* that I *may* have done those on a /36,
which I
haven't programmed since '93. For sure on a S/3 on an MFCU1
card
deck; it looked like it was stuttering. Field level testing?
Probably that same
S/3
program.

Jerry C. Adams
IBM i Programmer/Analyst
I take pride in my personal appearance. My standards just
happen to
be exceptionally low.
--
Home Office: 615-832-2730
email: midrange@xxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jeff Young
Sent: Wednesday, January 23, 2013 10:59 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Indicating Total Time in Free Form when using RPG
Cycle
Matching Records????
Now you are REALLY going
Waaaaaaaaaaaaaaaaaayyyyyyyyyyyyyyyyyyyyyy
back!!!!
:)
But when did you last use Look Ahead fields????????? :-) or how
about
field level testing for + - 0 ???

Ahhhaaa, those were the days.

Is'nt RPG great?
You have the best of both worlds...the Cycle when it is
appropriate,
and full procedural (walk through the file yourself) when that
is the
best
fit.


On Wed, Jan 23, 2013 at 11:50 AM, Jerry C. Adams
<midrange@xxxxxxxx>
wrote:

Unless one is checking for the control break on Detail time,
I
haven't come across one. Although I've never felt a need to
use L0.
Why not
just:
CL9 CALLP (whatever)

At least this way one only has the one disjointed calc-spec.

A couple of years ago I reached into the Wayback Machine and
actually coded a program using level breaks *and* matching
records.
Could have
(probably) done it without using the Cycle, but it was soooo
much
easier.
Jerry C. Adams
IBM i Programmer/Analyst
The guy in the biggest hurry is often the one who's going
nowhere fast.
--
Home Office: 615-832-2730
email: midrange@xxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jeff Young
Sent: Wednesday, January 23, 2013 10:31 AM
To: RPG programming on the IBM i / System i
Subject: Indicating Total Time in Free Form when using RPG
Cycle
All,
I have an RPGLE program that prints a report and uses the
Cycle for
Level Breaks.
Other than breaking out of free form to indicate Total Time
processing
using CL0 If *InLx, then back to Free Form
until the
end
of total processing with /End-Free, CL0 EndIf, Is
there
any
way to do this only in Free Form?

I know, the RPG Cycle is *old style*, but sometimes, it is the
best
tool for the job and I do not want to roll my own level breaks
here
just to be "modern".

Thanks,

--
Jeff Young
Sr. Programmer Analyst
--
This is the RPG programming on the IBM i (AS/400 and 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.

--
This is the RPG programming on the IBM i (AS/400 and 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.


--
Jeff Young
Sr. Programmer Analyst
--
This is the RPG programming on the IBM i (AS/400 and 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.

--
This is the RPG programming on the IBM i (AS/400 and 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.


--
Jeff Young
Sr. Programmer Analyst
--
This is the RPG programming on the IBM i (AS/400 and 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.


--
This is the RPG programming on the IBM i (AS/400 and 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.


--
This is the RPG programming on the IBM i (AS/400 and 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.



____________________________________________________________
Woman is 53 But Looks 25
Mom reveals 1 simple wrinkle trick that has angered doctors...
http://thirdpartyoffers.juno.com/TGL3141/51018ec35f5daec35bbbst03vuc

--
This is the RPG programming on the IBM i (AS/400 and 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.