Includes and executes SAS statements and data lines.
Valid in: | anywhere in a SAS program |
Windows specifics: | source, if a file specification is used; valid options for encoding-value and host-options |
See: | %INCLUDE Statement in SAS Statements: Reference |
This version is a simplified version of the %INCLUDE statement syntax. For the complete syntax and its explanation, see the %INCLUDE statement in %INCLUDE Statement in SAS Statements: Reference.
describes the location of the information that you want to access. The two possible sources are a file specification or internal lines. The asterisk (*) cannot be used to specify keyboard entry if you use the Enhanced Editor in the Microsoft Windows operating environment. The file specification can be any of the file specification forms discussed in Referencing External Files.
specifies the encoding to use when reading from the specified source. The value for ENCODING= indicates that the specified source has a different encoding from the current session encoding.
consists of statement options that are valid under Windows. Remember to precede the options list with a forward slash (/). The following options are available under Windows:
specifies the number of bytes that are physically read or written in an I/O operation. The default is 8K. The maximum is 1M.
is used only in the context of named pipes. This option indicates whether the client is to wait if no data is currently available.
is used only in the context of named pipes. This option indicates the type of pipe; BYTE is the default value.
is used only in the context of named pipes and is valid only when defining the server. This option indicates that the server should try to connect to the next client if an end-of-file (EOF) character is received from a client.
is used in the context of I/O operations on variable record format files. When this option is specified, any occurrence of ^Z is interpreted as character data and not as an end-of-file marker.
specifies the record length (in bytes). Under Windows, the default is 32767. The value of record-length can range from 1 to 1,073,741,823 ( 1 gigabyte).
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, see Using the NOTAB Option with DDE.
controls the record format. The following values are valid under Windows:
F | indicates fixed format. |
N | indicates binary format and causes the file to be treated as a byte stream. If LRECL is not specified, by default SAS reads 32767 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. |