I am a beginner and I was trying input styles for practice. I wrote the following code: data test;
/* input name $ age Salary comma7. test1-test4 2.;*/
input name $ age Salary comma7. test1 2. test2 2. test3 2. test4 2.;
datalines;
abc 15 100,000 10 11 12 13
xyz 16 120,000 13 11 12 12
;
run;
proc print data = test;
run; As expected, i get the following code However, on running the code using the second input statement (which is commented out in the code), I get the following result: As per my knowledge, both the input statements must be synonymous, then how can they give different results? The SAS version I'm using is 9.2. Can anybody throw some light on why SAS is acting so weird.
... View more