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


  • Subject: Re: finding the right place in a RRN file
  • From: Jim Welsh <jimwelsh@xxxxxxxxxxxxx>
  • Date: Thu, 17 Apr 1997 08:50:22 -0400

boothm@earth.goddard.edu wrote:
> 
> I am trying to learn this stuff;  I see a lot of RPGII and it doesn't
> upset me.
> 
> But I am trying to learn this new stuff.  Like now:
> I am wondering where/how *IN90 gets turned on in this bit?
> And why "count = count + 1" is better than "add 1   count"?
> 
> > at 10:46 AM, Jim Welsh <jimwelsh@ix.netcom.com> said:
> 
> >FILLSF   BEGSR
> >         READ   MYFILE ( logical keyed by Last Name )
> >*IN90    DOWEQ  *OFF
> >write subfile record here
> >count = count + 1
> >if count = page size then LEAVE ( exit loop )
> >         READ   MYFILE
> >         ENDDO
> >         ENDSR
> 
> --
> -----------------------------------------------------------
> boothm@earth.goddard.edu
> -----------------------------------------------------------

Sorry, i did say it was quick and dirty :)
the code is a bit of a mixture of psuedocode and the real thing
since i don't have alot of experience coding within an email reply.


Anyway you'd still need to specify 90 in the EQUAL TO column 
and, ADD 1 COUNT is the RPG III Style
RPG IV you could say EVAL COUNT + 1 or something to that effect.

Well i don't have anything against RPG II and OCL, other than III and CL
are much more enjoyable to work with by far.

if ya really want to get into it i'd suggest just buying a good book and
then of course you'll have to find an AS/400...

Bob Cozzi at  http://www.rpgdev.net/ 
writes great books for the RPG world, could give that a try.

Anyway if you can handle RPG II, you'll love the new stuff and do very
well with it, it's designed to make life easier ya know.

Course bosses don't really change all that much...lol

good luck!

-- 
Jim

http://www.netcom.com/~jimwelsh/welcome.html
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.