tofile 1.1.2 fails on iconv request
Posted: Mon Nov 24, 2014 10:40 am
I am trying to send a file from my Fedora Linux machine (fc20 x86_64) to a file in my ${HOME} directory on a z/OS 1.12 system. The transcript looks like:
$ echo "// SET SERVERIP=$(cat ~/zos/linux.ip.addr) ${isodate}" | /opt/dovetail/coz/bin/tofile -ssh tsh009@lih1 -L T /home/tsh009/bubba
tofile[D]: sourceCodePage defaulted to COZ_CLIENT_CODEPAGE=ISO-8859-1
tofile[D]: setTextMode: sourceCodePage=ISO-8859-1, targetCodePage=, linerule=flexible, technique=
tofile[T]: PosixFile: -> setTextMode(, ISO-8859-1, flexible, )
tofile[T]: PosixFile: <- setTextMode()
tofile[T]: <- tofile.parseArgs()
tofile(/home/tsh009/bubba)[T]: PosixFile: -> open("/home/tsh009/bubba", 0x0091, 0x30001B6)
tofile(/home/tsh009/bubba)[T]: PosixFile: -> configureTranslator(isWrite=true, fileCodePage=, streamCodePage=ISO-8859-1, technique=)
tofile(/home/tsh009/bubba)[W]: Translator: Unable to initialize iconv. sourceCodePage="ISO-8859-1", targetCodePage="IBM-1047"
tofile(/home/tsh009/bubba)[T]: PosixFile: <- configureTranslator()
tofile(/home/tsh009/bubba)[E]: PosixFile: PosixFile.open(): TranslateException: Unable initialize Translator, fallback to iconv failed., RC=121, Reason=-1037303780
tofile(/home/tsh009/bubba)[T]: PosixFile: <- open(fd=-1, filename=/home/tsh009/bubba, mode=0, errno=122)
tofile(/home/tsh009/bubba)[T]: CoZServerUtil: -> writeErrorStatusPacket(tofile(/home/tsh009/bubba): msg="Error opening output file", rcvd=0, sent=0, rc=103, emsg="EDC5122I Input/output error. (errno2=0xC22C001C)", errno=122, errno2=0XC22C001C)
tofile-client(21506)[E]: tofile(/home/tsh009/bubba): Error opening output file, rc=103, msg="EDC5122I Input/output error. (errno2=0xC22C001C)"
tofile(/home/tsh009/bubba)[T]: CoZServerUtil: <- writeErrorStatusPacket()
tofile(/home/tsh009/bubba)[T]: <- tofile.run()
tofile(/home/tsh009/bubba)[T]: -> ~tofile()
tofile(/home/tsh009/bubba)[T]: <- ~tofile()
tofile(/home/tsh009/bubba)[D]: tofile current thread cpu time: 0.005512 secs
tofile(/home/tsh009/bubba)[D]: Exiting main(), rc=103
tofile-client(21506)[E]: server exit_code=103
tofile-client(21506)[E]: transmitted byte counts do not match, server sent/received = 0/0, client received/sent = 0/49
If I do a binary transfer, it works just fine. tofile on Linux is 1.1.2. tofile on z/OS is 3.0.0
z/OS:
tofile -v
3.0.0 2014-11-12
uname -a
OS/390 LIH1 22.00 03 2096
bpxmtext 115C006C
BPXVFRPH 08/27/08
JRFileNotThere: The requested file does not exist
Action: The service cannot be performed unless the named file exists.
Linux:
tofile -v
1.1.2 2013-03-19
uname -a
Linux it-johnmckown-linux 3.17.2-200.fc20.x86_64 #1 SMP Tue Nov 4 18:04:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ echo "// SET SERVERIP=$(cat ~/zos/linux.ip.addr) ${isodate}" | /opt/dovetail/coz/bin/tofile -ssh tsh009@lih1 -L T /home/tsh009/bubba
tofile[D]: sourceCodePage defaulted to COZ_CLIENT_CODEPAGE=ISO-8859-1
tofile[D]: setTextMode: sourceCodePage=ISO-8859-1, targetCodePage=, linerule=flexible, technique=
tofile[T]: PosixFile: -> setTextMode(, ISO-8859-1, flexible, )
tofile[T]: PosixFile: <- setTextMode()
tofile[T]: <- tofile.parseArgs()
tofile(/home/tsh009/bubba)[T]: PosixFile: -> open("/home/tsh009/bubba", 0x0091, 0x30001B6)
tofile(/home/tsh009/bubba)[T]: PosixFile: -> configureTranslator(isWrite=true, fileCodePage=, streamCodePage=ISO-8859-1, technique=)
tofile(/home/tsh009/bubba)[W]: Translator: Unable to initialize iconv. sourceCodePage="ISO-8859-1", targetCodePage="IBM-1047"
tofile(/home/tsh009/bubba)[T]: PosixFile: <- configureTranslator()
tofile(/home/tsh009/bubba)[E]: PosixFile: PosixFile.open(): TranslateException: Unable initialize Translator, fallback to iconv failed., RC=121, Reason=-1037303780
tofile(/home/tsh009/bubba)[T]: PosixFile: <- open(fd=-1, filename=/home/tsh009/bubba, mode=0, errno=122)
tofile(/home/tsh009/bubba)[T]: CoZServerUtil: -> writeErrorStatusPacket(tofile(/home/tsh009/bubba): msg="Error opening output file", rcvd=0, sent=0, rc=103, emsg="EDC5122I Input/output error. (errno2=0xC22C001C)", errno=122, errno2=0XC22C001C)
tofile-client(21506)[E]: tofile(/home/tsh009/bubba): Error opening output file, rc=103, msg="EDC5122I Input/output error. (errno2=0xC22C001C)"
tofile(/home/tsh009/bubba)[T]: CoZServerUtil: <- writeErrorStatusPacket()
tofile(/home/tsh009/bubba)[T]: <- tofile.run()
tofile(/home/tsh009/bubba)[T]: -> ~tofile()
tofile(/home/tsh009/bubba)[T]: <- ~tofile()
tofile(/home/tsh009/bubba)[D]: tofile current thread cpu time: 0.005512 secs
tofile(/home/tsh009/bubba)[D]: Exiting main(), rc=103
tofile-client(21506)[E]: server exit_code=103
tofile-client(21506)[E]: transmitted byte counts do not match, server sent/received = 0/0, client received/sent = 0/49
If I do a binary transfer, it works just fine. tofile on Linux is 1.1.2. tofile on z/OS is 3.0.0
z/OS:
tofile -v
3.0.0 2014-11-12
uname -a
OS/390 LIH1 22.00 03 2096
bpxmtext 115C006C
BPXVFRPH 08/27/08
JRFileNotThere: The requested file does not exist
Action: The service cannot be performed unless the named file exists.
Linux:
tofile -v
1.1.2 2013-03-19
uname -a
Linux it-johnmckown-linux 3.17.2-200.fc20.x86_64 #1 SMP Tue Nov 4 18:04:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux