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
How to convert a numeric variable to a character variable?
what is transformation in sas data integration? : Sas-di
How would you determine the number of missing or nonmissing values in computations?
What is the purpose of _character_ and _numeric_?
How to read an input file in sas?
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
how are numeric and character missing values represented internally? : Sas programming
Tell e how how dealt with..
How do you connect the desktop application to metadata server? : sas-grid-administration
What do you know about sas and what we do? : sas-grid-administration
Explain data step in SAS
how many types prompting framework can be broken down to? : Sas-bi
What is the general format of function in sas? : sas-grid-administration
how to debug and test the sas program? : Sas-administrator
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro