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 is the difference between the SAS v8 and SAS v9?
how to read raw data in sas. Do it manually and throw the programming.
What’s the difference between var b1 – b3 and var b1 — b3?
How do you read in the variables that you need?
How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.
wat is sas? is a package or programming language?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
what is snowflake schema? : Sas-di
what is the diff b/w verification validation in sas
What is shift table? have you ever created shift that?
2 Answers Accenture, Clinical Research, Quintiles,
What are the Aggregate functions in SQL ?
Mention some common errors that are usually committed in sas programming.