|Statements under OpenVMS|
|Valid:||anywhere in a SAS program|
|OpenVMS specifics:||valid values for encoding-value and source, if a file specification is used|
|See:||%INCLUDE Statement in SAS Language Reference: Dictionary|
|%INCLUDE source-1 < . . . source-n></<ENCODING='encoding-value'><host-options>>;|
describes the location of the information that you want to access with the %INCLUDE statement. The three possible sources are an external file specification, previously entered SAS statements from your SAS session, or a keyboard entry. The file specification can be any of the file specification forms discussed in Identifying External Files to SAS.
Note: When you use aggregate syntax and the member name contains a leading digit, enclose the member name in quotation marks. If the member name contains a macro variable reference, use double quotation marks.
This section discusses only external file specifications. For information about including lines from your terminal or from your SAS session, see Recalling SAS Statements and the SAS statements portion of SAS Language Reference: Dictionary.
|Restriction:||The maximum line length is 32K bytes.|
For valid encoding values, see Encoding Values in SAS Language Elements in SAS National Language Support (NLS): Reference Guide.
The S370 values are valid with files laid out as z/OS files only. That is, files that are binary, have variable-length records, and are in EBCDIC format. If you want to use a fixed-format z/OS file, first copy it to a variable-length, binary z/OS file.
The %INCLUDE statement is most often used when you are running SAS in interactive line mode, noninteractive mode, or batch mode. Although you can use the %INCLUDE statement when you are running SAS using windows, it might be more practical to use the INCLUDE and RECALL commands to access data lines and program statements, and submit these lines again.
Note: If you specify any options in the %INCLUDE statement, remember to precede the options list with a forward slash (/).
LRECL= System Option in SAS Language Reference: Dictionary