How do you read in the variables that you need?

Answers were Sorted based on User's Feedback



How do you read in the variables that you need?..

Answer / rajesh

If you need the required variables;
go for the condiation statments or input statment or keep
and drop options, and if it is in output then var statement
in the proc print.

Is This Answer Correct ?    3 Yes 0 No

How do you read in the variables that you need?..

Answer / vijai bhaskar

if u want u read particular variables in the data step by
using input statement

Is This Answer Correct ?    2 Yes 0 No

How do you read in the variables that you need?..

Answer / ram

if u read priticular variables in data by using keep and
drop statements

Is This Answer Correct ?    2 Yes 0 No

How do you read in the variables that you need?..

Answer / harsha

Using with Var statment we can read the required variable.

Is This Answer Correct ?    1 Yes 0 No

How do you read in the variables that you need?..

Answer / natraj

In data step and Proc step you can use the data set options
such as KEEP= / DROP= .

ex: data xxx (keep=a); or data xxx ( drop= b c);
run;
proc print data=xxx (keep=a) or ( drop= b c);
run;
you can use the VAR STATEMENT in PRINT PROCEDURE to list
the desired varibles;

ex: proc print data= xxx;
var a ; /* put your desired variables */
run;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SAS Interview Questions

how can u extract,transform and loading?

2 Answers   CitiGroup,


what does the run statement do? : Sas programming

0 Answers  


what is broad cast agent? : Sas-bi

0 Answers  


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

1 Answers  


Tell e how how dealt with..

0 Answers   Wipro,






how to intersect the tables by using PROC MIXED?

1 Answers   CitiGroup,


do you need to know if there are any missing values? : Sas programming

0 Answers  


what is sas database server? : Sas-di

0 Answers  


How would you generate 1000 observations from a normal distribution with a mean of 50 and standard deviation of 20. How would you use PROC CHART to look at the distribution? Describe the shape of the distribution.

1 Answers  


define table lookup and how may ways it can be done...explian

3 Answers  


what is the diff b/w verification validation in sas

3 Answers   SAS,


What are MIs reports? what is the use of MIS reports and How can u generate the MIS reports in SAS? If any body know explain with the eg.

2 Answers   ABC, ASD Lab, CitiGroup,


Categories