03-14-2012 03:28 AM
i am having a huge dataset with 200gb and having 100 variable ,now i want to drop 1 variable unused_trans,
i can do by this way
is there any other way to drop the variable by using proc datasets or proc sql with out recreating the dataset
03-14-2012 08:26 AM
As already said, SAS offers no support of modifying table structure in place.
If this is a rare operation, I can't see any problem by recreating the table.
if you often need to add/drop columns, and performance is an issue, you might want to look for other storage options.
If you are eager to save disk space, you may want to look at compression (SAS or host based).
If you just want to hide some obsolete columns for your users, using views, information maps or metadata rights could be an alternative.
03-14-2012 05:33 PM
How does it get in the data in the first place? Just about any approach should allow a (drop=variable) from the output when creating the SAS dataset. it from the datastep would be a better approach as you're going to need rought 400gb of disk to process.