Hi im new to sas. I have a file with some charecter variables and some numeric variables
now i want to load charecter variables into one datastep and numeric variables into another data step pls let me know
Thanks

Answer Posted / sureshkv

data char;
set master;
keep _character_;
run;
data num;
set master;
keep _numeric_;
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What commands are used in the case of including or excluding any specific variables in the data set?

834


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

836


what other sas products have you used and consider yourself proficient in using? : Sas programming

901


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1700


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2106


Have you ever used the SAS Debugger?

1473


how would you determine the number of missing or nonmissing values in computations? : Sas programming

912


What is the work of tranwrd function?

961


Differences between where and if statement?

794


What is the length assigned to the target variable by the scan function?

905


What is the difference between proportion and average?

3012


Which are the statements whose placement in the data step is critical?

994


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

917


what is metadata? : Sas-bi

797


What is the basic syntax style in SAS?

848