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

How to read the file names of a text files from a shared drive using SAS?

1 Answers   HSBC, WNS,


%STPbegin;%STPEND; ERROR: No logical assign for filename _WEBOUT. WARNING: No body file. HTML output will not be created. unable to fix it.plz help

2 Answers  


What are the uses of sas?

0 Answers  


Given an unsorted data set, how to read the last observation to a new data set?

0 Answers  


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?

2 Answers   BoA,






How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

2 Answers  


Write a SAS macro to calculate number of numbers in an email address

2 Answers  


What are the functions used for character handling?

0 Answers  


how do u identify a macro variable

5 Answers  


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


What are the different operating system platforms in which we can use sas? : sas-grid-administration

0 Answers  


Difference b/n proc means and proc summary procedures?

3 Answers   Accenture,


Categories