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
Explain proc univariate?
how to debug and test the sas program? : Sas-administrator
What would you change about your job?
describe about metadata object? : Sas-di
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
This entry was posted in General. Bookmark the permalink. Post a comment or leave
What is by-group processing?
How will you generate test data with no input data?
Give e an example of..
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
what is data integration? : Sas-di
What is proc sort?
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?
Explain how you can debug and test your SAS program?