Chapter Contents

Previous

Next
INCLUDE

INCLUDE



Copies the entire contents of an external file into the current window

Language element: command
OpenVMS specifics: valid values for file-specification


Syntax
Details
Example
See Also

Syntax

INCLUDE <filename> <option-list>

file-specification
can be any of the following:

option-list
names portable options for the INCLUDE command. For more information about these options, see the INCLUDE command in the SAS online Help.


Details

The INCLUDE command copies the entire contents of an external file into the current 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. For a list of default file types used for the INCLUDE command, see Default File Types.


Example

Suppose you have previously specified the following FILENAME statement:

filename myfile '[mydir]oranges.dat';
The following INCLUDE command includes the file ORANGES.DAT in the PROGRAM EDITOR window:
include myfile

See Also


Chapter Contents

Previous

Next

Top of Page

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