Usage Note 61243: Alternative FILENAME SFTP code when running SAS® software on z/OS
Beginning in SAS® 9.2, FILENAME SFTP is supported on UNIX and Windows systems. Although it is not supported on z/OS, FILENAME SFTP might randomly execute successfully. You can use the following alternative code for executing SFTP from a SAS session on z/OS:
Requirements:
- must be able to SFTP outside of SAS
- must have SSH key pairs set up
- Use PROC <standalone program>; /* only available on z/OS */
PROC SFTP; RUN:
/* will need to allocate any required files to execute SFTP outside of SAS */
- FILENAME PIPE
filename x pipe '/bin/sftp -batchfile /u/cindy/sshbatch.txt';
data _null_;
infile x ;
input;
put _infile_;
run;
You can write out the commands for the batch file (sshbatch.txt) by following the logic in SAS Note 61368, "You can use the FILENAME PIPE access method as an alternative way of executing SFTP."
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.2 | | 9.2 TS1M0 | |
| z/OS 64-bit | 9.2 | | 9.2 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Date Modified: | 2023-08-29 14:43:29 |
| Date Created: | 2017-10-13 11:46:57 |