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



Scott,

And those are important standards, as little as they are...
I've seen many RPG IV /FREE stuff all nicely right-aligned. Makes it
somewhat difficult to read, or rather, it looses a lot of the advantage of
free format by making the code look like the traditional fixed format. That
is you can't easily identify the indentation (nesting levels) of the IF/DOW,
etc. unless you index some amount of space. Whether that's 2, 3, or 5
positions doesn't really matter, as long as you do it.


Bob Cozzi
Cozzi Consulting
www.rpgiv.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Wednesday, October 01, 2003 6:06 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Free Fromat Standards

>
> Wondered if anyone has anything of a simlar nature they could share, or
any
> points they have noticed that I shoudl add in.
>

When we switched to free-format we made very few changes to our standards.

Basically, aside from the syntax changes required from the language,
we decided:

-- The code should be indented 3 spaces or more from the position of
    the /free tag.

-- Each new level (such as those created by if/endif do/enddo, etc)
    should be indented 3 or more spaces.

Aside from that, we use the exact same standards that we used in
fixed-format.  The transition from fixed format to free format is really
not that big of a change.  You just have more space for your statements
now.

Good Luck

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

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.