Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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? ..

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? ..

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? ..

randuni

 Is This Answer Correct ? 4 Yes 1 No

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

even by using do loop.

 Is This Answer Correct ? 2 Yes 1 No

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

 Is This Answer Correct ? 1 Yes 0 No

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

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? ..

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? ..

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? ..

Using data _null_ or obs=0

 Is This Answer Correct ? 4 Yes 5 No

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

by using Explicit OUTPUT statement

 Is This Answer Correct ? 0 Yes 2 No

More SAS Interview Questions

what is the purpose of _error_? : Sas programming

How many ways to overcome a missing values???

Diff between proc sql merge and join?

WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?

If you were told to create many records from one record, show how you would do this using array and with proc transpose?

libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID \$3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I donâ€™t understand why Grade shows up as a missing value. Everything seems fine, including ID \$3. Now, in case I use ID : \$3. Or use column input, I get the desired output. Kindly help Deepak

What is the difference between %local and %global?

Can you excute a macro within a macro? Describe.

Give some ways by which you can define the variables to produce the summary report (using proc report)?

I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.

What is the one statement to set the criteria of data that can be coded in any step?

what is SAS/Graph?

Categories