How would you code the criteria to restrict the output to be
produced?
Answer Posted / jothi sankar
--> Using VAR can restrict which varibles have to be output
--> Using differnt data sets for each main condition
Eg:
DATA
MyData2
MyData3
MyData4
;
SET MyData1;
if Dept = 'Computer' OUT MyData2;
else if Dept = 'Electronic' OUT MyData3;
else if Dept = 'Chemical' OUT MyData4;
RUN;
--> Using PRINTEM for viewing datas individually
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What is PDV?
Give e an example of..
Explain substr function?
: and & modifiers.
What does PROC print, and PROC contents do?
Do you know the features of sas?
Which date function advances a date, time or datetime value by a given interval?
How do you use the do loop if you don’t know how many times you should execute the do loop?
how will you locate the sas platform applications? : Sas-bi
What would you change about your job?
for whom is sas data integration studio designed? : Sas-di
How long can a macro variable be? A token? : sas-macro
If you could design your ideal job, what would it look like?
why is a stop statement needed for the point=option on a set statement? : Sas programming
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?