Question : The following SAS program is submitted: data work.retail; cost = `20000'; total= .10* cost run; What is the result? 1. The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log. 2. The value of the variable TOTAL in the output data set is 2000. A note that conversion has taken place is written to the SAS log. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The variable TOTAL in the output data set has no value. The program fails to execute due to a syntax error.
Question : Which program can be used to create the output similar to shown in left? 1. proc means data=clinic.diabetes; var age height weight; class sex; output out=work.sum_gender mean=AvgAge AvgHeight AvgWeight; run; 2. proc summary data=clinic.diabetes print; var age height weight; class sex; output out=work.sum_gender mean=AvgAge AvgHeight AvgWeight; run; 3. Access Mostly Uused Products by 50000+ Subscribers var age height weight; class sex; output out=work.sum_gender mean=AvgAge AvgHeight AvgWeight; run; 4. Both a and b.
Explanation: You can use either PROC MEANS or PROC SUMMARY to create the table. Adding a PRINT option to the PROC SUMMARY statement produces the same report as if you used PROC MEANS.
Question : You have been given a dataset named hetrain.helr , you have been using the PROC PRINT statement to print the dataset, with the labels. However, labels are not stored in the dataset than which of the following is a correct statement PORC PRINT statement >
Correct Answer : Get Lastest Questions and Answer : Explanation: Here we need to focus on correct syntax as well as option. In PROC PRINT we need to use DATA= option so that data can be printed. However, we wanted to give some description label to the variable name than we should have used label option in PROC PRIN statement and label statement for a particular variable to tell what should be the label for a variable.