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
What is the difference between where and if statement?
What is the function of output statement in a SAS Program?
Mention what is PROC in SAS?
Explain how merging helps to combine data sets.
Describe the function and utility of the most difficult SAS macro that you have written?
What are SAS/ACCESS and SAS/CONNECT?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
Tell e how how dealt with..
How does the internal authentication work in sas? : sas-grid-administration
If a variable contains only numbers, can it be a character data type?
How to sort in descending order?
what are input dataset and output dataset options? : Sas programming
In sas, what are the areas that you are most interested in? : sas-grid-administration
What versions of SAS have you used (on which platforms)?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake