You
can access files on other systems in your network by using the FTP,
SFTP, and SOCKET access methods. Here are the forms of the FILENAME
statement:
FILENAME fileref FTP 'external-file' <ftp-options>;
FILENAME fileref SFTP 'external-file' <sftp-options>;
FILENAME fileref SOCKET 'external-file' <tcpip-options>;
FILENAME fileref SOCKET ':portno' SERVER <tcpip-options>;
These access methods
are documented in
SAS Statements: Reference. Under
UNIX, the FTP access method supports an additional option:
identifies which entry
in the .netrc
file should be used to get
the user name and password. The .netrc
file
resides on the host on which the SAS program is running. See the UNIX
man page for more information about the .netrc
file. You cannot specify the MACH option together with the HOST
option in the FILENAME statement.
If you are transferring
a file to UNIX from the
z/OS operating environment and you want to
use either the S370V or S370VB format to access that file, then the
file must be of type RECFM=U and BLKSIZE=32760 before you transfer
it.
CAUTION:
When you
use the FTP access method to create a remote file, the UNIX permissions
for that file are set to -rw-rw-rw-, which makes the file world-readable
and world-writable.
See the UNIX man page
for
chmod
for information about changing
file permissions.