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 statement do you code to write the record to the file?

5 Answers  


what are input dataset and output dataset options? : Sas programming

0 Answers  


Explain proc univariate?

0 Answers  


Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain.

4 Answers   Accenture,


I am looking to buy a sas advance book. So any one can guide me that which one i should buy.

0 Answers  






I have 2 data sets A & B. Both have a variable called Age in them, each of them specifying a different functionality. In my program I use bot these data sets. How do I specify which Age variable I want to use?

6 Answers  


What are the functions which are used for character handling functions?

0 Answers  


Which are SAS Windows Clients & SAS Java Clients

3 Answers   TCS,


Which command is used to perform sorting in sas program?

0 Answers  


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

0 Answers   SAS,


Does anybody has SAS Platform Administration certification dumps. pls send to hariithepalli@gmail.com

0 Answers  


What commands are used in the case of including or excluding any specific variables in the data set?

0 Answers  


Categories