Symbolic Keyword Error

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
mwdazzo
Posts: 55
Joined: Fri Jan 07, 2011 10:02 am

Symbolic Keyword Error

Post by mwdazzo »

I am using this key symbolic with cozbatch in other scripts that use user and paswword authentication. When adding to the the script that uses RSA authentication I get an error on the $TRANSFER symbolic? Thanks Matt

CoZBatch­N½: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights res
CoZBatch­N½: version 1.7.5 2010-12-13
CoZBatch­I½: executing progname=login-shell="-/bin/sh"
Co:Z cozsftp version: 1.7.5 (5.0p1) 2010-12-13
Copyright (C) Dovetailed Technologies, LLC. 2008. All rights reserved.
ZosSettings­E½: Keyword mode value '' does not match pattern '¬(bin(ary)?|text)$ . RC=1
cozsftp> lzopts mode=,servercp=ISO8859-1
servercp=ISO8859-1 ?mode=
CoZBatch­I½: returning rc=exitcode=0


# Customize these ...
coz_bin="/usr/lpp/coz/bin"
servercp="ISO8859-1"
TRANSFER="$(echo $TRANSFER | tr '­:upper:½' '­:lower:½')"
ruser="c7ioh0p8"
server="safetransvalidate.wellsfargo.com"
rfile="/inbound/PUBLI296_PMGR_1"
ssh_opts="-oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no" # accept initial host keyes
$coz_bin/cozsftp $ssh_opts -k WELLSVERING -b- $ruser@$server <<EOB
lzopts mode=$TRANSFER,servercp=$servercp
EOB
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Re: Symbolic Keyword Error

Post by coz »

$TRANSFER has no value prior to this statement:

Code: Select all

TRANSFER="$(echo $TRANSFER | tr '­:upper:½' '­:lower:½')"
Check to make sure you are setting it.
Post Reply