Question : The observations in the SAS data set EMPLOYEE.TEST are ordered by the values of the variable SALARY. The following SAS program is submitted: proc sort data = employee.test out = employee.testsorted; by name; run; Which one of the following is the result of the SAS program? 1. The data set EMPLOYEE.TEST is stored in ascending order by values of the NAME variable. 2. The data set EMPLOYEE.TEST is stored in descending order by values of the NAME variable. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The data set EMPLOYEE.TESTSORTED is stored in descending order by values of the NAME variable.
a set of variables grouped together for the duration of a data step by being given a name in an ARRAY statement. It a dummy variable exist just for the calculation purposes.
Question : The following SAS program is submitted: data stats; set revenue; array weekly{5} mon tue wed thu fri;
total = weekly{i} * .25; output; end; run; Which one of the following DO statements completes the program and processes the elements of the WEEKLY array? 1. do i = 1 to 5; 2. do weekly{i} = 1 to 5; 3. Access Mostly Uused Products by 50000+ Subscribers 4. A DO loop cannot be used because the variables referenced do not end in a digit.
Correct Answer : Get Lastest Questions and Answer : It is because you need a do loop to go through it 5 times for the 5 days and call the do lpool 'i'. This can then be referenced later on in 'total = weekly{i} * .25;'