Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



Hi im new to sas. I have a file with some charecter variables and some numeric variables now i want..

Answer / sureshkv

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

Is This Answer Correct ?    1 Yes 0 No

Hi im new to sas. I have a file with some charecter variables and some numeric variables now i want..

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

More SAS Interview Questions

Where do you use proc means over proc freq?

0 Answers  


i want to upload titles and footnotes to excel file?how it is possible?

1 Answers  


what is the difference between sas and other datawarehousing languages?what are the advantages of sas over them?

2 Answers   Accenture, Infosys,


Give some examples where proc report’s defaults are same as proc print’s defaults?

0 Answers  


what is the main difference between rename and label? (don't say that they both perform the same function).

11 Answers   Parexel,


What is _n_?

22 Answers  


What SAS statements would you code to read an external raw data file to a DATA step?

6 Answers   Accenture,


how to rearrange the data as our wish by using dataset block?

4 Answers   Cognizant,


Mention some common errors that are usually committed in sas programming.

0 Answers  


Explain proc univariate?

0 Answers  


How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


Mention what is PROC in SAS?

0 Answers  


Categories