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 debug and test the sas program? : Sas-administrator
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
what do the pad and dim functions do? : Sas programming
what is sas data set?
Compare sas with other data analytics tools.
What do the SAS log messages "numeric values have been converted to character" mean?
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.
what versions of sas have you used (on which platforms)? : Sas programming
what is treatment emergent events and treatment emregent adverse event
what is broad cast agent? : Sas-bi
What are the functions which are used for character handling functions?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
what is program data vector? : Sas-administrator
Describe the function and untility of the most difficult SAS macro that you have written.
Give an example where SAS fails to convert character value to numeric value automatically?