Dear Peter.
Good Holidays!
>I understand some of this culture has spread to other parts of the world so now Santa's task is even bigger ;-))
Yes.You are right . In China (Bei Jing) where I lived in, there are lots of Christmas Trees and Christmas Songs around me,and It is hard to see foreign friends now, maybe they have gone to their homeland to holiday.Unfortunately I have to work even though it is not too heavy,We will get Holidays until February 2,2011 that is Chinese Tradition New Year.
After look at your code, I found some problem in it.
First,Macro variable &sqlobs is only generated after sql statement executed,that is to mean you need execute the same sql statement twice.
Second.You label variable by using data step,which will scan the whole data set and will very slow when this dataset is very big (about 200G),So can use 'proc datasets +modify+label',that will be more efficient than yours ,since 'proc datasets' will not read the dataset in PDV and modify label directly.
BTW, the approach I used is what you mentioned.
Merry Christmas!
Cheers.
Ksharp
... View more