Help using Base SAS procedures

Every fifth observation(Obs)

Reply
Regular Contributor
Posts: 229

Every fifth observation(Obs)

Hi

i have 500 obs i want to get every 5th observation
N/A
Posts: 0

Re: Every fifth observation(Obs)

Hi,

Data new;
set original_dataset;
if mod(_n_,5)=0 then output;
run;


Using this you will get the output.
Ask a Question
Discussion stats
  • 1 reply
  • 104 views
  • 0 likes
  • 2 in conversation