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

What is the difference between SAS functions and procedures?

653


What is run-group processing?

620


Explain by-group processing?

587


In sas admin differentiate between roles and capabilities? : sas-grid-administration

552


How to convert a numeric variable to a character variable?

628






what is program data vector? : Sas-administrator

606


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

3897


What is the basic structure of a sas program?

592


what is the use of proc sql? : Sas programming

588


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

1682


What are the different operating system platforms in which we can use sas? : sas-grid-administration

586


how would you determine the number of missing or nonmissing values in computations? : Sas programming

650


explain the use of % includes a statement in sas? : Sas-administrator

543


what is operational data and operational system? : Sas-di

631


What is your favorite all time computer book? Why?

2044