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



Clay - that represents a very old (very, very old) version of the RPG IV language and frankly you are doing yourself no favours using that version to teach yourself the language. Even if a lot of programmers are still writing code like it was 1998.

Try and find a more up-to-date version - it will be worth the effort.


On 2013-06-22, at 10:07 AM, Clay B Carley <cbc@xxxxxxxxx> wrote:

Hi Vern and Jon,

I don't see a version or edition on this book, but it is dated 1998.

In chapter 5, they talk about "traditional RPG arithmetic operations",
but also say that section is there just in case you run into those
functions later on.

Thanks again to everyone who replied!

Clay Carley

Vern Hamberg wrote:
Is it possible that the book assumes you already know RPGIII?

----- Original Message -----
Which version of the book are you using Clay? The I can't think of much if you haven't been taught IF or MONITOR yet.


On 2013-06-21, at 10:35 AM, Clay B Carley <cbc@xxxxxxxxx> wrote:

Thanks for the replies.

I'll take another look to see what I can do about checking for the zero
divisor. The book has not yet covered IF statements; I'll be looking
more throughly later to see if I missed anything.

Thanks again,
Clay Carley
Sonic.net/ Sonic Telecom


-snip-
I'm studying (on my own) RPG IV using Stanley Myers' book, "RPG IV
Programming on the AS/400". I'm doing the programming assignments at
the end of Chapter 5, and assignment 5-2 wants "Include the control that
prevents a divide-by-zero error". As far as I can tell, this hasn't
been discussed in the book yet; so I don't want to jump ahead with a
solution that isn't what they are really looking for.


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


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





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.