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:
%include "c:\myfiles\mySASsource" / lrecl=500;
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: