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
describe about physical data integration? : Sas-di
Explain the use of proc print and proc contents?
Explain bmdp procedure?
What are types of transport files?
Which date function advances a date, time or datetime value by a given interval?
what are several options for creating reports in web report studio? : Sas-bi
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
Mention what is SAS data set?
What are symget and symput? : sas-macro
What is the sas data set? : sas-grid-administration
why is sas data integration studio important? : Sas-di
What are the data types that sas contain?
what is hash files in sas and why we are using this one in sas?
How do you connect the desktop application to metadata server? : sas-grid-administration
Which command is used to save logs in the external file?