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 |
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 ?
Describe the function and utility of the most difficult SAS macro that you have written?
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
what is the use of proc sql? : Sas programming
How to read an input file in sas?
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?
What is the order of evaluation of the comparison && logical && relational operators:?
How would you code a merge that will keep only the observations that have matches from both sets?
tell me about intnx, intcx functions?
Explain the difference between nodup and nodupkey options?
what are some differences between proc summary and proc means? : Sas programming