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 |
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?
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)
explain the key concept of sas? : Sas-administrator
How substr function works in sas?
What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?
What is the difference between verification and validation?
What is the basic structure of a sas program?
What is _n_?
Explain the difference between informat and format with an example.
What is the purpose of trailing @ and @@? How do you use them?
Do you know the features of sas?
what is the diff. b/w proc means and proc summary?