![]() Chapter Contents |
![]() Previous |
![]() Next |
| FILENAME |
| Valid: | anywhere in a SAS program |
| OS/2 specifics: | Valid values for access-method; valid values for device-type; valid filenames for external-file; valid options in host-option-list |
| Syntax | |
| Details | |
| See Also |
Syntax |
| FILENAME fileref <device-type> 'external-file' <host-option-list>; |
| FILENAME fileref device-type <'external-file'> <host-option-list>; |
| FILENAME fileref <device-type> ('directory-1'<,...directory-n'>) <host-option-list>; |
For examples of using filerefs in member name syntax (also called aggregate syntax), see Assigning a Fileref to a Directory. For the rules the SAS System uses when accessing files through filerefs, see Understanding How Concatenated Directories Are Accessed.
For an example of specifying a device type in the FILENAME statement, see Advanced External I/O Techniques.
filename groupHP printer "HP LaserJest 4si, 1st floor";
filename groupHP printer
"HP LaserJest 4si, 1st floor"
altdest=
"C:\My SAS Files\Printer output\out.prn";
uses the printer driver associated with the named printer (an HP LaserJet 4si) to create the output in
out.prn. No output is actually sent to the printer when you use this fileref.This host option is valid only if you specify the COMMPORT device-type keyword.
| Details |
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.