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?
Answers were Sorted based on User's Feedback
Answer / aaaa
data jagan1.s;
infile cards dlm='/' dsd;
input b p;
cards;
100/90
120/89
112/87
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
how do you want missing values handled? : Sas programming
Identify statements whose placement in the DATA step is critical?
what are all the ways to define macro variable??
2 Answers GSK GlaxoSmithKline,
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What areas of SAS are you most interested in?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What is a macro routine?
What is by-group processing?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What is the order of evaluation of the comparison && logical && relational operators:?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
Explain the purpose of substr functions in sas programming.