Hey everyone,
I am thankful for your help and kind cooperation.I really appreciate it. I have some questions, I just wanna make sure if I understand some point in SAS correctly !
First question is The OUTPUT statement is allowed in the DO block?
for Example,
IF Type = 'D' THEN DO;
OUTPUT;
OUTPUT;
END;
ELSE OUTPUT;
RUN;
The Second question is regarding to the SET statement is specifies an input data set in the data step or
in Proc Sort step ?
I think it specifies an input data set in the DATA step
Thank you on advance for your time,
First question is The OUTPUT statement is allowed in the DO block?
The easiest way to find out is to try it.
The Second question is regarding to the SET statement is specifies an input data set in the data step or
in Proc Sort step ?
Again, trying it would be faster than posting a question in this community and then waiting for an answer. And probably you'd have the satisfaction of learning the answer rather than being told the answer.
Are these questions some exam that someone has given you?
Are they YES/NO, Multiple Choice or open response questions?
The OUTPUT statement is allowed:
The SET statement is:
The SORT procedure :
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.