問題在于默認(rèn)緩沖區(qū)太小了,你可以在infile語(yǔ)句后加入lrecl=32767,即
data logout;
infile 'F:\logout.txt' delimiter=',&}' missover lrecl=32767;
input #1 @'t1:' host :$20.
sas help中說到:”LRECL=logical-record-length
specifies the logical record length.
Default:Dependent on the file characteristics of your operating environment
Restriction:LRECL is not valid when you use the DATALINES file specification.
Interaction:Alternatively, you can specify a global logical record length by using the LRECL= System Option in SAS System Options: Reference.
Operating environment:Values for logical-record-length are dependent on the operating environment. For details, see the SAS documentation for your operating environment.
Tip:LRECL= specifies the physical line length of the file. LINESIZE= tells the INPUT statement how much of the line to read. “
|