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

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

what is the purpose of _error_? : Sas programming

0 Answers  


How many ways to overcome a missing values???

0 Answers   HSBC,


Diff between proc sql merge and join?

1 Answers   HSBC, Sristek,


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

3 Answers   IBM, Zensar,


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

0 Answers  






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

7 Answers  


What is the difference between %local and %global?

0 Answers  


Can you excute a macro within a macro? Describe.

3 Answers  


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

0 Answers  


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.

1 Answers  


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

4 Answers  


what is SAS/Graph?

1 Answers   CitiGroup, NTPC,






Categories