Is there a way to replace a data set which is currently open in the ViewTable Window?
For example, say I create the following data set:
data the_meaning_of_life;
is = 2;
run;
I open it up and notice, oh drat!, I made a typo! I correct the code and rerun it.
data the_meaning_of_life;
is = 42;
run;
I'm then met with the following message,
ERROR: You cannot open WORK.THE_MEANING_OF_LIFE.DATA for output access with member-level
control because WORK.THE_MEANING_OF_LIFE.DATA is in use by you in resource environment
ViewTable Window.
Of course there are workarounds. In the keys
menu, I could bind
next viewtable:libref.dataset;end;
to an F
key or prefix the submit button with it so that all VTs are closed before code is submitted.
I recognize that there's an assumption I'm making. I'm assuming that because the ViewTable Window is called a "ViewTable" that it is indeed a view.
According to SAS, a view is
a definition of a virtual data set that is named and stored for later use. A view contains no data; it merely describes or defines data that is stored elsewhere.
A view should be independent of the data set. It seems like the ViewTable opened when a data set is double-clicked in the SAS Explorer is not a 'true' view. So maybe my question should be revised to,
How do I view a data set as a view?