![]() | ![]() | ![]() |
There are many ways to submit SAS code and the length limitation is
different depending on how you submit your code. The following are
the length limitations as imposed by the various submission methods
prior to SAS 9.2 and for SAS 9.2 and beyond:
* Submitting a SAS program via a batch file imposes a maximum
length limit of 256 characters prior to SAS 9.2. For SAS 9.2
and beyond you can use the new SAS system option of LRECL= to
specify a range of 1-32767 to use for reading and writing
external files. The default for the LRECL= system option is
256. This option is valid in the configuration file, at SAS
invocation, the OPTIONS statement, or the SAS Systems Option
window. Under z/OS, the LRECL= system option is recognized only
for reading and writing HFS files.
* Submitting a SAS program from the Program Editor imposes a
maximum length limit of 384 characters prior to SAS 9.2. For
SAS 9.2 and beyond you can use the new SAS system option of
DMSPGMLINESIZE= to specify a range of 136-960 to specify the
maximum number of characters in a Program Editor line. The
default for the DMSPGMLINESIZE= system option is 136. This
option is valid in the configuration file or at SAS invocation.
* Submitting a SAS program from the Enhanced Editor imposes a
maximum length limit of 960 characters prior to SAS 9.2. For
SAS 9.2 and beyond the maximum length is extended to 6,000
characters.
* Submitting SAS code using the IOM submit via the metadata server
or a stored process server imposes a maximum length limit of
2,000 characters prior to SAS 9.1. For SAS 9.1 the maximum
length limit extends to 6,000 characters. For SAS 9.2 and
beyond the maximum length limit extends to 32,767 characters.
* Submitting SAS code using a %INCLUDE statement imposes a maximum
length limit of 2,000 characters prior to SAS 9.1. For SAS 9.1
and beyond the maximum length limit is 6,000 characters. For
further information on %INCLUDE see SAS Notes:
#004448, #008328, and #039619.
For specific details under your operating system, see the SAS
Companion documentation for your operating environment.
| Product Family | Product | System | SAS Release | |
| Reported | Fixed* | |||
| SAS System | Base SAS | Microsoft Windows NT Workstation | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |||
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |||
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |||
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |||
| Microsoft Windows XP Professional | 9.1 TS1M0 | |||
| Microsoft Windows 2000 Server | 9.1 TS1M0 | |||
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |||
| Microsoft Windows 2000 Professional | 9.1 TS1M0 | |||
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |||
| Type: | Usage Note |
| Priority: | medium |
| Topic: | SAS Reference ==> Procedures ==> EDITOR Common Programming Tasks ==> Reading and Writing External Data Common Programming Tasks ==> Reading and Writing External Data ==> EFI Common Programming Tasks ==> Reading and Writing External Data ==> Export Wizard Common Programming Tasks ==> Reading and Writing External Data ==> File Options Common Programming Tasks ==> Reading and Writing External Data ==> Hierarchical Files Common Programming Tasks ==> Reading and Writing External Data ==> Multi-panel Common Programming Tasks ==> Reading and Writing External Data ==> Multiple Files Common Programming Tasks ==> Reading and Writing External Data ==> with PROC IMPORT Common Programming Tasks ==> Reading and Writing External Data ==> Zipped Files Common Programming Tasks Software Components ==> Display Manager SAS Reference ==> System Options SAS Reference ==> DATA Step SAS Reference ==> Statements ==> File-handling ==> DATALINES SAS Reference ==> Statements ==> Operating Environment SAS Reference ==> Statements ==> Program Control ==> %INCLUDE SAS Reference ==> Statements ==> Data Access ==> FILENAME |
| Date Modified: | 2009-01-29 10:39:45 |
| Date Created: | 2005-08-05 15:41:52 |



