Chapter Contents

Previous

Next
PATH=

PATH=



Specifies the path and filename of the file to be accessed.

Required statement
Applies to: access descriptor


Syntax
Details

Syntax

PATH= 'path-and-filename<.PC-file-extension>' |
<'>filename<'> | fileref ;


Details

The PATH= statement indicates the path and name of the file you want to access. The length of the filename and its other conventions can vary with the operating system. See the host documentation for your operating environment for more information.

For compatibility, place the PATH= statement immediately after the CREATE statement and before any other database-description statements when creating access descriptors. See CREATE for more information.

You can specify PATH=statement with one of the following arguments:

'path-and-filename<.PC-file-extension>'
specifies the fully qualified path and filename. You must enclose the entire path and filename in quotes, including the appropriate PC file extension, such as .DBF, .DIF, .WK1, .WK3, WK4, or .XLS. If you omit the file extension, SAS/ACCESS software supplies it for you.

<'>filename<'>
specifies the name of a file. The file must be located in your current (default) directory. If no extension is specified, the SAS/ACCESS interface supplies it for you. If the filename includes characters that are invalid in SAS names, such as the dollar sign ($) or if the filename begins with a number, you must enclose the entire filename in quotes.

fileref
specifies a fileref that references the path and name of the file. (Assigning filerefs with the FILENAME statement is described in SAS Language and Procedures: Usage.)


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.