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 / chaudhary_1989

data a;
infile "C:Documents and SettingssasadmDesktopSASMacro est1.txt" firstobs=2;
input num1 num2 num3 c1$ c2$ num4 c3$;
run;

data b;
set a;
keep _numeric_;
run;

data c;
set a;
keep _character_;
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 is the work of tranwrd function?

660


Describe crosslist option in tables statement?

707


Mention few capabilities of sas framework.

687


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1201


What is SAS? What are the functions does it performs?

727






What does proc print, and proc contents are used for?

608


What are the ways to do a “table lookup” in sas?

587


how do you pull data from equifax?tell me the process?

1371


What are the features of SAS?

574


How do you test for missing values?

1053


Tell me about % include and % eval? : sas-macro

677


what is enterprise guide? What is the use of it? : Sas programming

533


What is a pdv and what are its functions?

598


What was the last computer book you purchased? Why?

1906


What is the good sas programming practices for processing large data sets?

622