Unable to initialize iconv

General discussion of the Co:Z Toolkit
Post Reply
agattu
Posts: 8
Joined: Mon Jan 19, 2009 9:36 am
Location: Sweden

Unable to initialize iconv

Post by agattu »

Why do I get this error when running your example JCL RUNCOZ?

Code: Select all

cozagentÝN¨: version: 1.0.5 2008-03-01                                                                              
cozserver(1)ÝW¨: Translator: Unable to initialize iconv. sourceCodePage="ANSI_X3.4-1968", targetCodePage="IBM-1047" 
cozserver(1)ÝW¨: Error creating client codepage (ANSI_X3.4-1968) translator: TranslateException: Unable initialize  
Translator, fallback to iconv failed., RC=121, Reason=90308706                                                      
cozserver(1)ÝW¨: Client codepage falling back to ISO8859-1
The command is executed as expected but this message is a little disturbing.


/Thanks
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The Co:Z launcher tries to use the target system's default codepage for translation of text. Apparently, your target system has a default codepage of "ANSI_X3.4-1968", which is not recognized by iconv() on z/OS, so it falls back to using ISO8859-1 (Latin 1 ASCII). ANSI-X3.4-1968 is the old "ASCII" standard, which is a subset of the newer ISO8859-1, which is why it worked OK.

If you want to prevent this message, you can configure the codepage used by the "client" running on the target system by setting the "COZ_CLIENT_CODEPAGE" environment variable on the target system.

One way to do this is to add this line to your //COZCFG properties:

target-env-COZ_CLIENT_CODEPAGE=ISO8859-1
Post Reply