Referencing External Files with Other Access Methods


Referencing External Files with Other Access Methods

You can assign filerefs to external files that you access with the following FILENAME access methods:

  • CATALOG

  • FTP

  • TCP/IP SOCKET

  • URL.

Examples of how to use each method are shown in the following table:

Table 39.4: Referencing External Files with Other Access Methods

External File Task

Tool

Example

Assign a fileref to a SAS catalog that is an aggregate storage location.

FILENAME with CATALOG specifier

  filename mycat catalog '    catalog    ' <    catalog-options    >;  

Assign a fileref to an external file accessed with FTP.

FILENAME with FTP specifier

  filename myfile FTP '    external-file    '    <    ftp-options    >;  

Assign a fileref to an external file accessed by TCP/IP SOCKET in either client or server mode.

FILENAME with URL specifier

  filename myfile SOCKET '    hostname: portno    '    <    tcpip-options    >;  

or

  filename myfile SOCKET '    :portno    ' SERVER    <    tcpip-options    >;  

Assign a fileref to an external file accessed by URL.

FILENAME with SOCKET specifier

  filename myfile URL '    external-file    '    <    url-options    >;  

See SAS Language Reference: Dictionary for detailed information about each of these statements.




SAS 9.1.3 Language Reference. Concepts
SAS 9.1.3 Language Reference: Concepts, Third Edition, Volumes 1 and 2
ISBN: 1590478401
EAN: 2147483647
Year: 2004
Pages: 258

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net