|
Thanks Vern.
This is a subject that everyone seems to ignore here and I will be informing everyone.
I would just like to be clear in my own head as to what happened.
Our system is set to CCSID 65535. A programmer wrote some code containing the <!!> characters to replace <concat>. I'm assuming he used these characters as he found it had the result that he would have wanted from the characters <||>. The Robot SYSAUTO submitted the jobs running this program with the same CCCSID, and so no problem. Then AUTOMATOR was introduced causing SYSAUTO to run with CCSID 297 (I'm not sure how). The program actually running the SQL instructions saw something other than <!!>.
I realise that we <should> be on CCSID 297, but surely there would be issues if we just changed now. Also, there could be other problems as AUTOMATOR takes over from SYSAUTO. Unless we use 65535 for that as well...
I'd be glad if someone could confirm what I've written or put me right here.
-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Vern Hamberg
Envoyé : jeudi 18 juin 2009 15:07
À : Midrange Systems Technical Discussion
Objet : Re: SQL error causes all batch jobs to fail
To add to Rob's explanation, there is a set of invariant
characters between various code pages - and the vertical bar
is not one of them, nor the dollar sign, as he said. We are
told never to use the variant characters.
I googled "invariant character" and got the link at IBM for
it - this will get you there - *http://tinyurl.com/lybjbb
Those are the only characters you are ensured will be the
same, no matter what ccsid you use - with the exceptions
stated in that article.
HTH
Vern
*rob@xxxxxxxxx wrote:
David,|| or !!.
Item one:
You are in a multilingual environment. You should NOT use
You should use concat instead. Much like the US Dollarsign will get
changed to various other characters in different character sets soavoid ||.
will those shortcuts for concat. In fact, everyone should
Never can tell when mergers or acquisitions may take placeand put you
in a multi ccsid environment.--
Item two:
SELECT DIGITS(myfield)!!'_'DIGITS(myotherfield) FROM mytable You're
missing the second concat between '_' and DIGITS(myotherfield).
Rob Berendt
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list To post a message email:
MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change
list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting,
please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
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.