Hi everyone, Does it matter when SAS reads raw data from external file or from datalines written in program? I thought it makes no difference at first, but I am not sure after I tried the example below. For example, an external files contains variable-length records: ----+----1----+----2 22 333 4444 55 66666 The DATA step uses a numeric informat 5. data numbers; infile '/folders/myfolders/Crackman/external files.txt'; input TestNumber 5.; run; proc print data=numbers; title 'Test DATA Step on External Files'; run; When SAS read raw data from external file, the result is: Obs TestNumber 1 333 2 55 3 55555 However, if SAS reads raw data from datalines written in the program, it has different results. data numbers; infile datalines; input TestNumber 5.; datalines; 22 333 4444 55 66666 ; proc print data=numbers; title 'Test DATA Step'; run; The result is Obs TestNumber 1 22 2 333 3 4444 4 55 5 66666 So, what makes the difference in the results? Thanks in advance.
... View more