i have a null dataset with 20 variables. i want to upload the
variables which contain name like a or k or anything in
another dataset.how can we create the dataset?
Answer Posted / sasuser
Ans: I didn't understood the question clearly. What I
understood is , the person wants to copy selected variables
from a dataset(which has no observations) to a different
dataset.The following is the solution:
proc sql;
create table want
like emptydataset (keep=n: a:)
;
quit;
Note:emptydataset does not contain any obs.
Let me know, If my solution is wrong.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What do the SAS log messages "numeric values have been converted to character" mean?
describe about metadata object? : Sas-di
What is your favorite all time computer book? Why?
For clinical entire study how many tables will create approx?
What is maximum number of rows and cols can be handled in SAS?
what is the purpose of _error_? : Sas programming
what is sas metadata server? : Sas-di
Given an unsorted data set, how to read the last observation to a new data set?
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
Can you execute macro within another macro? : sas-macro
What are the statements in proc sql?
what is the difference between unique key and primary key? : Sas-di
What do you know about sas data set?
explain about various caches available in data integrator? : Sas-di
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?