We are running COZPATCH to PUT multiple z/OS datasets to various UNIX servers. The PUT command is working thus:
Code: Select all
$coz_bin/cozsftp $ssh_opts -b- $remoteuser@$server <<EOB
put //DD:UPLOAD4 $remotepath$remotefile4
with the variables defined as
Code: Select all
server="<DNS name>"
remoteuser="<name>"
remotepath="/sap_stage/DEC/conv/qtc/"
remotefile4="OM03495.DT100822"
following the password exchange:
Code: Select all
export PASSWD_DSN='PDS.DATASET(MEM)'
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
To support sending various multiple datasets to one of four servers with potentially different user names and passwords I would like to use the same PDS with different members for the various server user names and passwords, e.g., PDS.DATASET(USER1), PDS.DATASET(PASS1). I can't figure out how to get the
contents of PDS.DATASET(USER1) assigned to the "remoteuser" variable and the
dataset name PDS.DATASET(PASS1) assigned to PASSWD_DSN for the export and SSH_ASKPASS invocation. (I would prefer to use all variables so the user does not have to modify the "export PASSWD_DSN=..." statement.
(BTW, FTP/SFTP and z/OS UNIX is a whole new learning experience for me so I need the 101-level answer and explanation.)
THX