Valid in: | anywhere in a SAS program |
Windows specifics: | Valid values for access-method; valid values for device-type; valid filenames for external-file; valid values for encoding; valid options in host-option-list |
See: | FILENAME Statement in SAS Statements: Reference |
This version is a simplified version of the FILENAME statement syntax. For the complete syntax and its explanation, see the FILENAME statement in FILENAME Statement in SAS Statements: Reference.
filename groupHP printer "HP LaserJet 4si, 1st floor" altdest= "C:\My SAS Files\Printer output\out.prn";uses the printer driver that is 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.
EOF | returns an end-of-file (EOF) character when a time-out occurs. This behavior is the default. The EOF character causes the current DATA step to terminate. |
WAIT | instructs the communications port to wait forever for data. This value overrides the time-out. In this case, no record is returned to the DATA step until data are available. This action can cause your program to go into an infinite loop, so use this value with caution. |
ZERO | returns a record length of 0 bytes when a time-out occurs. However, the DATA step does not terminate; it simply tries to read data again. |
MAX | opens the DOS window maximized |
MIN | opens the DOS window minimized |
NORMAL | opens the DOS window using the default for the machine. |
ON | specifies to discard null bytes when they are received. |
OFF | specifies not to discard null bytes when they are received. OFF is the default value. |
F | indicates fixed format. |
N | indicates binary format and causes the file to be treated as a byte stream. N is not valid for the PIPE or the NAMEPIPE device types. If LRECL is not specified, by default SAS reads 256 bytes at a time from the file. |
P | indicates print format. |
S370V | indicates the variable S370 record format (V). |
S370VB | indicates the variable block S370 record format (VB). |
S370VBS | indicates the variable block with spanned records S370 record format (VBS). |
V | D | indicates variable format. This format is the default. |