/* We read in a data set that is 350 columns */ /* long without any return characters in it */ /* It's record length is 350, which is longer*/ /* than SAS's default. The record has no */ /* delimiters, and that needs to be fixed too*/ * This won't work; data a; infile '/home/grego1/STAT 540/LongRecord.txt'; input A1-A350; run; * This won't work either; data a; infile '/home/grego1/STAT 540/LongRecord.txt' lrecl=350; input A1-a350; run; * This works; data a; infile '/home/grego1/STAT 540/LongRecord.txt' lrecl=350; input (A1-A350) (1.0); run; /* I broke each record into 5 pieces, each */ /* 70 characters long */ data a; infile '/home/grego1/STAT 540/\MediumRecord.txt'; input (A1-A70) (1.0) / (A71-A140) (1.0) / (A141-A210) (1.0) / (A211-A280) (1.0) / (A281-A350) (1.0); run; /* Here is the same data with the line input order shuffled */ data b; infile '/home/grego1/STAT 540/MediumRecord.txt'; input (A1-A70) (1.0) #3 (A141-A210) (1.0) #2 (A71-A140) (1.0) #4 (A211-A280) (1.0) / (A281-A350) (1.0); run;