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 many types of prompts are there? : Sas-bi
explain what is factor analysis? : Sas-administrator
What is PDV?
What do the mod and int function do? : Sas programming
what is data integration? : Sas-di
Are you sensitive to code walk-throughs peer review or QC review?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
What is the basic syntax of a sas program?
for whom is sas data integration studio designed? : Sas-di
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
Describe a time when you were really stuck on a problem and how you solved it?
What can be the size of largest dataset in SAS?
Why double trailing @@ is used in input statement?
What are the five ways to do a table lookup in sas? : sas-grid-administration
explain the difference between proc means and proc summary?