How could you generate test data with no input data?
Answers were Sorted based on User's Feedback
Answer / salman
For this Question the correct answer is data _NULL_
| Is This Answer Correct ? | 10 Yes | 2 No |
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 |
Answer / prag s.
now which one is the correct answer people????????
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What commands are used in the case of including or excluding any specific variables in the data set?
how do the in= variables improve the capability of a merge? : Sas programming
When you will use nowd option in report???
How to do user inputs and command line arguments in SAS? D&B
Explain what Proc glm does?
how many types of MERGE?
How do you generate random samples?
What is the purpose of trailing @ and @@? How do you use them?
What is a pdv and what are its functions?
What are exact SAS Base contents..?N what r SAS Tools..?
What are the main differences between sas versions 8.2, 9.0, 9.1?