How do you read in the variables that you need?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / ram
if u read priticular variables in data by using keep and
drop statements
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / harsha
Using with Var statment we can read the required variable.
| Is This Answer Correct ? | 1 Yes | 0 No |
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 |
What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here
What is the general format of function in sas? : sas-grid-administration
What is _n_?
List out some key concept of SAS
what is broad cast agent? : Sas-bi
how to generate the test data in sas without input data? : Sas-administrator
how do you pull data from equifax?tell me the process?
0 Answers Synchrony Financial,
What is the difference between input and infile statement?
· What are some good SAS programming practices for processing very large data sets?
what are the component of range? : Sas-bi
Explain translate function?
How do you control the number of observations and/or variables read or written?