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 purpose of trailing @ and @@? How do you use them?
Difference between sum function and using “+” operator?
How would you identify a macro variable? : sas-macro
What is the order of application for output data set options, input data set options and SAS statements?
How many data types are there in SAS?
How will you generate test data with no input data?
explain the function of substr in sas? : Sas-administrator
What do you code to create a macro? : sas-macro
What are the functions used for character handling?
What are the limitations for memory allocation for SAS variables
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
Explain by-group processing?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
What does the RUN statement do?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake