this looks really interesting,
I am still trying to figure things out with SAS , and making the transition from C++, it appears that SAS do loops works somehow different than C++ for loops. Are SAS Do loops always within the Data Step?
Also what does count ++ 1; stand for ?
Is it the...
btw, I tried it this way, but then the new variable s would be 3 for the entire column.
data iris5;
set iris1;
do i=1 to 150;
if MOD(i,3)= 1 THEN s=1;
else if MOD(i,3)= 2 THEN s=2;
else if MOD(i,3)= 0 THEN s=3;
end;
run;
Hi all,
I am trying to read the following lines with observations seperated by commas and missing values.
Is it possible to use the dlm option and dsd in the input statement ?
data test1;
input n1 n2 n3 dlm =',' option ='dsd';
datalines;
23,34,345
23,4,45
2,3,5
3,4,545
345,,345
;
run;
proc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.