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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / basha
data kk;
input name &$24. name1 $12.;
name3=name||name1;
datalines;
mega star chiranjeevi
;
run;
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / chandu
We cant create SAS Dataset name with Spaces. Spaces wont be
allowed in the SAS naming convention.
If Raw data is having Spaces, we need to use Period Input
Style.
Other-wise please give some information for this question
to understand well.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chandu
using period style input will read ur multiple spaces.
Eg :
Data chandu ;
input name $ 1-22. ;
datalines ;
vijaya raghava perumal
run ;
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sas programmer
HI ALL, IM UR FRIEND , PLEASE READ THE QUESTION ONCE
THE GUEST ASKED THE QUESTION IS
HOW DO I READ MULTIPLE SPACES IN DATASETS NOT IN DATA.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / x
create the dataset using option missing the variable which
requied & output it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nani
Whenever SAS encounters a period after a macro variable
reference, the period is treated as a way to end the macro
variable and then the period is thrown away.
| Is This Answer Correct ? | 0 Yes | 6 No |
What is difference between sas rename and lable?
how to add distinctly var variable values ex.. Data a; input var; datalines; 0 1 2 3 -1 -2 -3 ; run; adding all +ve value in one varibale n do the same for -ve too
What is program data vector (pdv)?
why only we use SAS? their r many programmin language like SPSS, Oracle... Why SAS?
Tell e how how dealt with..
Mention the validation tools used in SAS?
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 are the difference between the sas data step and sas procs?
what is Business Intelligence?
How are the analysis data sets structured?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
what is SAS/Access and SAS/Connect?what are the uses?