What is the significance of the ‘OF’ in X=SUM (OF a1-a4,
a6, a9);?

Answers were Sorted based on User's Feedback



What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / prag s.

IF WE DON'T USE 'OF' THEN IT WOULD BE LIKE A1(MINUS)-A4. AND
THAT'S NOT WHAT WE ARE TRYING TO ACCOMPLISH. WE ARE TRYING
TO GET THE SUM OF THE VARIABLES A1-A4...

Is This Answer Correct ?    17 Yes 4 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / rammohan

sum function adds from a1 a2 a3 a4 a6 and a9
i.e x=a1+a2+a3+a4+a6+a9

Is This Answer Correct ?    8 Yes 2 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / shraddha ganoo

When we give OF it will consider the range. i.e from a1 to
a4 and a6 and a9, if we omit OF word then the SUM function
will consider the hyphen sign (-) between a1 and a4 as a
minus sign and perform operations accordingly.

Is This Answer Correct ?    5 Yes 0 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / name is no need

is the above answer is correct?can any one support the
above answer?

Is This Answer Correct ?    4 Yes 2 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / sreekanth rao

to add the answer. it will consider the variables in
between a1-a4(sums all in between a1-a4)

Is This Answer Correct ?    3 Yes 2 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / xxxxxxxxxxx

if the num r in series we opt this
syntax sum (of a1-a4);
if we omit the 'of' it performs the subraction process.

Is This Answer Correct ?    2 Yes 2 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / raghavendrareddy.m

it adds a1,a2,a3,a4,a6,a9:
x=sum(a1,a2,a3,a4,a6,a9);

or

x=sum(of a:);

Is This Answer Correct ?    1 Yes 1 No

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);? ..

Answer / prem krishnan

if missing value is there in any of the varibale,if we dont
use 'of' then it will give missing value "." in the
resultant variable.

if we use 'of' then it will give the sum of the values in
rest of the variable it will consider missing value

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SAS Interview Questions

What is the use of stop statement?

0 Answers  


How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.

2 Answers  


what is intially documentation for a sas programmer?

2 Answers   Accenture,


What are the joins,types of joins and thier functions?

7 Answers   SAS,


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?

6 Answers  






Tell e how how dealt with..

0 Answers   Wipro,


i have a dataset with 100000 records. i want 100 records from that dataset and create a dataset.we need to pick the observations random order like 100obs,500obs,1020obs,1890obs,2565obs like that i need 100 obs in random order? how can we create this one?

5 Answers   L&T,


List out some key concept of SAS

0 Answers  


Which is the Best SAS training Institute in Delhi NCR for SAS certification preparation

1 Answers   SAS,


How do you define proc in sas? : sas-grid-administration

0 Answers  


AE datasets names? how many types?

0 Answers   Accenture,


What do the put and input function do?

0 Answers  


Categories