how can u create zero observation dataset?

Answers were Sorted based on User's Feedback



how can u create zero observation dataset?..

Answer / chandra sekar

Use the following step

data test;
delete;
run;

Is This Answer Correct ?    15 Yes 3 No

how can u create zero observation dataset?..

Answer / veerendra

data check;
set _null_;
run;

Is This Answer Correct ?    12 Yes 0 No

how can u create zero observation dataset?..

Answer / srilatha

creating a data set by using the like clause.

ex: proc sql;
create table latha.emp like oracle.emp;
quit;

in this the like clause triggers the existing table
structure to be copied to the new table.using this method
result in the creation of an empty table.

Is This Answer Correct ?    10 Yes 2 No

how can u create zero observation dataset?..

Answer / pramod.c

data temp;
stop;
run;

Is This Answer Correct ?    7 Yes 1 No

how can u create zero observation dataset?..

Answer / kk

data ans;
input a b;
cards;
run;

Is This Answer Correct ?    3 Yes 0 No

how can u create zero observation dataset?..

Answer / din

data a ;
set b(obs=0);
run;

Is This Answer Correct ?    1 Yes 0 No

how can u create zero observation dataset?..

Answer / nagendra

data class;
 set sashelp.class;
  if _n_ >=  Then delete;
 run;

Is This Answer Correct ?    0 Yes 0 No

how can u create zero observation dataset?..

Answer / sheetal

data a;
set b;
stop;
run;

Is This Answer Correct ?    2 Yes 5 No

how can u create zero observation dataset?..

Answer / sm

data blank;
input a b;
delete;
run;

Is This Answer Correct ?    1 Yes 4 No

how can u create zero observation dataset?..

Answer / vishnu

for example
data vishnu;
length name $ age ;
run;
proc print data=vishnu;
run;

Is This Answer Correct ?    7 Yes 11 No

Post New Answer

More SAS Interview Questions

What is factor analysis?

0 Answers  


What are the default statistics for means procedure?

0 Answers  


proc means? proc sort? proc append? proc freq? proc print? proc content?

4 Answers   Oracle,


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?

3 Answers   Accenture,


Do you prefer Proc Report or Proc Tabulate? Why?

9 Answers   Oracle,






What is the difference between order and group variable in proc report?

0 Answers  


Code a PROC MEANS that shows both summed and averaged output of the data.

5 Answers  


is QUALCOMM using SAS ?

1 Answers  


What do the mod and int function do? : Sas programming

0 Answers  


How is character variable converted into numeric variable and vice versa?

0 Answers  


How do you test for missing values?

0 Answers   Quintiles,


how do you debug and test your sas programs? : Sas programming

0 Answers  


Categories