data temp;
set test1(in = a) /* 2 observations*/
test2(in=b); /* 5 observations*/
if a and b;
run;
How many observations will be there in temp dataset?
a.) 2
b.) 5
c.) 7
d.) 0
Answer: 0
Please explain the reason behind this.
@Bulleride I'm going to assume you're studying for certification?
I've noticed quite a few questions that you've posted on here. I highly suggest that you do more research and google these issues rather than expect to get all your answers from here. Also, if you purchase the SAS Certification guide the examples have worked solutions, since I'm assuming you're working off free test bank questions that you found online somehow, which don't have worked solutions.
Also, take your time to perform these examples in a SAS session. You'll learn much more from doing it, rather than just reading and asking.
Good luck anyway!
There is not 1 1 , only 1 0 OR 0 1 .
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.