User:Datanull/BlogEntry: 2008 January 15 18:30:12 EST

From sasCommunity

Jump to: navigation, search

First entry in my "blog", I'm too old for this, I don't even know what the acronym stands for.

I enjoy SAS-L, my wife does not understand. Today on SAS-L I learned a concise way to increment a counter using IFN, so it was all worth it.

Chang Chung posted the following in reply to a question about how to number records within an ID group.

  data;
     set;
     by byVariable;
     index + ifn(first.byVariable, -index, 1);
     run;
Personal tools