× 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: what is unclear about 01 02 03 -Reply -Reply
  • From: "Rick Baird" <rbbaird@xxxxxxxxxxx>
  • Date: Tue, 05 May 1998 11:48:27 -0500
  • Organization: Premium Systems, Inc.

Scott Cornell wrote:
 
> The example is a bit of a "loaded dice" scenario, since, unless I missed
> something in RPGIV, 

You did (not for very long though :)

> RPG still *requires* indicator use on file I/O to
> trap exceptions like EOF or (as in your example) record not found
> (geezers and/or whippersnappers are invited to correct me on the
> point at their leisure :)) The point of the thread is "Don't use 'em
> unless they're absolutely necessary," but your example is one of the
> (thankfully dwindling number of) times when one MUST use 90 or 73
> or 22 instead of Rec_Not_Found.

Brand new bifs in V4R2 - %eof() for READx operations, %found() for chain, 
lookup and scan ops, %error(), for most file operations,
%equal for setll and lookup ops.   Now you can write any program without 
indicators.
WOOHOO!!!!

I was browsing dejanews in comp.sys.ibm.as400.misc, and came across a thread 
where someone new to the 400 asked what RPG was.  One
of the responses was the best description of the language I've ever read.

Ed Smith <nojunk.ersmith@scvnet.com> said:

<<<It's forms-oriented, in which special forms are used to define file,
data, calculations, output. There were once many forms but we try to use
only a few.

It's an indicator-based language, in which indicators (flags, bits) are
turned on or off to represent a condition. But, we try to use as few as
possible.

It's a column-sensitive language, in which certain columns are used to
name files, fields, indicators, and operations. But, we try to use the
free-form methods.

It's a fixed-logic language, in which a built-in logic cycle takes care
of opening files, reading them, and closing them. But, we prefer to
circumvent the logic cycle.

It's a language of paradox, in which we try to avoid all the things it
was designed to do for us! Cool, eh? >>>
+---
| 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 MIDRANGE-L-UNSUB@midrange.com.
| 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.