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

describe how to adjust the performance of data integrator? : Sas-di

0 Answers  


hi guys ...i have one query... data abc; input s w k g o t a m; cards; 1 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 ; run; i want the output to be the sorted order(only variables).observations should not be changed..

14 Answers  


What are the ways to do a “table lookup” in sas?

0 Answers  


what are several options for creating reports in web report studio? : Sas-bi

0 Answers  


what the use of proc glm

1 Answers   Accenture, C Marc,






List out some key concept of SAS

0 Answers  


how do u test a pros sql(works or not) without executing it?

1 Answers   DELL, HSBC,


what is sas business intelligence? : Sas-bi

0 Answers  


what is the function of catx syntax? : Sas-administrator

0 Answers  


How to display duplicate observations in data?

1 Answers  


WHAT DOES A SAS SPECIFICATION DOCUMENT SDS CONTAIN ?

1 Answers  


firstobs and obs are working only option wise,but we are using infile statement with firstobs and obs in a statement wise? so firstobs,obs working at options and statemnts or not?

1 Answers  


Categories