10-22-2012 10:08 AM
do there is a single way to copy only dataset structure?
I mean, I have a dataset with C columns and R rows, a would have a second dataset with the same C columns but with 0 rows.
10-22-2012 10:50 AM
As a side note, if you are planning doing the same on datasets other than SAS tables, such as Oracle, sybase, SQL server etc, you may need to use the following standard SQL syntax:
CREATE TABLE want AS SELECT * FROM have WHERE 1=0
and wrap it up using SAS pass-through. where condition can be anything not TRUE.
Please note: proc sql options such as inobs=, outobs= may not work in this kind of situation.
Need further help from the community? Please ask a new question.