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



Simon is correct, and I couldn't agree with him more.

I can't count the number of programmer I've met that use the || or <|
symbols.
Not only have I never been an advocate of them on readability
principles, I've used Windows-based editors for 8 years now and saw the
issue with downloading source to the PC years ago.

Bob Cozzi
cozzi@rpgiv.com
Visit the new on-line iSeries Forums at: http://www.rpgiv.com/forum

> -----Original Message-----
> From: code400-l-admin@midrange.com
[mailto:code400-l-admin@midrange.com] On
> Behalf Of Simon Coulter
> Sent: Friday, December 14, 2001 4:43 PM
> To: code400-l@midrange.com
> Subject: Re: Code and CL
>
>
> Hello Mark,
>
> You wrote:
> >2) The logical not character (SHIFT-6) shows up as a carat. This
character
> >is transferred to the source PF as a carat. I can't even get that
character
> >in a 5250 screen using SEU.
>
> You should ALWAYS use the symbolic values (i.e., *NOT, *CAT, *BCAT,
*TCAT)
> and NEVER use the caret ^, vertical bar | and angle brackets <>.  The
^|<>
> characters are variant which means their representation in hex is not
the
> same in different codepages.  Since CCSID encoding is intended to
maintain
> the visual representation of the character an ASCII caret is converted
to an
> EBCDIC caret during transfer to the Host.  The problem is that the
EBCDIC
> caret is not the same hex value as an EBCDIC not symbol.  Thus the
compile
> fails.
>
> This is not only a problem between PC and Host but since CL is
partially
> interpreted using the ^ || >| <| symbols can cause execution failures
if
> your CL code runs on an AS/400 with a different primary language.
>
> Besides *NOT, *CAT, *BCAT, and *TCAT are FAR more obvious in intent
and self
> documenting.
>
> There is more to this problem regarding the fact that the caret is not
a not
> symbol, it just happens to occupy the same keyboard location, so
different
> keyboard mappings will cause different effects.  However, I've made my
point
> -- don't use the variant characters!
>
> Regards,
> Simon Coulter.
>
> --------------------------------------------------------------------
>    FlyByNight Software         AS/400 Technical Specialists
>    http://www.flybynight.com.au/
>
>    Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
>    Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
>                                                              X
>                  ASCII Ribbon campaign against HTML E-Mail  / \
> --------------------------------------------------------------------
>
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-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.