data jagan1.s;
input bp$;
cards;
100/90
120/89
112/87
run;
in the above code how to convert character data values to numeric data values?

Answer Posted / srinivasa rao

Using input function

data jaganl.1;
input bp$;
a=input(bp);
cards;
100/90
120/89
112/87
;
run;

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does proc sql work?

618


what is treatment emergent events and treatment emregent adverse event

1942


why is a stop statement needed for the point=option on a set statement? : Sas programming

587


What are the implications?

1181


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

1914






What are the difference between the sas data step and sas procs?

610


How would you invoke a macro? : sas-macro

555


Why double trailing @@ is used in input statement?

702


Which command is used to perform sorting in sas program?

599


what is change analysis in sas di ? : Sas-di

606


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4043


How we can call macros with in data step? : sas-macro

617


name some data transformation used in sas di? : Sas-di

546


Difference between nodup and nodupkey options?

635


What is a macro routine?

2104