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
Explain proc sort?
What is factor analysis?
What system options would you use to help debug a macro? : sas-macro
what is data access? : Sas-di
Explain data_null_?
How do you control the number of observations and/or variables read or written?
Explain the special input delimiters used in sas programming.
which features do you use to check the data validations and errors? : Sas-administrator
What is the difference between class statement and by statement in proc means?
What areas of SAS are you most interested in?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
Intern stastical programmer written test
what is the primary data source for the wrs? : Sas-bi
What are common programming errors committed in sas
What does P-value signify about the statistical data?