Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

In proc transpose and data step with arrays which one you pick?

0 Answers   Accenture, Quintiles,


Do you prefer Proc Report or Proc Tabulate? Why?

9 Answers   Oracle,


How would you include common or reuse code to be processed along with your statements?

5 Answers   PSCI,


How would you code a merge that will keep only the observations that have matches from both sets.

5 Answers   Accenture, Bank Of America,


How to include or exclude specific variables in a data set?

0 Answers  


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

0 Answers  


how do i read multiple spaces in datasets? eg: vijaya raghava perumal.I tried with using & but it workss if its vijaya raghava but not for raghava perumal.how to do this?

8 Answers   Wipro, Xansa,


How the Excel file enter into the SAS environment without Code of Infile & Import procs,if i have no file Conversion?

3 Answers   Reddy Labs,


how to extract data from SAP servers? Is like oracle servers or any other methods to extract please reply me.

1 Answers  


diff between nodup rec and ondup key???

3 Answers   AON, Sciformix,


Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT

0 Answers  


i have one dataset data l; input name: $ 25; cards; manoj is a good boy to krishna krishna is a god boy to malli malli is good boy to ramana ques: here i want "manoj" observations nubers

3 Answers   SAS,


Categories