Hi All, Thanks for all the replies, much appreciated. However, they all addressed *how* SAS works with respect to data step views, which I had already deduced. I was more interested in people's opinions of *how* they thought SAS should work. I must admit I don't recall ever creating a data step view using a variable list but, as Howles said, the variable list in the data step view is static as defined at compile time. And the same behaviour holds for data set lists. I know the data step view is a compiled object where the definition is compiled, but the data is dynamic and derived at run time. I guess the question is, should variable lists and data set lists in a data step view be dynamic as well? After all, it's just software; SAS could have created this to work in either way. IMO, dynamic variable lists and data set lists would be very useful, but I admit it could also cause confusion / problems if the data set structure changed after the view was created. But, if I had to choose, I would make the variable lists and data set lists dynamic, where the data step view derives the list at runtime. I suspect the current functionality was just "easier" when data step views were first developed. In any case, I find the "describe view" functionality to be misleading; I believe it should return the expanded lists as they were defined at compile time. Regarding the various replies, I could either just redefine the view each time, rather than defining a permanent view, or use the dictionary tables. As suggested, I did choose to use the dictionary tables, as I found the generated code to be clearer. But the results are the same in both approaches. Thanks Scott
... View more