Answer Posted / pricil kurian
Hi ravi..ur answer is correct. ONE QUERY...for the below
example to get third record consecuitvely we need to
if mod(_n_,3)= 0 ; is in't?
Eg. If we want to find every third record in a Dataset then
we can use the _n_ as follows
Data new-sas-data-set;
Set old;
if mod(_n_,3)= 0 then;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the scrubbing procedures in sas? : Sas programming
Difference between SAS STATA & SPSS?
What do the put and input function do?
what r the job openings SAS for fresher graduates !
Can you execute a macro within a macro? Describe. : sas-macro
How would you define the end of a macro? : sas-macro
How does proc sql work?
What do you know about sas and what we do? : sas-grid-administration
What is connection profile? : sas-grid-administration
How many data types are there in SAS?
What is the difference between one to one merge and match merge? Give an example.
What are the differences between sum function and using “+” operator?
how to do user inputs and command line arguments in sas?
what is the effect of the options statement errors=1? : Sas programming
explain the function of substr in sas? : Sas-administrator