Question : You have been given a data set, which contains all the training courses provided by the HadoopExam.com, now you need to select particular data which has only three courses in output which are Hadoop, SAS, and Spark. Which of the following is correct statement to select these specific courses?
Correct Answer : Get Lastest Questions and Answer : Explanation: As you can see in the options only where condition is given and not the entire syntax. Hence, whenever you need to select particular value or values from the dataset where statement is one of the solution. However, we need to apply where statement correctly In option 4, we are correctly using the syntax with the IN operator. Here, IN operator will help you select the courses from dataset. Whenever you have more than one values on which selection depends than you can use IN operator. Make sure values are in parenthesis and separated by comma as well if they are character values then they should be individually enclosed by quotation mark. And values are case sensitive, hence it should be in the same case as stored with the dataset.
Question : You have been given some dataset HETRAIN.HELR, now you need to sort this dataset and sorted data needs to be copied in new dataset named NEWCOURSES. Which of the following is correct syntax?
4. proc sort from hetrain.helr1 to newcourses; by name; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: Whenever you want to sort the data you should have used SORT PROCECURE. As per the sort syntax, you should try to create new dataset whenever possible otherwise it will overwrite your existing dataset. Hence, DATA= is the dataset you want to sort. OUT= is the option to create new sorted dataset. Also when you want to sort the data you need to provide on which column you want to sort the data. Here, in the given option it would be sorted by name. So correct syntax is provided in Option 3
Question : Which of the following statement is correct when you want Date to appear on top of the page and output should not have page number defined?
1. When you want DATE without page number in output use system option date and withoutnumber
2. When you want DATE without page number in output use system option date and withoutpagenumber
4. When you want DATE without page number in output use system option date and NONNUMBER
Correct Answer : Get Lastest Questions and Answer : Explanation: You can provide system options as per your need. If you are running SAS university edition than try to download PDF output and see the results. options linesize=64 nocenter number date; NUMBER specifies that SAS print the page number on the first title line of each page of SAS output. NONUMBER specifies that SAS not print the page number on the first title line of each page of SAS output. DATE specifies that the date and the time that the SAS program started are printed at the top of each page of the SAS log and any output that is created by SAS. NODATE specifies that the date and the time are not printed.
Some of the options example are below NOCAPS Translate quoted strings and titles to upper case? CENTER Center SAS output? DATE Date printed in title? ERRORS=20 Maximum number of observations with error messages FIRSTOBS=1 First observation of each data set to be processed FMTERR Treat missing format or informat as an error? LABEL Allow procedures to use variable labels? LINESIZE=96 Line size for printed output MISSING=. Character printed to represent numeric missing values NOTES Print SAS notes on log? NUMBER Print page number on each page of SAS output? OBS=MAX Number of last observation to be processed PAGENO=1 Resets the current page number on the print file PAGESIZE=54 Number of lines printed per page of output PROBSIG=0 Number of significant figures guaranteed when printing P-values REPLACE Allow replacement of permanent SAS data sets? SOURCE List SAS source statements on log? NOSOURCE2 List included SAS source statements on log? YEARCUTOFF=1900 Cutoff year for DATE7. informat