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 / hny135
DATA JAGAN1.S1;
SET JAGAN1.S;
X=SCAN(BP,1,'/');
Y=SCAN(BP,2,'/');
A=INPUT(X,3.);
B=INPUT(Y,2.);
DROP BP X Y;
RUN;
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
how many types of prompts are there? : Sas-bi
what is business intelligence? : Sas-bi
Explain what Proc glm does?
what are sas/access and sas/connect? : Sas programming
how does sas handle missing values in procs? : Sas programming
explain what is factor analysis? : Sas-administrator
how will you location sas platform applications available from web browser? : Sas-bi
How many ways to overcome a missing values???
how does sas handle missing values in formats? : Sas programming
Explain what is SAS informats?
What are the different servers in sas? : sas-grid-administration
What is the differnce between SDTM 3.1.2 to 3.1.1 version
how to change the execute of macro
What is the maximum length of the macro variable?
what is broad cast agent? : Sas-bi