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 hash files in sas and why we are using this one in sas?
What is the difference between %local and %global? : sas-macro
What is maximum number of rows and cols can be handled in SAS?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
what is data governance? : Sas-di
What is the difference between INPUT and INFILE ?
where to use sas business intelligence? : Sas-bi
Compare sas with other data analytics tools.
Explain the difference between informat and format with an example.
In sas, what are the areas that you are most interested in? : sas-grid-administration
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
What are the advantages of using sas?
Enlist the syntax rules followed in sas statements.
Hi, If anyone has base SAS certification dumps, please share.
Given an unsorted data set, how to read the last observation to a new data set?