> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2008 12:37 PM
> To: [email protected]
> Subject: FTP Temporary File
> 
> Hello.
> 
> I need to FTP a temporary file passed from a previous step to 
> FTP step. Is 
> this possible? Do i need to catalog the file before FTP'ing. 
> Please let me know 
> about the same.
> 
> Thanks,
> Rajeev 

Sure

//FTPTEMP EXEC PGM=FTP,PARM='(EXIT'
//OUTPUT DD SYSOUT=*
//TEMPFILE DD DSN=&&TEMPFILE,DISP=(OLD,PASS)
//SYSIN DD *
system
user
password
cd /path/to/output/directory
put dd:tempfile output.file
/*

The IBM ftp client can access a file either by name (which is the usual
way), or via the DD: with the file to be transferred allocated to a
normal DD statement.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to