Group: comp.softsys.sas · Group Profile · Search for 199101 in comp.softsys.sas
Author: Reeza
Date: May 14, 2007 13:00
There are a number of ways to do this, some more elegant that others. The quick and dirty way would be to divide the variable containing your numeric date string by 100 and use the INT function to obtain the integer portion of the result. Try Year = INT(yyyymm/100); In this example, "yyyymm" is the name of the numeric variable. That should work for you. Others on the list will probably
|