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




So is there an argument in Java, or any other language, to make it fixed
format?

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


|-----------------------------+-------------------------------------------|
|   "Bob Cozzi"               |                                           |
|   <cozzi@xxxxxxxxx>         |                                           |
|   Sent by:                  |                                         To|
|   rpg400-l-bounces@midrange.|                                   "'RPG   |
|   com                       |                                   programm|
|                             |                                   ing on  |
|   07/28/2004 08:37 AM       |                                   the     |
|                             |                                   AS400 / |
|         Please respond to   |                                   iSeries'|
|      RPG programming on the |                                   "       |
|          AS400 / iSeries    |                                   <rpg400-|
|      <rpg400-l@xxxxxxxxxxxx>|                                   l@midran|
|                             |                                   ge.com> |
|                             |                                         cc|
|                             |                                           |
|                             |                                    Subject|
|                             |                                   RE:     |
|                             |                                   converti|
|                             |                                   ng  stri|
|                             |                                   ng to a |
|                             |                                   numeric |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|-----------------------------+-------------------------------------------|






RPG started out fixed, so whether or not it started out free is irrelevant.
Some reasons the free-format stuff isn't 100% yet, is because it is new.
For
example, when a new language, such as Java arrived on the scene, it had so
many shortcomings and eventually became better (although the idea of Java
is
like saying English should be spoken by all humans in all countries... It
just doesn't make any sense to me at all, but I, as usual, digress. <g>)
The point is there is a lot of legacy in RPGIV/RPGIII's columnar
instructions. Granted there are some (many?) at IBM who think that the
MOVE/MOVEL opcodes should not exist (why aren't their equivalent in /FREE?)
and those that think the truncating numbers on an assignment should always
cause an error. Well, I could suggest that some people, way back when
choose
RPG and the S/3x platforms because they were unlike all the other systems.
That is they did things in a way so that we could get the job of running
business applications done.
I could go on, but it could turn ugly. :)
-Bo


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, July 28, 2004 8:20 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: converting string to a numeric



Can you actually see someone making the argument that an existing free
format language needed to be converted into fixed format?  If RPG had
started out as /free can you imagine people actually arguing for fixed
formatting?  Are there strong debates in other languages to convert them
into fixed format?

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


|-----------------------------+-------------------------------------------|
|   "James H H Lampert"       |                                           |
|   <jamesl@xxxxxxxxxxx>      |                                           |
|   Sent by:                  |                                         To|
|   rpg400-l-bounces@midrange.|                             <rpg400-l@midr|
|   com                       |                             ange.com>     |
|                             |                                         cc|
|   07/26/2004 05:43 PM       |                                           |
|                             |                                    Subject|
|         Please respond to   |                             Re:           |
|      RPG programming on the |                             converting  st|
|          AS400 / iSeries    |                             ring to a     |
|      <rpg400-l@xxxxxxxxxxxx>|                             numeric       |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|-----------------------------+-------------------------------------------|






> Call me old-fashioned but because indicators are such dangerous little
> suckers I'd rather see an explicit SETON or SETOFF operation.
>
> Use numeric operations for numeric operands, character operations for
> character operands, and indicator operations for indicator operands.

AMEN! And leave languages that are naturally fixed-source-format AS
fixed-source-format: if you're working in FORTRAN, for example, you can
indent all you want BEYOND Column 7, but keep the statements at or beyond
that column, and the continuations in 6, and the labels in 1-5. When a
language is designed to have a fixed source format, free-formatting the
source just makes it harder to read.

You want free-format source? Use Pascal, C, ALGOL, PL/I, LISP, Java, or
Modula-2. They're designed for it.

--
JHHL


--
This is the RPG programming on the AS400 / 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 AS400 / 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 AS400 / 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 ...

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.