You
can access files on other systems in your network by using the FTP
and SOCKET access methods. The forms of the FILENAME statement are:
FILENAME fileref FTP
'external-file' <ftp-options>;
FILENAME fileref SOCKET 'hostname:portno' <tcpip-options>;
FILENAME fileref SOCKET ':portno' SERVER <tcpip-options>;
These access methods
are documented in the
SAS Statements: Reference. On
z/OS, 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. You cannot specify the MACH option
and the HOST option on the same FILENAME statement. The .netrc
file
resides on z/OS.
The SAS FTP access method
accesses the
.netrc
file per the following
search precedence:
-
-
-
UFS Home directory (
~/.netrc
)
The
.netrc
file
contains the machine name, user ID, and password of various hosts
that a user can FTP to, for example:
MACHINE hostname LOGIN userid PASSWORD xxxxxxx
If you are transferring
a file to any UNIX or Windows file system from SAS in 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.
Note:
-
The permissions of the
.netrc
file
on UFS are not checked.
-
All characters of the
.netrc
keywords
MACHINE, LOGIN, PASSWORD, and PASSWD must be uppercase or lowercase.
Mixed case keywords are not supported.
-
Line numbers are not recommended
in
z/OS .netrc
files, but they are
supported.