How could you generate test data with no input data?

Answers were Sorted based on User's Feedback



How could you generate test data with no input data? ..

Answer / salman

For this Question the correct answer is data _NULL_

Is This Answer Correct ?    10 Yes 2 No

How could you generate test data with no input data? ..

Answer / rohit

SAS can be used to generate random numbers. The command
RANUNI is used to generate random numbers from a uniform
distribution ranging from 0 to 1, and the command RANNOR is
used to generate random numbers from a standard normal
distribution. To use the command, we need to specify a
seed. The seed, a numerical value, is placed in parentheses
after the command. If a different numerical value or seed
is specified, the commands will produce a different set of
random numbers. For example, the value produced by
RANUNI(1) is different from the value produced by RANUNI(2)

Is This Answer Correct ?    7 Yes 0 No

How could you generate test data with no input data? ..

Answer / tangyoulei

randuni

Is This Answer Correct ?    4 Yes 1 No

How could you generate test data with no input data? ..

Answer / kiran

even by using do loop.

Is This Answer Correct ?    2 Yes 1 No

How could you generate test data with no input data? ..

Answer / ram

Give one answer

Is This Answer Correct ?    1 Yes 0 No

How could you generate test data with no input data? ..

Answer / prag s.

now which one is the correct answer people????????

Is This Answer Correct ?    0 Yes 0 No

How could you generate test data with no input data? ..

Answer / jahnavi

eg: data two;





var1 = ranuni(0) * 10 ;
run;
This datastep would create random integers between 0 and 10;

Is This Answer Correct ?    0 Yes 0 No

How could you generate test data with no input data? ..

Answer / teena

using set statement ....cards and datalines needs input data
these below 2 will need input data
_null_ will create no actual dataset but will create obs
obs=0 will create empty dataset

Is This Answer Correct ?    0 Yes 0 No

How could you generate test data with no input data? ..

Answer / guest

Using data _null_ or obs=0

Is This Answer Correct ?    4 Yes 5 No

How could you generate test data with no input data? ..

Answer / mallikarjuna reddy

by using Explicit OUTPUT statement

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More SAS Interview Questions

Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

0 Answers  


I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak

1 Answers  


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

0 Answers  


Mention sas system options to debug sas macros.

0 Answers  


i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.

6 Answers   CTS,






6) Explain about below automatic variables a) _N_ b) _ERROR_ c) _CHAR_ d) _NUMERIC_ e) _ALL_ f) FIRST.BY VARIABLE g) LAST.BY VARIABLE h) _NAME_ i) _TYPE_ j) _FREQ_ k) _STAT_ l) _BREAK

1 Answers   IBM, SAS,


What are the main differences between sas versions 8.2, 9.0, 9.1?

4 Answers  


What are all the problems you faced while validating tables and reports?

0 Answers   Accenture, Quintiles,


explain what is factor analysis? : Sas-administrator

0 Answers  


What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here

2 Answers  


How will you assign all the variables of an dataset into a macro variable separated by a space? For example if a dataset has variables A,B,C. Assign them to a macro variable X as X=A B C

3 Answers   Accenture, Oracle,


what is the formula to measure Baseline

3 Answers   Sristek,


Categories