Chapter Contents

Previous

Next
SAS Companion for the OS/390 Environment

Specifying Physical Files

Wherever you specify the name of a physical file internally (in a SAS LIBNAME or FILENAME statement, LIBNAME or FILENAME function, in a DATA step, or in a SAS procedure, for example), the name can be in any of these forms:

Here are examples of the INCLUDE command that illustrate the various ways you can specify physical files:

INCLUDE MYPGM
MYPGM is a fileref that was previously associated with the external file.

INCLUDE MYPGM(PGM1)
PGM1 is a member of the partitioned data set that is associated with the fileref MYPGM.

INCLUDE 'USERID.TEST.PGMS'
sequential data set name.

INCLUDE 'USERID.TEST.PGMS(AAA)'
data set name with member specified.

INCLUDE '.TEST.MYPGM'
Assuming that the FILESYSTEM= system option is set to MVS, SAS prepends this data set name with the value of the SAS system option SYSPREF=, which defaults to the your system prefix. If FILESYSTEM=HFS, SAS looks into your default UNIX System Services directory for the "hidden" file .TEST.MYPGM.

INCLUDE 'HFS:/u/userid/mypgms/mypgm1.c'
name of a UNIX System Services file in the hierarchical file system, represented by a partially qualified path. SAS searches for the file in the default HFS directory for that user. If the FILESYSTEM= system option was set to HFS and if MYPGM was a standard OS/390 data set, the alternate syntax of MVS: would be required above (see FILESYSTEM=).

INCLUDE 'pgms/mypgms/mypgm1.c'
This is another example of a relative path to a UNIX System Services file. Any file name containing a slash (/) is assumed to be in UNIX System Services, regardless of the value of the FILESYSTEM= system option.


Handling of Nonstandard Member Names

You can use the SAS system option FILEEXT= to specify how extensions in member names of partitioned data sets are to be handled. See FILEEXT= for more information.


Chapter Contents

Previous

Next

Top of Page

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