On Thu, 16 Sep 2010 15:47:59 -0500, Harris, Randy wrote:

>Trying to do an ftp from mainframe (z/OS v1.7) to a network server.
>I would like to be able append the system date to the dataset in the put 
>statement.
>Is there a symbolic parameter for date that will allow me to do this?
>
I believe that in the newest z/OS release (1.12?) FTP will
be able to take its input from a named pipe (FIFO).  With
this, you could achieve your result by concatenating
the output of date(1) and your data set into such a pipe.

So, wait patiently.

>//FTPTEST  JOB  (JOB,JOB),'RHARRIS',CLASS=Z,MSGCLASS=M
>//STEP01   EXEC PGM=FTP
>//SYSFTPD  DD  DSN=parmlib(FTPSDATA),DISP=(SHR,KEEP,KEEP)
>//SYSTCPD  DD  DSN=parmlib(TCPDATA),DISP=(SHR,KEEP,KEEP)
>//SYSMDUMP DD  SYSOUT=*
>//SYSPRINT DD  SYSOUT=*
>//OUTPUT   DD  SYSOUT=*
>//INPUT    DD  *
>xxx.xxx.xxx.xxx
>userid password
>PUT 'randys.test.ftp.dataset' ''randys.test.ftp.dataset.Dyymmdd'
>QUIT

-- gil

----------------------------------------------------------------------
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

Reply via email to