I have a numeric field (name=STREP) with 8/0 ZONED a I will convert it in a
character-field. For this, I create in query a new field with the operator
DIGITS(STREP) and I do an output in a new databasefile.
If I transfer this file to Excel, the new field has now an HEX-format.
What is wrong?
How I can convert a ZONED-field to an CHAR-field with query?
thanks for help
Hubert Steidl
IT-Manager
Schneider Electric Austria
e-mail: hubert...@at.schneider-electric.com
Jeff
Hubert Steidl wrote in message <896080$e7c$1...@rohrpostix.uta4you.at>...
To "fix" the problem, rather than letting Query/400 create the outfile,
code DDS for the outfile and compile it. Your new field will then use
the same default as other fields. Have Query/400 write to this file
you've created, transfer it, and you'll be fine.
Gary Guthrie
Technical Editor, NEWS/400 magazine
Can anyone tell me if there is a risk if I cange the QCCSID to 273 ?
Thanks to all for replys.
Hubert
The TEAMIBM Network schrieb in Nachricht
<20000225225838.400MI...@ibm.com>...
Regards
Robert A. Twarowski
I suspect possibly you are using 8=Submit or 3=Submit, and that your
user profile does not have a CCSID set? The default job CCSID was
supposed to eliminate such problems... but for some reason... But
anyway WRKJOB OPTION(*DFNA) on the job running the query should have
a CCSID <ie. not Job Default CCSID> of something other than 65535
<aka *HEX>. The best option IMO is to ?CHGPRF to set the CCSID.
If your Job CCSID is set, but your user profile CCSID is not, and
you are using a submit option w/in WRKQRY, then post again....
and I will look up the solution in the APARs.
Regards, Chuck
All comments provided "as is" with no warranties of any kind whatsoever.
Yes, and setting the user profile CCSID also enables database access
from other remote SQL clients, such as another AS/400 or products like
DB2 Connect (via DRDA).
--
Karl Hanson