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 will you assign all the variables of an dataset into a macro variable separated by a space? For example if a dataset has variables A,B,C. Assign them to a macro variable X as X=A B C
What is maximum storage capability of SAS?
How do you read in the variables that you need?
How to write duplicate records into a separate dataset using sort?
How do dates work in sas?
how will you location sas platform applications available from web browser? : Sas-bi
what is sas enterprise intelligence architecture? : Sas-bi
how do i read multiple spaces in datasets? eg: vijaya raghava perumal.I tried with using & but it workss if its vijaya raghava but not for raghava perumal.how to do this?
what is ae onset date n what is RDS
What is the basic structure of a sas program?
how sas deals with business intelligence? : Sas-bi
where are dashboard components are created and maintained? : Sas-bi