Re: Re: Free Format Standards
"Paul Nicolay" <[email protected]> Wed, 1 Oct 2003 14:00:08 +0000 (UTC)
| Newsgroups | gmane.comp.systems.as400.code |
|---|---|
| Message-ID | <[email protected]> |
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-Zwy7GipZuJhWk0Htik3J/[email protected]> 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-7AQSK1ONhG/[email protected] >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-Zwy7GipZuJhWk0Htik3J/[email protected] >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/code400-l >or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] >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-Zwy7GipZuJhWk0Htik3J/[email protected] >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/code400-l >or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] >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-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/code400-l or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] 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