Correct Answer : Get Lastest Questions and Answer : Explanation: PUTLOG statement is good if you are facing the logical error and you can use it to debug various values during the SAS program run. Logical errors means output generated is not as per your expectations.
Question : Which of the following code can generate below results?
1. proc print data=hetrain.helr1 noobs; var ID DATE date8. LOCATION$ FEE; label DATE='Start On' LOCATION='Training Venue'; where FEE>=4000; run;
2. proc print data=hetrain.helr1; var ID DATE date8. LOCATION$ FEE; where FEE>=4000; label DATE='Start On' LOCATION='Training Venue'; run;
4. proc print hetrain.helr1 noobs; id date; var ID DATE date8. LOCATION FEE; where FEE>=4000; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: Replacing with Custom ID: If you want your own id in output from the dataset, to identify an observation. Both ID and VAR: You can have both id and var to select specific columns in output. If column appears in both id and var than it will be two times in output. Assigning Descriptive Label: You can assign up to 256 character long labels to table columns.
Question : Which group processing statement produced the PROC MEANS output shown in left ?
Explanation: A CLASS statement produces a single large table, whereas BY group processing creates a series of small tables. The order of the variables in the CLASS statement determines their order in the output table.
Ans : 1 Exp : Concatenating appends the observations from one data set to another data set. The new data set contains the total number of records from all input data sets, so b is incorrect. All the variables from all the input data sets appear in the new data set, so c is incorrect.
Question : If you concatenate the data sets below in the order shown, what is the value of Sale in observation 2 of the new data set?
Ans : 1 Exp : The concatenated data sets are read sequentially, in the order in which they are listed in the SET statement. The second observation in Sales.Reps does not contain a value for Sale, so a missing value appears for this variable. (Note that if you merge the data sets, the value of Sale for the second observation is $30,000.)
Question : You have been given below dataset
You run the below program
data course100 (drop=COURSE_ID); merge course101 (in=in_first rename=(DATE=TRAINING_DATE)) course102 (drop=FEE in=in_second rename=(DATE=REGISTRATION_DATE)) ; by COURSE_ID; if in_first and in_second; run;
What is the output?
1. Merged data will be generated wherever column name matches and course_id will be dropped.
2. In merged data DATE columns will not be renamed.