If you are reading data with DATALINES, or have source statements that are longer than 256 bytes, the data or the source statement is truncated at 256 bytes.
If source statements are longer than 256 bytes, an error might be generated based on any improper syntax resulting from the source statement truncation. A warning message might also be issued indicating that a record was truncated.
If source statements are brought into the program with a %INCLUDE statement, you can change the default 256-byte length by specifying the LRECL= option directly in the %INCLUDE statement following the forward slash (/). For example:
You can also use a FILENAME statement to assign a fileref to the file that contains the source code and specify an appropriate value for the LRECL= option, then use the fileref in the %INCLUDE statement. For further information about the %INCLUDE statement, as well as limitations on length or possible truncated data, records, or source lines, see the following SAS Notes:
If the DATALINES are longer than 256 bytes, the variables whose values are past the 256th byte in the logical record are assigned missing values. SAS does not generate a message in the SAS Log indicating that one or more records were truncated. In addition, you cannot specify the LRECL= option on the INFILE statement with the DATALINES file specification to prevent the truncation.
To circumvent this problem, do one of the following:
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | Microsoft Windows 8.1 Enterprise 32-bit | ||
z/OS | ||||
z/OS 64-bit | ||||
OpenVMS VAX | ||||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft® Windows® for x64 | ||||
OS/2 | ||||
Microsoft Windows 8 Enterprise 32-bit | ||||
Microsoft Windows 8 Enterprise x64 | ||||
Microsoft Windows 8 Pro 32-bit | ||||
Microsoft Windows 8 Pro x64 | ||||
Microsoft Windows 95/98 | ||||
Microsoft Windows 8.1 Enterprise x64 | ||||
Microsoft Windows 8.1 Pro | ||||
Microsoft Windows 8.1 Pro 32-bit | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows Server 2003 for x64 | ||||
Microsoft Windows Server 2008 | ||||
Microsoft Windows Server 2008 R2 | ||||
Microsoft Windows Server 2008 for x64 | ||||
Microsoft Windows Server 2012 Datacenter | ||||
Microsoft Windows Server 2012 R2 Datacenter | ||||
Microsoft Windows Server 2012 R2 Std | ||||
Microsoft Windows Server 2012 Std | ||||
Microsoft Windows XP Professional | ||||
Windows 7 Enterprise 32 bit | ||||
Windows 7 Enterprise x64 | ||||
Windows 7 Home Premium 32 bit | ||||
Windows 7 Home Premium x64 | ||||
Windows 7 Professional 32 bit | ||||
Windows 7 Professional x64 | ||||
Windows 7 Ultimate 32 bit | ||||
Windows 7 Ultimate x64 | ||||
Windows Millennium Edition (Me) | ||||
Windows Vista | ||||
Windows Vista for x64 | ||||
64-bit Enabled AIX | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled Solaris | ||||
ABI+ for Intel Architecture | ||||
AIX | ||||
HP-UX | ||||
HP-UX IPF | ||||
IRIX | ||||
Linux | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
OpenVMS on HP Integrity | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |
Type: | Usage Note |
Priority: | medium |
Topic: | Data Management ==> Access ==> External I/O SAS Reference ==> Statements ==> Program Control ==> %INCLUDE Common Programming Tasks |
Date Modified: | 2010-05-17 13:36:02 |
Date Created: | 2001-03-06 16:37:00 |