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

We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?

5 Answers  


Describe the function and utility of the most difficult SAS macro that you have written?

0 Answers   Oracle,


Hi, I need to create a SAS Map of USA using SAS Graphs(Proc Gmap).The data i have dosent contain any co-ordinates of USA cities or counties or states, and the zip codes are diffrent in the data i have from the zip code in the Maps.US dataset in the Maps Library for SAS MAPS. the data i have is a sales report. i have to generate the maps according to the states,cities aligned in the sales data, HELP Appriciated

1 Answers  


what is the use of proc sql? : Sas programming

0 Answers  


How to read an input file in sas?

0 Answers  






What are all the problems you faced while validating tables and reports?

0 Answers   Accenture, Quintiles,


Describe a time when you were really stuck on a problem and how you solved it?

0 Answers   DELL,


What is the order of evaluation of the comparison && logical && relational operators:?

2 Answers   CitiGroup,


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

5 Answers  


tell me about intnx, intcx functions?

4 Answers   CitiGroup,


Explain the difference between nodup and nodupkey options?

0 Answers  


what are some differences between proc summary and proc means? : Sas programming

0 Answers  


Categories