data voter;
input Age Party : $1. (Ques1-Ques4)($1. + 1);
datalines;
23 D 1 1 2 2
45 R 5 5 4 1
67 D 2 4 3 3
39 R 4 4 4 4
19 D 2 1 2 1
75 D 3 3 2 3
57 R 4 3 4 4
;
Idont understand what the (Ques1-Ques4)($1. + 1) means.
I have seen (Ques1-Ques4)(4*$1.), but what is
(Ques1-Ques4)($1. + 1)?
Appreciate all help
Thanks
Answer Posted / nbohr02
You are read data for a 4 question poll
(Q1-Q4) is an arrary ($1. is the format of each element
+1) tells sas to increment the array index for each line.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the special input delimiters used in SAS?
what is sas enterprise intelligence architecture? : Sas-bi
What are the data types in sas?
What is the basic syntax of a sas program?
What do you know about symput and symget?
Do you need to know if there are any missing values?
What are the differences between sum function and using “+” operator?
What is the difference between input and infile statement?
explain the difference between proc means and proc summary?
what are all the reports you generated in your recent project?
How many ways to overcome a missing values???
In SAS explain which statement does not perform automatic conversions in comparisons?
What are pdv and it functions?
Enlist the syntax rules followed in sas statements.
Which command is used to perform sorting in sas program?