114
Question 1: %LET THING1=GIFT; %LET THING2=SURPRISE; %LET GIFT1=BOOK; %LET GIFT2=JEWELRY; %LET SURPRISE1=DINNER; %LET SURPRISE2=MOVIE; %LET PICK=2; %LET CHOICE=SURPRISE; Desired Result in log is: My favorite surprise is a movie Find out the Answer!!!

YLP SAS Advanced Certification Slides

  • Upload
    nare999

  • View
    248

  • Download
    4

Embed Size (px)

DESCRIPTION

SAS advanced Certification, Power point presentation on SAS interview questions.

Citation preview

PowerPoint Presentation

Question 1:

%LET THING1=GIFT;%LET THING2=SURPRISE;%LET GIFT1=BOOK;%LET GIFT2=JEWELRY;%LET SURPRISE1=DINNER;%LET SURPRISE2=MOVIE;

%LET PICK=2;%LET CHOICE=SURPRISE;

Desired Result in log is: My favorite surprise is a movie Find out the Answer!!!Y.L.PRASAD 08978784848Question 2:

%let name1=shoes;%let name2= cloths;%let root=name;%let suffix=2;

%put &&&root&suffix;

What would be written in the Log Widow?Y.L.PRASAD 08978784848Question 3:

Which SET statements option names a variable that contains the number of the observation to read during the current iteration of the DATA step?

A. OBS=pointobsB. POINT=pointobsC. KEY=pointobsD. NOBS=pointobsY.L.PRASAD 08978784848Question 4:

When reading a SAS data file, what does the NOBS=option on the SET statement represent?

A. A variable that represents the total number of observation in the output data set(s)B. A variable that represents a flag indicating the end of the fileC. A variable that represents the total number of observations in the input data set(s)D. A variable that represents the current observation numberY.L.PRASAD 08978784848Question 5:

The following SAS program is submitted:

%macro check(num=4);%let result=%sysevalf(&num+0.5);%put result is &result;%mend;

%check(num=10)

What is the written to the SAS log?Y.L.PRASAD 08978784848Question 6:

The following SAS program is submitted:

%micro test(var);%let jobs=BLACKSMITH WORDSMITH SWORDSMITH;%let type=%index(&jobs,&var);%put type = &type;%mend;

%test(SMITH)

What is the value of the macro variable TYPE when the %PUT statement executes?Y.L.PRASAD 08978784848Question 7:

The following SAS program is submitted:

%macro check(num=4);%let result=%eval(&nm gt 5);%put result is &result;%mend;

%check (num=10)

What is written to the SAS log?Y.L.PRASAD 08978784848Question 8:

The following SAS program is submitted:

Data temp;length 1 b 3 x;Infile 'file reference';input a b x;Run;

What is the result?Y.L.PRASAD 08978784848Question 9:

The following SAS program is submitted:

%let dept=prod;%let prod=merchandise;

The following message is written to the SAS log:The value is "merchandise

Which SAS System option writes this message to the SAS log?

Y.L.PRASAD 08978784848Question 10:

The SAS data set WORK.TEMPDATA contains the variables FMTNAME, START and LABEL and it consists of 10 observations.

The following SAS program is submitted:

Proc format cntlin=work.tempdata;Run;

What is the result of submitting the FORMAT procedure step?Y.L.PRASAD 08978784848Question 11:

The following SAS program is submitted:

date view=sauser.ranch;describe;run;

What is the result?Y.L.PRASAD 08978784848Question 12:

Which SAS procedure changes the name of a permanent format for a variable stored in a SAS data set?

A. DATASETSB. MODIFYC. FORMATD. REGISTRYY.L.PRASAD 08978784848Question 13:Given the SAS data set ONE:DIVISION SALESA 1234A 3654B 5678

The following SAS program is submitted:Data_null_;Set one;By division;If first.division thenDo;%let mfirst=sales;end;run;

What is the value of the macro variable MFRIST when the program finishes execution?Y.L.PRASAD 08978784848Question 14:The following SAS program is submitted:

%let first=yourname;%let last=first;%put &&&last;

What is written to the SAS Log?

A. FirstB. YournameC. &&FirstD. &yournameY.L.PRASAD 08978784848Question 15:

The following SAS program is submitted:

%let a=cat;%macro animal(a=frog);%let a=bird;%mend;%animal(a=pig)

%put a is &a;

What is written to the SAS log?Y.L.PRASAD 08978784848Question 16:

The following SAS program is submitted:

%let lib=%upcase(sauser);proc sql;select nvar form dictionary.tables where libname='&lib";quit;

Several SAS data sets exist in the SAUSER library.

What is generated as output?Y.L.PRASAD 08978784848Question 17:

The following SAS program is submitted:

proc contents data = testdata.one;run;Which SQL procedure program produces similar information about the column attributes of the dataset TESTDATA.ONE?

A. proc sql; Contents table testdata.one; Quit;B. proc sql; Describe table testdata.one; Quit;C. proc sql; describe testdata.one; Quit;D. proc sql; Contents testdata.one; Quit;Y.L.PRASAD 08978784848Question 18:

Given the SAS data set ONE:NUM VAR1 A2 B3 C

Which SQL procedure program deletes the data set ONE?

A. proc sql; Drop table one; Quit;B. proc sql; Remove table one; Quit;C. proc sql; Delete table one; Quit;D. proc sql; Delete from one; Quit;Y.L.PRASAD 08978784848Question 19:

The following SAS program is submitted:

%macro location;data _null_;call symput ('dept','sales');run;%let country=Germany;%put_global_;%mend;%let company = ABC;%location;

Which macro variables are written to the SAS log?Y.L.PRASAD 08978784848Question 20:

What is the purpose of the SASFILE statement?

A. It requests that SAS data set be opened and loaded into SAS memory one page at a timeB. It requests that a SAS data set the opened and loaded into SAS memory one variable at a timeC. It requests that a SAS data set be opened and loaded into SAS memory one observation at a timeD. It requests that a SAS data set be opened and loaded into SAS memory in its entiretyY.L.PRASAD 08978784848Question 21:

The following SAS program is submitted:

data new (bufno=4);set old(bufno=4);run;

Why are the BUFNO options used?

A. To reduce the number I/O operationsB. To reduce network trafficC. To reduce memory usageD. To reduce the amount of data readY.L.PRASAD 08978784848Question 22:

The following SAS program is submitted:

options Reuse=YES;data sasuser RealEstate(compress=CHAR);set sasuser houses;run;

What is the effect of the REUSE=YES SAS system option?

A. It tracks and recycles free spaceB. It allows a permanently stored SAS data set to be replacedC. It allows users to access the same SAS data set concurrentlyD. It allows updates in placeY.L.PRASAD 08978784848Question 23:

Which statement(s) in the DATASETS procedure alter(s) the name of a SAS data set stored in a SAS data library?

A. MODIFY and CHANGE statementsB. RENAME statement onlyC. CHANGE statement onlyD. MODIFY and RENAME statementsY.L.PRASAD 08978784848Question 24: Given the data set SASHELP.CLASSNAME AGEMary 15Philip 16Robert 12Ronald 15

The following SAS program is submitted%let value = Philip;proc print data =sashelp.class;

run;

Which WHERE statement successfully completes the program and produces a report?A. Where upcase(name)="upcase(&value)";B. Where upcase(name)="%upcase(&value)";C. Where upcase(name)=upcase(&value);D. Where upcase(name)=%upcase(&value);Y.L.PRASAD 08978784848Following SAS program is submitted:data temp();infile 'rawdata';input x $ y z;run;

RAWDATA is a file reference to an external file that is ordered by the variable X.Which option specifies how the data in the SAS data set TEMP will be sorted?

A. ORDEREDBY=XB. GROUPBY=XC. SORTEDBY=XD. SORTSYNC=XY.L.PRASAD 08978784848Given the following partial SAS log:NOTE: SQL table SASHELP.CLASS was created lineCreate table SASHELP.CLASS(bufsize=4096)(Name char(8);Gender Char(1);Age num;Height num;Weight num);

Which SQL procedure statement generated this output?A. DESCRIBE TABLEB. LIST TABLEC. VALIDATE TABLED. CREATE TABLEY.L.PRASAD 08978784848The following SAS program is submitted:

options mprint;%macro test(parm);proc &parm data = sashelp.prdsale;run;%mend;%test(print)

What is the result of the MPRINT options?

A. It has no effect in this exampleB. It writes the original program code inside the marco definition to the SAS logC. It writes macro execution messages to the SAS.logD. It echoes the text sent to the SAS compiler as a result of macro execution in the SAS logY.L.PRASAD 08978784848At the start of a new SAS session; the following program is submitted:

%macro one;data _null_;call symput('proc','means);run;proc &proc data=sashelp.class;run;%mend;%one()

What is the result?

A. The marco variable PRCO is stored in the SAS catalog WORK.SASMACRB. The program fails to execute because PROC is a reserved wordC. The macro variable PROC is stored in the local symbol tableD. The macro variable PROC is stored in the global symbol tableY.L.PRASAD 08978784848The following SAS program is submitted:

%let value=9;%let add=5;%let newval=%eval(&value/&add);

What is the value of the macro variable NEWVAL?

A. nullB. 2C. 1D. 1.8Y.L.PRASAD 08978784848Given the non-indexed SAS data set TEMP:X YP 52P 45A 13A 56R 34R 12R 78The following SAS program is submitted:Proc print data=temp; (select avg(cost) from one);quit;

Which one of the following reports is generated?Y.L.PRASAD 08978784848The following SAS program is submitted:

proc sort data = sales tagsort;by month year;run;

Which of the following resource(s) is the TAGSORT option reducing?

A. I/O usage onlyB. CPU usage onlyC. I/O and CPU usageD. temporary disk usageY.L.PRASAD 08978784848The following SAS program is submitted:

data one;do i = 1 to 10;ptobs = ceil(ranuni(0) * totobs);set temp point = ptobsnobs = totobs;output;end;stop;run;

The SAS data set TEMP contains 2,500,000 observations. Which one of the following represents the possible values for PTOBS?Y.L.PRASAD 08978784848The following SAS code is submitted:%macro houses(dsn = houses,sub = RANCH);data &dsn;set sasuser.houses;if style = "";run;%mend;

%houses(sub = SPLIT)%houses(dsn = ranch)%houses(sub = TWOSTORY)

Which one of the following is the value of the automatic macro variable SYSLAST?

A. work.ranchB. work.housesC. WORK.RANCHD. WORK.HOUSESY.L.PRASAD 08978784848Which one of the following statements is true?

A. The WHERE statement can be executed conditionally as part of an IF statement.B. The WHERE statement selects observations before they are brought into the PDV.C. The subsetting IF statement works on observations before they are read into the PDV.D. The WHERE and subsetting IF statements can be used interchangeably in all SAS programs.Y.L.PRASAD 08978784848Given the following SAS statement:%let idcode = Prod567;

Which one of the following statements stores the value 567 in the macro variable CODENUM?

A. %let codenum = substr(&idcode,length(&idcode)-2);B. %let codenum = substr(&idcode,length(&idcode)-3);C. %let codenum = %substr(&idcode,%length(&idcode)-2);D. %let codenum = %substr(&idcode,%length(&idcode)-3);Y.L.PRASAD 08978784848Which one of the following is an advantage of creating and using a SAS DATA step view?

A. It can store an index.B. It always accesses the most current data.C. It works quickly through multiple passes of the data.D. It is useful when the underlying data file structure changes.Y.L.PRASAD 08978784848Given the following SAS data sets ONE and TWO:

ONE TWOYEAR QTR BUDGET YEAR QTR SALES2001 3 500 2001 4 3002001 4 400 2002 1 6002002 1 700

The following SAS program is submitted:

proc sql;select one.*, salesfrom one, two;quit;

Which one of the following reports is generated?Y.L.PRASAD 08978784848Given the following SAS data set ONE:NUM VAR1 A2 B3 C

Which one of the following SQL programs deletes the SAS data set ONE?A. proc sql; delete table one; quit;B. proc sql; alter table one drop num, var; quit;C. proc sql; drop table one; quit;D. proc sql; delete from one; quit;Y.L.PRASAD 08978784848Given the following SAS data set ONE:GROUP SUMA 765B 123C 564

The following SAS program is submitted:data _null_;set one;call symput(group,sum);run;

Which one of the following is the result when the program finishes execution?

A. Macro variable C has a value of 564.B. Macro variable C has a value of 1452.C. Macro variable GROUP has a value of 564.D. Macro variable GROUP has a value of 1452.Y.L.PRASAD 08978784848Given the following SAS data set ONE:COUNTRY CITY VISITUSA BOSTON 10UK LONDON 5USA DALLAS 10UK MARLOW 10USA BOSTON 20UK LONDON 15USA DALLAS 10

The following SAS program is submitted:

proc sql;select country, city, sum(visit) as TOTAL from onegroup by country, cityorder by country, total desc;quit;

Which one of the following reports is generated?Y.L.PRASAD 08978784848Which one of the following automatic SAS macro variables contains the return code from a previously executed step?

A. &RCB. &ERRC. &SYSRCD. &SYSERRY.L.PRASAD 08978784848The SAS data set ONE has a variable X on which an index has been created. The data sets ONE and THREE are sorted by X. Which one of the following SAS programs uses the index to select observations from the data set ONE?

A. data two; set three; set one key = X; run;B. data two; set three key = X; set one; run;C. data two; set one; set three key = X; run;D. data two; set three; set one (key = X); run;Y.L.PRASAD 08978784848Given the following SAS data set ONE:REP AREA COSTSMITH NORTH 100SMITH SOUTH 200JONES EAST 100SMITH NORTH 300JONES WEST 100JONES NORTH 200JONES NORTH 400SMITH NORTH 400JONES WEST 100JONES WEST 300

The following SAS program is submitted:proc sql;select rep, area, count(*) as TOTAL from onegroup by rep, area;Quit;Which one of the following reports is generated?Y.L.PRASAD 08978784848Text is sent to the SAS compiler as a result of macro execution. Which one of the following SAS system options writes that text to the log?

A. MPRINTB. MLOGICC. MSOURCED. SOURCE2Y.L.PRASAD 08978784848Which one of the following SAS SORT procedure options eliminates identical consecutive observations?

A. NODUPB. UNIQUEC. DISTINCTD. NODUPKEYY.L.PRASAD 08978784848The following SAS program is submitted:

data temp;array points{3,2}_temporary_ (10,20,30,40,50,60);score = points{2,1}run;

Which one of the following is the value of the variable SCORE in the data set TEMP?

A. 10B. 20C. 30D. 40Y.L.PRASAD 08978784848The following SAS FORMAT procedure is submitted:

Proc format lib = sasuser;value tempc low < 0 = 'BELOW FREEZING'0 < 5 = 'COLD'5 < 10 = 'MILD'10 < 15 = 'WARM'15 high = 'HOT';Run;

How is the value 10 displayed when the format TEMPC is applied?

A. 10B. MILDC. WARMD. BELOW FREEZINGY.L.PRASAD 08978784848The following SAS program is submitted:

%macro execute;

proc print data = sasuser.houses;run;%end;%mend;

Which of the following completes the above program so that it executes on Tuesday?

A. %if &sysday = Tuesday %then %do;B. %if &sysday = 'Tuesday' %then %do;C. %if "&sysday" = Tuesday %then %do;D. %if '&sysday' = 'Tuesday' %then %do;Y.L.PRASAD 08978784848Which one of the following statements is true regarding a SAS DATA step view?

A. It allows write capabilities.B. It contains global statements.C. It contains data and a descriptor portion.D. It contains a partially compiled DATA step.Y.L.PRASAD 08978784848Assume today is Tuesday, July 23, 2002. Which one of the following statements submitted at the beginning of a SAS session assigns the value Tuesday, July 23, 2002 to the macro variable START?

A. %let start = today(),weekdate.;B. %let start = today(),format=weekdate.;C. %let start = %sysfunc(today(),weekdate.);D. %let start = %sysfunc(%today(),weekdate.);Y.L.PRASAD 08978784848The following SAS program is submitted:

%macro test(var);%let jobs = BLACKSMITH WORDSMITH SWORDSMITH;%let type = %index(&jobs,&var);%mend;%test(SMITH)

Which one of the following is the resulting value of the macro variable TYPE?Y.L.PRASAD 08978784848Which one of the following options displays the value of a macro variable in the SAS log?

A. MACROB. SOURCEC. SOURCE2D. SYMBOLGENY.L.PRASAD 08978784848The following SAS ARRAY statement is submitted:array score{*} a4 - a10, a25 ;

Which one of the following is the maximum number of elements stored?

A. 3B. 7C. 8D. 11Y.L.PRASAD 08978784848When is it appropriate to create indexes on a SAS data set for efficient processing?

A. if small subsets of data are often retrievedB. if the key variable has very few unique valuesC. if the data are often used for BY group processingD. if the SAS data set file page count is less than three pagesY.L.PRASAD 08978784848Which one of the following is the purpose of the REUSE= YES option in a compressed SAS data set?

A. It temporarily compresses observations in a SAS data set.B. It allows users to update the same SAS data set concurrently.C. It allows new observations to be inserted wherever enough free space exists.D. It specifies that a new empty data set with a given name replaces an existing data set with the same name.Y.L.PRASAD 08978784848Which one of the following is true regarding the KEEP statement?

A. The KEEP statement is available in both the DATA and the PROC steps.B. The KEEP statement selects the variables read from the input data set(s).C. The KEEP statement applies to all data sets created within the same DATA step.D. The KEEP statement applies only to the first data set created within the same DATA step if more than one data set is created.Y.L.PRASAD 08978784848Which one of the following displays the definition of a stored SQL procedure view in the SAS log?

A. ECHOVIEW optionB. EXPANDVIEW optionC. VALIDATE VIEW statementD. DESCRIBE VIEW statementY.L.PRASAD 08978784848The following SAS program is submitted:

data temp;array points{2,3}_temporary_;run;

Which one of the following is the maximum number of elements that are stored?

A. 2B. 3C. 5D. 6Y.L.PRASAD 08978784848Which one of the following is the purpose of the IDXNAME= data set option?

A. It instructs SAS to name and store a specific index.B. It instructs SAS to store an index in a particular location.C. It instructs SAS to use a specific index for WHERE processing.D. It instructs SAS to use any available index for WHERE processing.Y.L.PRASAD 08978784848The DICTIONARY.MACROS table stores information about which of the following?

A. user defined macro variables onlyB. system defined macro variables onlyC. both user and system defined macro variablesD. macros stored in the autocall macro library onlyY.L.PRASAD 08978784848Given the following SAS data set named WORK.INTERNAT:LOCATION SUMUSA 30EUR 40The following SAS program is submitted:%let LOC = Usa;proc sql;select * from internatwhere location = "&Loc";quit;

Which one of the following is the result when the above code is executed on the above data set?

A. A report is generated with one destination.B. No report is generated as the case of the compared values is different.C. No report is generated as the case of the macro variable name is different.D. A report is generated with the two original observations as the where clause does not work.Y.L.PRASAD 08978784848The following SAS program is submitted:

proc sql;select * from dictionary.tables;quit;

Which one of the following is reported?

A. metadata on all tables in all librariesB. metadata on all tables in the WORK library onlyC. metadata on all tables in the SASUSER library onlyD. metadata on all tables in the DICTIONARY library onlyY.L.PRASAD 08978784848The following SAS program is submitted:data two;y = '2';run;%let x = 10;%let var = y;data one;set two (keep = &var);z = &var * &x;run;

Which one of the following is the value of the variable Z when the program finishes execution?

A. _ERROR_B. 20 (as a numeric)C. 20 (as a character)D. . (missing numeric)Y.L.PRASAD 08978784848Which one of the following options is available for SAS macro debugging?

A. MLOGICB. MDEBUGC. MSGLEVELD. MAUTOSOURCEY.L.PRASAD 08978784848Given the following SAS data sets ONE and TWO:ONE TWOYEAR QTR BUDGET YEAR QTR SALES2001 3 500 2001 4 3002001 4 400 2002 1 6002002 1 700

The following SAS program is submitted:

proc sql;select one.*, salesfrom one left join twoon one.year = two.year;quit;

Which one of the following reports is generated?Y.L.PRASAD 08978784848Given the following SAS data sets ONE and TWO:

ONE TWOYEAR QTR BUDGET YEAR QTR SALES2001 3 500 2001 4 3002001 4 400 2002 1 6002002 1 700

The following SAS program is submitted:proc sql;select one.*, salesfrom one, two;quit;

Which one of the following reports is generated?Y.L.PRASAD 08978784848Given the following SAS program:

proc sql;select product, type, sum(sales) as revenuefrom onegroup by product, type;quit;

Which one of the following clauses should be added to the program to sort the output by PRODUCT and decreasing REVENUE?

A. order by 1, 3B. order by 1, 3 descC. orderby product, revenue descD. order by product, desc revenueY.L.PRASAD 08978784848The following SAS program is submitted:

%macro test(var);proc print data = sasuser.class;where age > &var;run;%mend;

Which type of parameter is the macro variable VAR?

A. defaultB. keywordC. positionalD. commandY.L.PRASAD 08978784848Which one of the following techniques concatenates data in SAS?

A. the APPEND procedureB. the DATA step with a MERGE statementC. the DATA step with a COMBINE statementD. the INTERSECT operator in the SQL procedureY.L.PRASAD 08978784848Given the following SAS data set ONE:CATEGORY AGE SALARY BONUSM 28 200 20M 25 100 10M 28 300 10M 33 300 30F 18 100 50F 25 200 10F 35 400 50

The following SQL program is submitted:proc sql;create table two asselect distinct age from onewhere age < 33;quit;How many rows are written to the SAS data set TWO?Y.L.PRASAD 08978784848Which one of the following should be avoided when creating and using an SQL procedure view?

A. using a HAVING clauseB. using summary functionsC. referencing a view multiple times in the same programD. creating views on tables whose structures remain constantY.L.PRASAD 08978784848The following SAS program is submitted:

%let value = .5;%let add = 5;%let newval = %eval(&value + &add);

Which one of the following is the resulting value of the macro variable NEWVAL?

A. 5B. 5.5C. .5 + 5D. nullY.L.PRASAD 08978784848Which one of the following statements about compressed SAS data sets is always true?

A. Each observation is treated as a single string of bytes.B. Each observation occupies the same number of bytes.C. An updated observation is stored in its original location.D. New observations are added to the end of the SAS data set.Y.L.PRASAD 08978784848Given the following SAS data set ONE:DIVISION SALESA 1234A 3654B 5678

The following SAS program is submitted:data _null_;set one;by division;if first.division thencall symput('mfirst',sales);if last.division thencall symput('mlast',sales);run;

Which one of the following is the value of the macro variable MFIRST when the above program finishes execution?Y.L.PRASAD 08978784848Which one of the following SAS programs displays the descriptor portion of each data set stored in the SASUSER library?

A. proc datasets lib = sasuser.all;quit;B. proc datasets lib = sasuser._all_;quit;C. proc datasets lib = sasuser;contents data = all;quit;D. proc datasets lib = sasuser;contents data = _all_;quit;Y.L.PRASAD 08978784848The following SAS program is submitted:

%let name = Patel's Restaurant;

Which one of the following statements avoids problems associated with the unbalanced quotation mark?

A. %let name = Patel%'s Restaurant;B. %let name = %str(Patel's Restaurant);C. %let name = Patel%str(')s Restaurant;D. %let name = %str(Patel%'s Restaurant);Y.L.PRASAD 08978784848The following SAS program is submitted:

%let var = chicago, 1;data a;var = 'new york, 2';newvar = %scan(&var,2,%str());run;

Which one of the following explains why the program fails to execute?

A. The %STR() is invalid syntax.B. The %SCAN function does not exist.C. The %SCAN function has too many arguments.D. The macro variable VAR does not get created properly.Y.L.PRASAD 08978784848%let name1=shoes;%let name2= cloths;%let root=name;%let suffix=2;

%put &&&root&suffix;Y.L.PRASAD 08978784848The following SAS program is submitted:%let dept=prod;%let prod=merchandise;

The following message is written to the SAS log:The value is "merchandise

Which SAS System option writes this message to the SAS log?Y.L.PRASAD 08978784848DATA CLASS1; INPUT NAME$ COURSE$; CARDS;LAUREN MATH1PATEL MATH1CHANG MATH1;RUN;DATA CLASS2; INPUT NAME$ CLASS$; CARDS;SMITH MATH2FARMER MATH2PATEL MATH2HILLIER MATH2;RUN;

The following output is desired:ChangLauren

PROC SQL; SELECT NAME FROM WORK.CLASS1 SELECT NAME FROM WORK.CLASS2;QUIT; Y.L.PRASAD 08978784848DATA CLASS1; INPUT NAME$ COURSE$; CARDS;LAUREN MATH1PATEL MATH1CHANG MATH1CHANG MATH3;RUN;

DATA CLASS2; INPUT NAME$ CLASS$; CARDS;SMITH MATH2FARMER MATH2PATEL MATH2HILLIER MATH2;RUN;

The following output is desiredChangChanglauren

PROC SQL; SELECT NAME FROM WORK.CLASS1 EXCEPT ALL SELECT NAME FROM WORK.CLASS2 ; QUIT;Y.L.PRASAD 08978784848DATA ONE; INPUT ID NAME$; CARDS;112 SMITH243 WEI457 JONES;RUN;

DATA TWO; INPUT ID SALARY; CARDS;243 150000355 45000523 75000;RUN;

DATA WORK.COMBINE; MERGE WORK.ONE WORK.TWO; BY ID; RUN;

Which SQL Procedure produce the same result?Y.L.PRASAD 08978784848data one;input x$ y @@;cards;A 10 A 3 A 14 B 9;run;data two;input sum y;cards;36;run;

data work.combine;if _n_=1 then set work.two;set work.one;run;

What data values are stored in work.combineY.L.PRASAD 08978784848DATA FIRST; INPUT COMMON$ X; CARDS; A 10 A 13 A 14 B 9 ; RUN;

DATA SECOND; INPUT COMMON$ Y; CARDS; A 1 A 3 B 4 B 2 ; RUN;

DATA WORK.COMBINE; SET WORK.FIRST; SET WORK.SECOND; RUN;

What data values are stored in work.combine?Y.L.PRASAD 08978784848Which System option will aid in Bench Marking?

A) SYSTIMERB) IOBLOBKSIZE=C) BUFSIZE= and BUFNO=d) FULLSTIMERY.L.PRASAD 08978784848DATA WORK.NEW; DO I=1,2,3; NEXT=CATS('MARCH'||I); INFILE XYZ FILEVAR=NEXT END=EOF; DO UNTIL (EOF); INPUT DEPT $ SALES; END; END;RUN;

The Purpose of the FILEVAR= option in Infile Statement is:Y.L.PRASAD 08978784848What is an advantage of using a hash object in a SAS DATA step?

A. The hash object persists after the DATA step has executedB. The hash object key values can be multiple numeric and character data valuesC. The hash object automatically sorts the dataD. The hash object does not require unique keysY.L.PRASAD 08978784848Which Macro statement would remove the macro Variable ylp_sas from the Symbol table

A) %Symdel ylp_sasB) %Symdel &ylp_sasc) %Symerase ylp_sasD) %Mdelete &ylp_sasY.L.PRASAD 08978784848Which title statement would always display the current date?

A) Title "Today is: &today.";B) Title "Today is: &Sysdate.";C) Title "Today is: &Sysdate9.";D) Title "Today is: %Sysfunc(today(),worddate.)";Y.L.PRASAD 08978784848Which statements are true regarding SAS Views? (Choose Two)

--> A SAS View can perform multi table join--> Data step views have update capability--> A SAS View retrieves data values from other files--> A SAS View that is created with proc sql is an interface viewY.L.PRASAD 08978784848The NOTSORTED Option on the BY statement cannot be used with which other statement or option?

A) SETB) MergeC) IF First. By VariableD) By Groupformat By-VariableY.L.PRASAD 08978784848%LET NUM1=7;%LET NUM2=3;

%LET RESULT=%EVAL(&NUM1/&NUM2);

%PUT &RESULT;

What is the Value of the RESULT when %PUT statement Executes?Y.L.PRASAD 08978784848%let this_year=%substr(&sysdate9,6);%let next_year=&this_year+1;%let year_check=%eval(&next_year