title: assign a flag number to fixed number ofobservations
body: <p>I need to assign a flag number starting from 1 to a fixed number of observations in a sas dataset. For example, 1 to observations 1 to 20 then 2 to observations 21 to 40 and so on. How should i proceed in sas datastep or sql query?</p>