Hi Tom, can you please tell me why this program giving error.: Data Test; INPUT accnum $ fname $ lname $ @@ ; cards; 122232 Johny Smith 132343 Peter Smith 142434 Thomas Joseph; run;
... View more
Ok I got It, The loop will run for the 5 times not 4, as we will also include 2020-2025 in loop. So answer should be 5*5= 25 Is It correct ?
... View more
both loops will run 5 times .. even If we do not mention by 1, by default they will run 5 times. but I still dint get the Idea :smileyconfused:
... View more
Acc to me as mentioned in the question year= 2000-2020 by 5 , So therefore Do loop will execute for 4 times (2000-2005, 2005-2010, 2010-2015 and 2015-2020). and as there are 5 observations in input data set so, total observations = 4*5 = 20 Is It correct ? Thanks,
... View more
I am sorry for that... here is is the complete question The SASDATA.BANKS data set has five observations when the following SAS program is submitted; libname sasdata ‘SAS-data-library’; data allobs; set sasdata.banks; capitaI=0; do year = 2000 to 2020 by 5; capital + ((capital+2000) * rate); output; end; run; How many observations will the ALLOBS data set contain? A. 5 B. 15 C. 20 D. 25
... View more
Hi Cynthia, I have been following your explanations and it helped me a lot. I am going to write my SAS base exam very soon but have some doubts. So if you can clear one of them that would help me a lot. see the following question: data allobs; set sasdata.banks; capitaI=0; do year = 2000 to 2020 by 5; capital + ((capital+2000) * rate); output; end; run; How many observations will the ALLOBS data set contain? A. 5 B. 15 C. 20 D. 25 I know the answer but want to know the exact explanation. Thanks,
... View more