The following SAS program is submitted: proc sort data = work.employee; by descending fname; proc sort data = work.salary; by descending fname; data work.empdata; merge work.employee work.salary; by fname; run; Why does the program rail to execute?
A.
The SORT procedures contain invalid syntax.
B.
The merged data sets are not permanent SAS data sets.
C.
The RUN statement was omitted alter each or the SORT procedures.
D.
The data sets were not merged in the order by which they were sorted.
The Code appears to be correct syntactically, but there's a small issue with the MERGE statement. You should use the BY statement after the MERGE statement to specify the variables by which the datasets are merged.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Sai_krishna_
1 year agoMouni_18
1 year, 2 months ago