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



Hi Raul

I would LOVE,LOVE,LOVE to do that but I have no idea where to start
Any pointers, etc.?

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Raul A Jager W
Sent: Friday, April 28, 2017 10:04 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: New to RPG

Do not use subfiles, use web instead.


On 04/28/2017 02:51 AM, Alan McKenzie wrote:
Hi Brent,

This is great advice from James.

I've been writing in RPG for the last 37 years and started out with the RPG Cycle. Having written in Assembler & Cobol before, it was hard to understand, but once you grasp that you don't need to worry about Opening & Closing files and other mundane programming tasks, it becomes very useful. Send any messages my way and I will be only too happy to help.

One area that I am very poor on is developing programs using sub-files with interactive screens.

Rgrds,

Alan McKenzie
XA Consultant
CBI electric Telecom Cables (Pty) Ltd.
Registration Number: 1967/005978/07
Office: +27 12 381 1405 | Switchboard: +27 12 381 1400
Mobile: +27 (0) 82 453 7990
E-mail: AMcKenzie@xxxxxxxxxxx<mailto:AMcKenzie@xxxxxxxxxxx>
NOTE:- This e-mail message and all attachments hereto contain confidential information intended for specific addressee and purpose. If you are not the addressee:
(a) You may not disclose, copy, distribute or take any action based on the contents hereof.
(b) Kindly inform the sender immediately and destroy all copies thereof.
(c) Any discloser, copying, distribution or any action taken or omitted in reliance on it, is prohibited and may be unlawful.
The views and opinions expressed in this e-mail message may not necessarily be those of the management of the company.

From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
James H. H. Lampert
Sent: 27 April 2017 06:39 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: Re: New to RPG

The only thing I can think of to add is this:

DON'T BE AFRAID TO TAKE A RIDE ON "THE CYCLE."

Because of RPG's history (it's name means "Report Program Generator"),
it's designed to process entire files, and as such, every RPG program
(unless, in the more recent versions of RPG, you explicitly disable
it) runs inside an implicit "DO UNTIL *INLR = TRUE" loop, and if you
designate a file as the "Primary File," each iteration of that
implicit do-loop begins with a read operation on that file, raising the "LR"
indicator when the last record of the file is read.

If you designate a Primary File, then The Cycle allows you to "ride"
through the file, processing each record in sequence, instead of
having to "walk" through it.

And if you don't designate a Primary File, then The Cycle can be used
as a built-in event loop for an interactive program: all you need to
do is raise the LR indicator whenever the user is ready to exit.

If you don't have a use for The Cycle in a given program, then you
need to either disable it explicitly, or else make sure LR gets raised.

WHAT YOU DO NOT WANT TO DO IS IGNORE "THE CYCLE." If you ignore The
Cycle, it will run over you.

--
JHHL
--
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<mailto:RPG400-L@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l<http://lists.midra
nge.com/mailman/listinfo/rpg400-l>
or email:
RPG400-L-request@xxxxxxxxxxxx<mailto:RPG400-L-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l<http://archive.midrange.com/rpg400-l>.

Please contact support@xxxxxxxxxxxx<mailto:support@xxxxxxxxxxxx> for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD<http://amzn.to/2dEadiD>



-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
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.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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.