On Mon, 18 Oct 2021 15:17:22 -0400, Billy Ashton wrote:

>Hi again...is there a way to run a single BPXBATCH JCL member that
>copies some instream data into temp files and then run a command that
>uses those files?
>
How about using echo or printf to build your files,
line-by-line.  E.g.:

# //STDPARM DD *
SH
DIR=.
{
printf '%s\n' "export DISPLAY=FOO";
printf '%s\n' "export SSH_ASKPASS=$DIR/pwd.sh";
printf '%s\n' "#--------------- Now run the sftp command";
printf '%s\n' "sftp -vv  -F /tmp/ssh.cfg -b /tmp/sf.cmd \$1@\$2";
} > $DIR/sftp1.sh
     ...
-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to