The following SAS program is submitted:libname temp SAS data library;data work.new;set temp.jobs;format newdate mmddw10.;mdate = month(newdate);ddate = weekday(newdate);run;proc print data = work.new; run;The variable NEWDATE contains the SAS date value for April 15. 2005. What output is produced if April 15, 2005 falls on a Friday?
The contents of the raw data file PRODUCT are listed below:--------10-------20-------3024613 $25.31The following SAS program is submitted:data inventory;infile 'product';input idnum 5. @10 price;run;Which one of the following is the value of the PRICE variable?
A SAS program is submitted and the following SAS log is produced:2 data gt100;3 set ia.airplanes4 if mpg gt 100 then output;22 202ERROR: File WORK.IF.DATA does not exist.ERROR: File WORK.MPG.DATA does not exist.ERROR: File WORK.GT.DATA does not exist.ERROR: File WORK.THEN.DATA does not exist.ERROR: File WORK.OUTPUT.DATA does not exist.ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.ERROR 202-322: The option or parameter is not recognized and will be ignored.5 run;The IA libref was previously assigned in this SAS session.Which one of the following corrects the errors in the LOG?
The contents of the raw data file SIZE are listed below:--------10-------20-------3072 95The following SAS program is submitted:data test;infile 'size';input @1 height 2. @4 weight 2;run;Which one of the following is the value of the variable WEIGHT in the output data set?
The following SAS program is submitted:proc contents data = sashelp.class varnum; quit;What does the VARNUM option print?
The following SAS program is submitted:data WORK.COMPRESS;ID = "˜1968 05-10 567';NewID = compress (ID, "-");run;What will the value of NewID be in the WORK.COMPRESS data set?