Question: DATA X; DROP I J TEMPVAR; DO I= 1 TO 3; DO J=1 TO 5; TEMPVAR = I; NEWVAL=TEMPVAR * J; END; END: RUN; PROC

DATA X; DROP I J TEMPVAR; DO I= 1 TO 3; DO J=1 TO 5; TEMPVAR = I; NEWVAL=TEMPVAR * J; END; END: RUN; PROC SORT DATA=X; BY YEARs; RUN; PROC SORT DATA=Y; BY YEAR; RUN;

DO I=1 TO 10; DO J=1 TO 50; DO K=1 TO 100; statements; END; END; END;

IF YEAR GT 1995; IF GENDER EQ 'F' THEN OUTPUT OUTF; IF GENDER EQ 'M' THEN OUTPUT OUTM; End; End; End;

With the above SAS script, add the following:

  • Comments
  • Variable naming standard
  • Use of comments to present module description
  • Use comments to explain conditional logic
  • Use comments in the header section.
  • Include comments with each DATA step and PROC.
  • Proper indent for each script statement.
  • Calculate the script efficiency or execution time (Insert transaction time at beginning and then insert transaction at the end and then calculate the difference in minutes.
  • Remove any uninitialized variables.
  • Display proper error messages with the actual error co

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!