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

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

Name and describe few sas character functions that are used for data cleaning in brief.

1179


How does the internal authentication work in sas? : sas-grid-administration

1168


What do the PUT and INPUT functions do?

1386


What is the purpose of _character_ and _numeric_?

1108


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3632


how the sas basic syntax style described? : Sas-administrator

1062


Describe the ways in which you can create a macro variable?

1131


how many types prompting framework can be broken down to? : Sas-bi

1114


Explain the use of proc gplot? : sas-grid-administration

1042


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

1145


Explain the special input delimiters used in sas programming.

1045


Mention the category in which sas informats are placed?

1076


Are you involved in writing the inferential analysis plan? Tables specfications?

2592


Explain the use of proc print and proc contents?

1013


Difference between nodup and nodupkey options?

1269