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 types of transport files?
what techniques and/or procs do you use for tables? : Sas programming
what versions of sas have you used (on which platforms)? : Sas programming
What is proc sort?
What are the prime responsibilities of data integration administrator? : Sas-di
How to create a permanent sas data set?
explain what is factor analysis? : Sas-administrator
How to limit decimal places for variable using proc means?
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
Intern stastical programmer written test
for report generation which one you used proc report or data_null_?
What are the functions which are used for character handling functions?
what is the use of sas management console? : Sas-di
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
How would you define the end of a macro?