|
One @ sign means conditional input. That is, the data record from the raw data will be saved in the input buffer and will not be saved to the corresponding variable. Only when the second "input" statement is encountered can the raw data be read into the SAS data set.
For double @@, sometimes each line of the raw data is longer than the size of SAS input variables, and the input will only stop once the end of line is encountered in the raw data set. For example,
data example input group $ score @@; datalines; 1 100 1 200 1 300 2 120 2 210 2 320 3 310 3 420 3 540; run;
proc print; run;
In the example above you need to use double trailing @@ sign since each row of the embedded data has three observations
The output of the example looks like:
ob group score 1 1 100 2 1 200 3 1 300 4 2 120 5 2 210 6 2 320 7 3 310 8 3 420 9 3 540
|