I am having a problem passing a parm using the CD command to get to folder Inbound/AutoJobLoad Seems the slash is not liked by Z/OS LANG ENV. Below is the parm statment with the CD command that fails. If I just use CD=Inbound that works fine, as soon as the slash and second folder are added it fails. Pls see error msg's below. Cozbatch is being executed from a proc with overrides in the jcl for the variables, at the bottom is the script that is created and executed by the proc. Is there a better way of doing this? tks Matt
PGM=COZBATCH,PARM='FN=PCH_junk CD=Inbound/AutoJobLoad RING=NULLFILE'
CEE3608I The following messages pertain to the invocation command run-time opti
CEE3766I A required delimiter '=((' was not found.
CEE3611I The run-time option FN was an invalid run-time option or is not suppor
CEE3611I The run-time option PCH_JUNK was an invalid run-time option or is not
CEE3766I A required delimiter '=((' was not found.
CEE3611I The run-time option CD was an invalid run-time option or is not suppor
CEE3611I The run-time option INBOUND was an invalid run-time option or is not s
CoZBatch N : Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights re
CoZBatch N : version 2.1.1 2012-03-16
CoZBatch I : executing given progname="AutoJobLoad"
CoZBatch E : could not spawn: AutoJobLoad - EDC5129I No such file or directory.
CoZBatch W : an error occurred; returning rc=1005
coz_bin="/usr/lpp/coz/bin"
REMOTEUSER="pch"
SERVER="Sftp.intelisent.com"
servercp="ISO8859-1"
# remotefile="/users/pcchsec"
TRANSFER=$(echo $TRANSFER | tr ' :upper: ' ' :lower: ')
export PASSWD_DSN=//$PWDPDS
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no"
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no"
$coz_bin/cozsftp $ssh_opts -b- $REMOTEUSER@$SERVER <<EOB
lzopts mode=$TRANSFER,servercp=$servercp
ls
cd $CD
put //DD:PUTFILE $FN
ls
EOB
Passing Parms to cozbatch
Re: Passing Parms to cozbatch
As with all LE "main" programs, the PARM to COZBATCH starts with optional LE parms followed by a slash. If you don't have a slash anywhere in the PARM, then this is not a problem. But since you do, the data before the slash is taken as LE parms.
See this reference page for the complete documentation:
http://www.dovetail.com/docs/cozbatch/ref.html
See this reference page for the complete documentation:
http://www.dovetail.com/docs/cozbatch/ref.html
Re: Passing Parms to cozbatch
Got it, tks Matt