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

If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?

3 Answers   Accenture,


Does anybody have SAS Training manual or documentation or can you refer me any book to have better understanding on SAS. I am fresher to SAS tool. (Ready to pay)

4 Answers  


explain the key concept of sas? : Sas-administrator

0 Answers  


How substr function works in sas?

0 Answers  


What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?

8 Answers  


What is the difference between verification and validation?

9 Answers   Oracle,


What is the basic structure of a sas program?

0 Answers  


What is _n_?

22 Answers  


Explain the difference between informat and format with an example.

0 Answers  


What is the purpose of trailing @ and @@? How do you use them?

0 Answers  


Do you know the features of sas?

0 Answers  


what is the diff. b/w proc means and proc summary?

12 Answers   CitiGroup,


Categories