Previous Page | Next Page

Using External Files and Devices

Accessing Remote External Files under OpenVMS


How to Access a Remote File across DECnet

SAS supports access to external files across DECnet. You can create or read external files on any OpenVMS machine to which you have access in your DECnet network.

An external file that resides on another OpenVMS node can be specified in any statement that contains a quoted file specification. You can also define an OpenVMS logical name to point to a file on another node and then use the OpenVMS logical name in your SAS session as described in Assigning OpenVMS Logical Names to External Files. You can also use the FILENAME statement to assign a fileref to a remote external file. Within the quoted string, DEFINE command, or FILENAME statement, use the same syntax that you would use in any OpenVMS file specification to access a target node.

Note:   The MBC= and MBF= external I/O statement options are not supported across DECnet.  [cautionend]


Example 1: Accessing a Remote File

To access the file TEST.DAT on node VMSNODE, specify the following FILENAME statement:

filename mine 'vmsnode::mydisk:[mydir]test.dat';


Example 2: Including the User Name and Password in the File Specification

To include a user name and password of an account on the target node as part of the file specification, use the following FILENAME statement:

filename mine 'vmsnode "user-id 
             password"::mydisk:[mydir]test.dat';


Additional Documentation on DECnet Access

For more information about DECnet access and file specification syntax, see DECnet for OpenVMS Guide to Networking, DECnet for OpenVMS Networking Manual, and the OpenVMS User's Manual.

Previous Page | Next Page | Top of Page