Chapter Contents

Previous

Next
INCLUDE

INCLUDE



Copies lines from an external file into a SAS window

Windows specifics: valid options


Syntax
Details
See Also

Syntax

INCLUDE file-specification <portable-options> <host-options>

file-specification
specifies a valid Windows external file specification as documented in Referencing External Files

portable-options
specifies one or more portable options, which are documented under the INCLUDE command in SAS online Help.

host-options

BLKSIZE=block-size
BLK=block-size
specifies the number of bytes that are physically read or written in an I/O operation. The default is 8K. The maximum is 1M.

LRECL=record-length
specifies the record length (in bytes). Under Windows, the default is 256. The value of record-length can range from 1 to 1,048,576 (1 megabyte).

NOTAB
is used only in the context of Dynamic Data Exchange. This option enables you to use non-tab character delimiters between variables. For more information on this option, see Using the NOTAB Option with DDE.

RECFM=record-format
controls the record format. Under Windows, the following values are valid:
F indicates fixed format.
N indicates binary format and causes the file to be treated as a byte stream.
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 is the default.


Details

The INCLUDE command copies the entire contents of an external file into the active window.

If you do not specify a file-specification, then SAS uses the filename from the previous FILE or INCLUDE command. In this case, SAS first asks you if you want to overwrite the file. If you have not issued any FILE or INCLUDE commands, you receive an error message indicating no default file exists.

See Also


Chapter Contents

Previous

Next

Top of Page

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