SAS_Institute
A00-280 · Question #75
Given the following log entry: 45 data adsl; 46 merge dm (in=indm) 47 disp (in=indisp); 48 by subjid; 49 /*insert code here> 50 run; MERGE ISSUE: subjid=003 indm=1 indisp=0 MERGE ISSUE: subjid=005…
The correct answer is B. if indm ne indisp then put 'MERGE ISSUE:' subjid= indm= indisp=. See the full explanation below for the reasoning.
Question
Given the following log entry:
45 data adsl;
46 merge dm (in=indm)
47 disp (in=indisp);
48 by subjid;
49 /*insert code here>
50 run;
MERGE ISSUE: subjid=003 indm=1 indisp=0
MERGE ISSUE: subjid=005 indm=0 indisp=1
NOTE: There were 4 observations read from the data set WORK.DM.
NOTE: There were 4 observations read from the data set WORK.DISP.
NOTE: The data set WORK.ADSL has 5 observations and 3 variables.
NOTE: DATA statement used (Total process time):
cpu time 0.07 seconds
real time 0.01 seconds
Which line of code would produce the blue notes in the log?
Options
- Aif indm ne indisp then output 'MERGE ISSUE:' subjid= indm= indisp=;
- Bif indm ne indisp then put 'MERGE ISSUE:' subjid= indm= indisp=;
- C%if indm ne indisp %then %put 'MERGE ISSUE:' subjid= indm= indisp=;
- Dif indm ne indisp then put 'MERGE ISSUE: all ;
How the community answered
(52 responses)- A8% (4)
- B85% (44)
- C6% (3)
- D2% (1)
Community Discussion
No community discussion yet for this question.