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


Please Help Members By Posting Answers For Below Questions

how to generate the test data in sas without input data? : Sas-administrator

801


How do you delete duplicate observations in sas?

795


What is the maximum length of the macro variable? : sas-macro

842


Which command is used to save logs in the external file?

791


Give some examples where proc report’s defaults are different than proc print’s defaults?

799


What is the sas data set? : sas-grid-administration

753


name the scheduler for scheduling job and explain the scheduler? : Sas-di

801


how are numeric and character missing values represented internally? : Sas programming

846


Explain what is data step?

918


Compare sas with other data analytics tools.

784


I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

1910


Mention common programming errors committed in sas ?

829


What are the differences between proc means and proc summary?

797


What are the difference between ceil and floor functions in sas?

1031


What system options would you use to help debug a macro? : sas-macro

850