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 |
Can anyone help me about SAS Realtime scenarios in Clinical field
what is the difference between the SAS v8 and SAS v9?
what is sas application server? : Sas-di
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
if you have 365 no of data set and each one having different variable from each other. how will you read by creating macros and create a single data set.
How do you add a number to a macro variable?
Explain what is SAS informats?
Which date function advances a date, time or datetime value by a given interval?
1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.
if we dont want to print output what we have to do..???give syntax..???
8 Answers Accenture, GSK GlaxoSmithKline,
if x=round(26.3,10)-1 then x= how much and how explain?
how do we mail reports from SAS environment to our team leader