Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

Describe four issues that affect career management

Answered: 1 week ago