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
How we can create SAS USER DEFINED CODE?
For what purpose would you use the RETAIN statement?
how does sas handle missing values in sort order? : Sas programming
What is the difference between SAS functions and procedures?
what is ae onset date n what is RDS
AE datasets names? how many types?
What is the difference between reading data from an external file and reading data from an existing data set?
What is the use of stop statement?
Intern stastical programmer written test
what is the use of proc contents and proc print in sas? : Sas-administrator
what does the run statement do? : Sas programming
Which are the statements whose placement in the data step is critical?
What are the prime responsibilities of data integration administrator? : Sas-di
Compare sas with other data analytics tools.
What is the basic syntax style in SAS?