Chapter Contents

Previous

Next
FILENAME

FILENAME


Assigns or deassigns a fileref for an external file, a directory, or an output device and returns a value

CMS specifics: host options, devices, dir-ref


Syntax
See Also

Syntax

FILENAME (fileref, filename<,device <,host-options <,dir-ref>>>)

fileref
specifies the fileref to assign to an external file.

filename
specifies the external file. Specifying a blank filename deassigns one that was previously assigned.

device
specifies the type of device if the fileref points to an output device rather than to a physical file:

G3270
indicates that the output device is an IBM 3270 graphics data stream. This device type is available only with the SAS/GRAPH application.

GTERM
indicates that the output device is a graphics device that will be receiving graphics data; most device drivers use this value. This device type is available only with the SAS/GRAPH application.

PIPE
an unnamed pipe

PRINTER
a printer or printer spool file

TERMINAL
the user's terminal

TAPE
a tape driver.

host-options
are host-specific options that may be specified in the FILENAME statement. See FILENAME.

You can specify host options in any order following the file specification and the optional device specification. When specifying more than one option, use a blank space to separate each option. Values for options may be specified with or without quotes. However, if a value contains one of the supported national characters ($, #, or @), the quotes are required.

dir-ref
specifies the fileref that is assigned to the directory in which the external file resides.


See Also


Chapter Contents

Previous

Next

Top of Page

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