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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / alok karan
data _null_ new;
set qqq;
where name like "q%" or name like "w%";
put name total;
run;
proc print data=new;
run;
| Is This Answer Correct ? | 0 Yes | 2 No |
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT
What are common programming errors committed in sas
Tell e how how dealt with..
where to use sas business intelligence? : Sas-bi
Mention what is SAS data set?
What does PROC print, and PROC contents do?
Explain why double trailing @@ is used in input statement?
WHAT DOES A SAS SPECIFICATION DOCUMENT SDS CONTAIN ?
what versions of sas have you used (on which platforms)? : Sas programming
Hi , which book should i refer to for preaparing SAS statistical Exam. Searched a lot on books but still did n't find relevant books
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?
How are numeric and character missing values represented internally?