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 |
what is snowflake schema? : Sas-di
Name statements that are recognized at compile time only?
What are the functions done while Compilation...?
what is sas application server? : Sas-di
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
how do you pull data from equifax?tell me the process?
0 Answers Synchrony Financial,
How would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable?
How can I remove header from output data set?
how do we get duplicate observations in a separate dataset?
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
How did you use the round function?give an example(don't say it will round to the nearest intger) eg1:round(84.55,.1) =84.6 eg2:round(92.64,.1)=92.6,How it is happening like this tell me the logic,that is how the round function works when we have deimal values?
What are the efficacy variables in your study?
2 Answers Accenture, Quintiles,