Answer Posted / veerendar alugola
you can see the below example for a-z:
data ptcde;
input ptid $ test1 test2 test3 test4;
cards;
1102 56 65 66 70
1103 55 85 62 77
1104 85 71 59 66
1105 55 100 120 61
1106 90 58 65 63
;
run;
data abc;
set ptcde;
a=mean(of test1-test4);
run;
when you use a-z it will consider only the range variables.
You can find the below example for a--z;
data ptcde;
input ptid $ test1 abc def test4;
cards;
1102 56 65 66 70
1103 55 85 62 77
1104 85 71 59 66
1105 55 100 120 61
1106 90 58 65 63
;
run;
data abc;
set ptcde;
a=mean(of test1--test4);
run;
when you use a--z it will consider all the variables
irrespective of the series.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the role of unrestrictive users? : sas-grid-administration
How many data types are there in SAS?
What is the function of Stop statement in a SAS Program?
Explain what is the use of proc gplot?
What is the use of %include statement?
what is hash files in sas and why we are using this one in sas?
What are common programming errors committed in sas
why is a stop statement needed for the point=option on a set statement? : Sas programming
What is factor analysis?
How to create a permanent sas data set?
What is the good sas programming practices for processing large data sets?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
what is the primary data source for the wrs? : Sas-bi
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
name several ways to achieve efficiency in your program? : Sas programming