|
Hi,
Guess this is a personal issue on what standard you take, but here are some
additional ones that I use;
- two space indentation (with still 80 character limits on a source line I
can't afford 3 spaces)
- variables capitalized (ex. MyAmount)
- database fields all caps (ex. CSNAME)
- operation codes capitalized (ex. EndIf, ReadE)
- functions capitalized (ex. Not, %EOF, %SubSt)
- No use of CALLP (just ignore the result in that case)
- ... probable many more that I find so 'normal'
Kind regards,
Paul
------------------------
CODE/400 Discussion & Support <code400-l@xxxxxxxxxxxx> wrote:
------------------------
>We use 3 space indentation. You can set up WDSc to do it for you. As far
>as naming, we use Hungarian notation as a loose standard. One deviation,
>though, is that all iSeries objects referenced start with a capital letter
>the finish with small case. All opcodes and BIFs are lower case.
>
>example:
> read (myFirstKey:mySecondKey) Myfile;
> if not %eof(Myfile);
> myVar = anotherVar;
> endif;
>
>Thanks,
>
>Mark
>
>Mark D. Walter
>Senior Programmer/Analyst
>CCX, Inc.
>mwalter@xxxxxxxxxx
>http://www.ccxinc.com
>
>
>
>
> "Emery, Eve"
>
>
> tals.com> cc:
>
> Sent by: Subject: Free Format
> Standards
> code400-l-bounces@mi
>
> drange.com
>
>
>
>
>
> 10/01/2003 09:41 AM
>
> Please respond to
>
> CODE/400 Discussion
>
> & Support
>
>
>
>
>
>
>
>
>
>Hi,
>
>Wondered if anyone could help me in writing some standereds for writing in
>free format.
>
>Things like indentation to use, where and how much etc....
>
>Thanks
>
>Eve
>
>
>+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>The integrity of this message cannot be guaranteed on the Internet.
>Natexis Metals Limited cannot therefore be considered responsible for the
>contents. Any unauthorised use or dissemination is prohibited. If you are
>not the intended recipient of this message please delete it and notify the
>sender.
> Please visit our website www.natexismetals.com
>+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>
>_______________________________________________
>This is the CODE/400 Discussion & Support (CODE400-L) mailing list
>To post a message email: CODE400-L@xxxxxxxxxxxx
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/code400-l
>or email: CODE400-L-request@xxxxxxxxxxxx
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/code400-l.
>
>NOTE: WDSc for iSeries disucssion has it's own mailing list.
>Information can be found at
>http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
>
>
>
>
>
>_______________________________________________
>This is the CODE/400 Discussion & Support (CODE400-L) mailing list
>To post a message email: CODE400-L@xxxxxxxxxxxx
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/code400-l
>or email: CODE400-L-request@xxxxxxxxxxxx
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/code400-l.
>
>NOTE: WDSc for iSeries disucssion has it's own mailing list.
>Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.