We get around this by using a copy step to copy SYSIN data to a UNIX file and 
then point to that file in the sftp step.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Mark Steely
Sent: Thursday, November 11, 2010 3:52 PM
To: IBM-MAIN@bama.ua.edu
Subject: SFTP

I would like to be able to specify STDIN on my SFTP batch job. The man pages 
has the following information:

-b batchfile Batch mode reads a series of commands from an input batchfile
          instead of stdin. Because it lacks user interaction, use it in
          conjunction with noninteractive authentication. A batchfile of
          '-' can be used to indicate standard input.

Here is what I tried:

//SFTP2    EXEC PGM=BPXBATCH,
// PARM=('sh sftp -vvv -b -                                            -
//             prod...@xxxxxxxx.xxxxcorp.com')
//SYSPRINT DD SYSOUT=*
//STDOUT  DD SYSOUT=*
//STDERR  DD SYSOUT=*
//STDIN   DD *
pwd
ls
ascii
lpwd
lcd /tmp
lpwd
!cp "//'XXXXXX.SSPS.CSSMTP.TEST'" test2.txt put test2.txt !rm test2.txt //

Sftp>

That  was the response in STDOUT.

I would like STDIN to point to a dataset. Any help would be appreciated.

Thank You


  ******* CONFIDENTIALITY NOTICE *******

This e-mail message and all attachments transmitted with it may contain legally 
privileged and confidential information intended solely for the use of the 
addressee. If the reader of this message is not the intended recipient, you are 
hereby notified that any reading, dissemination, distribution, copying, or 
other use of this message or its attachments is strictly prohibited. If you 
have received this message in error, please notify the sender immediately and 
delete this message from your system. Thank you.

----------------------------------------------------------------------
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
This e-mail may contain confidential or privileged information. If
you think you have received this e-mail in error, please advise the
sender by reply e-mail and then delete this e-mail immediately.
Thank you. Aetna   

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