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
Which command is used to perform sorting in sas program?
What are types of transport files?
What is the length assigned to the target variable by the scan function?
How is character variable converted into numeric variable and vice versa?
Explain the main difference between the sas procedures and functions? : Sas-administrator
Describe crosslist option in tables statement?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
How to test the debugging in sas?
how are numeric and character missing values represented internally? : Sas programming
What are pdv and it functions?
What is run-group processing?
what is transformation in sas data integration? : Sas-di
Can you execute macro within another macro? : sas-macro
How are numeric and character missing values represented internally?