John, I like it!, but in your example I think you meant to use "PGM=COZBATCH", and not "PROC=COZPROC" Also (a nit), but you have a typo (two different names for the shell variable).
This is a good example of how inline use of the z/OS Unix shell can be used as an effective scripting language in the context of JCL. It may not be of interest to traditionalists, but more and more folks using z/OS these days also know Unix and mixing USS with JCL can be very cool. Kirk Wolf Dovetailed Technologies http://dovetail.com PS> Just to clarify: COZBATCH runs a shell script in batch ( a friendlier replacement for BPXBATCH). COZPROC is a PROC for the Co:Z Launcher, which runs a script on a remote system, in an environment where the remote script can access z/OS datasets in the launching job. Both are part of the free Co:Z Toolkit On Thu, Sep 16, 2010 at 6:12 PM, John McKown <joa...@swbell.net> wrote: > > > I think that is referring to accessing a named pipe in the PUT or GET > ftp subcommand. Not for using a pipe to send the commands to the ftp > processor. > > For PGM=FTP, I cannot think of an EASY way to do this. Using Co:Z to > launch a shell session to do the FTP, it is brain dead easy. > > > //FTPSTEP EXEC PROC=COZPROC > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDIN DD * > YYMMDD=$(date +%C%m%d) > ftp -e server.ip.address <<EOF > userid password > put 'randys.test.ftp.dataset' 'randys.test.ftp.dataset.${DYYMMDD}' > EOF > /* > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html