|
Try dbu'ing the src file, and compare the hex values of the ( ' ) around new york, and then compare the hex value at the end of the variable to see if there the same, value... or just a code page thing.
tim
-----Original Message-----
From: Stone, Brad V (TC) [SMTP:bvstone@taylorcorp.com]
Sent: Monday, May 14, 2001 7:46 AM
To: 'RPG400-L@midrange.com'
Subject: RE: Apostrophe in field name?
That's what I thought, Hans. Thanks for the reassurance. I'm going to ask
for some actual code to see what's going on.
Brad
> -----Original Message-----
> From: boldt@ca.ibm.com [mailto:boldt@ca.ibm.com]
> Sent: Monday, May 14, 2001 9:16 AM
> To: rpg400-l@midrange.com
> Subject: Re: Apostrophe in field name?
>
>
>
> Brad wrote:
> >One of my customers just explained to me that they have the
> apostrophe
> >character in a field name.
> >
> >For example,
> >
> >C eval LOCALITA' = 'NEW YORK'
> >
> >The field LOCALITA'. I didn't know this was possible.
> Anyone else seen
> >this? Is there anything on a system that will tell me when this is
> >possible?
>
> If it works for them, then they're not using the ILE RPG compiler
> that I helped develop! Apostrophes are simply not valid characters
> for identifiers. For that statement, the tokenizer will return the
> following tokens: identifier LOCALITA; string literal ' = ';
> identifier NEW; identifier YORK, and an invalid unterminated string
> literal. An error message will be issued on the ' = ' literal since
> the parser expects either a "=" or "(".
>
> Maybe there are some funny codepage things going on, but I'm sure
> the apostrophe is an invariant EBCDIC character. Maybe the "@", "#",
> or "$" maps to some glyph that looks like an apostrophe in some
> EBCDIC code page? That's all I can think of right now.
>
> Cheers! Hans
>
> Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
>
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
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.