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?
Answer Posted / dilip
use & and width.
data k;
input s &$22. t $;
cards;
vijaya ragava perumal raj
mohan raj krishna sharma
;
proc print;
run;
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
how does sas handle missing values in procs? : Sas programming
What are the differences between sum function and using “+” operator?
What are the five ways to do a table lookup in sas? : sas-grid-administration
Explain proc sort?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
How to limit decimal places for variable using proc means?
How you can read the variables that you need?
What is the use of function Proc summary?
describe how to adjust the performance of data integrator? : Sas-di
What are the ways to do a “table lookup” in sas?
What is the difference between %local and %global? : sas-macro
For what purposes have you used sas macros? : sas-macro
What is the basic structure of a sas program?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
How will you generate test data with no input data?