How would you code the criteria to restrict the output to be
produced?

Answers were Sorted based on User's Feedback



How would you code the criteria to restrict the output to be produced?..

Answer / aravind rangaraj

use _null_ in data statemnet when u dont want to create
dataset.to restrict the output to be produced, close the
ods listing destination and this is default destination
and you can also restrict the output using no print option
in some procs such as means,sql,etc...

Is This Answer Correct ?    12 Yes 0 No

How would you code the criteria to restrict the output to be produced?..

Answer / ganesh

In my view use noprint option to restrict the output to be
produce
data g;
input name$ no sal;
datalines;
a 1 2500
b 2 3500
;
proc print data=g noprint;
run;

Is This Answer Correct ?    11 Yes 2 No

How would you code the criteria to restrict the output to be produced?..

Answer / neha

ODS OUTPUT CLOSE:

Is This Answer Correct ?    5 Yes 2 No

How would you code the criteria to restrict the output to be produced?..

Answer / akilan

In Jothi Sankar's answer,

First Choice is correct.

In second choice instead of 'OUT', have to use 'THEN OUTPUT'

Third choice is not correct one.

Is This Answer Correct ?    2 Yes 1 No

How would you code the criteria to restrict the output to be produced?..

Answer / linus

1.obs is one option.
2.in input statement we can restrict the variables we need.

Is This Answer Correct ?    1 Yes 0 No

How would you code the criteria to restrict the output to be produced?..

Answer / sanjeev

proc sql;
select * from sashelp.class;
quit;

gives you an output.


proc sql noprint;
select * from sashelp.class;
quit;

no errors and output is restricted.

Is This Answer Correct ?    0 Yes 0 No

How would you code the criteria to restrict the output to be produced?..

Answer / sheetal

Using Where, IF-then-else statements

Is This Answer Correct ?    1 Yes 5 No

How would you code the criteria to restrict the output to be produced?..

Answer / sumalatha.ch

_null_ this is not give any output.and nowid option.

Is This Answer Correct ?    0 Yes 4 No

How would you code the criteria to restrict the output to be produced?..

Answer / 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

More SAS Interview Questions

Did you used proc lifetest? when?

2 Answers   Accenture, Parexel, Quintiles,


What do you feel about hardcoding?

3 Answers   Pfizer,


What is interleaving in SAS?

0 Answers  


Mention the validation tools used in SAS?

0 Answers  


What is the difference Using & and && in the macro variables

5 Answers   Accenture,


what is slowly changing dimension? : Sas-di

0 Answers  


what is AE onset date and what is RDS?

4 Answers   Accenture,


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.

10 Answers   Accenture,


how to read character value without using substr function in sas ?

3 Answers  


Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.

2 Answers   Accenture,


what is sas and what are the functions? : Sas-administrator

0 Answers  


What are the different versions of sas that you have used until now? : sas-grid-administration

0 Answers  


Categories