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
How to include or exclude specific variables in a data set?
what has been your most common programming mistake? : Sas programming
In ARRAY processing, what does the DIM function do?
What are the table names in oracle database...?
how do you debug and test your sas programs? : Sas programming
How would you determine the number of missing or nonmissing values in computations?
Name and describe few sas character functions that are used for data cleaning in brief.
What would you change about your job?
what are 5 ways to perform a table lookup in sas? : Sas-administrator
how many types prompting framework can be broken down to? : Sas-bi
Enlist the syntax rules followed in sas statements.
what are the component of range? : Sas-bi
How can you limit the variables written to output dataset in data step?
Explain proc univariate?
How do dates work in SAS data?