Explanation: If libname name is not specified, then the data will be stored in WORK. The Work library is the temporary library that is automatically defined by SAS at the beginning of each SAS session or job. The Work library stores temporary SAS files that you create, as well as files created internally by SAS. To access files in the Work library, specify a one-level name for the file. The libref Work is automatically assigned to these files unless you have assigned the User libref. When you invoke SAS, it assigns the Work libref to a subdirectory of the directory specified in the WORK system option described in System Options under UNIX. This subdirectory is usually named SAS_workcode_nodename , where: " workcode : is a 12-character code. The first four characters are randomly generated numbers. The next eight characters are based on the hexadecimal process identification number of the SAS session. " nodename : is the name of the UNIX computer where the SAS process is running. This libref cannot be cleared or reassigned during a SAS session.
Question :
Which statement is false regarding DO UNTIL statements?
1. The condition is evaluated at the top of the loop, before the enclosed statements are executed. 2. The enclosed statements are always executed at least once. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The DO loop must have a closing END statement.
Explanation: The DO UNTIL condition is evaluated at the bottom of the loop, so the enclosed statements are always excecuted at least once.
The expression is evaluated at the bottom of the loop after the statements in the DO loop have been executed. If the expression is true, the DO loop does not iterate again. There are three other forms of the DO statement:
The DO statement, the simplest form of DO-group processing, designates a group of statements to be executed as a unit, usually as a part of IF-THEN/ELSE statements.
The iterative DO statement executes statements between DO and END statements repetitively based on the value of an index variable.
The DO WHILE statement executes statements in a DO loop repetitively while a condition is true, checking the condition before each iteration of the DO loop. The DO UNTIL statement evaluates the condition at the bottom of the loop; the DO WHILE statement evaluates the condition at the top of the loop. Note: The statements in a DO UNTIL loop always execute at least one time, whereas the statements in a DO WHILE loop do not iterate even once if the condition is false.
Question : Which of the following program will create following output
A. proc print data=hetrain.helr2; var DATE LOCATION FEE NOOFSTUDENTS; sum FEE NOOFSTUDENTS; run;
B. proc print data=hetrain.helr2; var DATE LOCATION ; sum FEE NOOFSTUDENTS; run;
C. proc print data=hetrain.helr2; var DATE LOCATION FEE ; sum FEE NOOFSTUDENTS; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: All the given options are correct. You do not need to name the variables in a VAR statement if you specify them in the SUM statement, but you can. If you choose not to name the variables in the VAR statement as well, then the SUM statement determines their order in the output.