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

OS/390 specifics: host options, devices


Syntax
See Also

Syntax

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

fileref
specifies the fileref to assign to an external file.

filename
specifies the external file. Specifying a blank file-name 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:

DUMMY
output to the file is discarded

PIPE
an unnamed pipe

PLOTTER
an unbuffered graphics output device

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. These options can be categorized into several groups. For details, see the following sections:

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.


See Also


Chapter Contents

Previous

Next

Top of Page

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