Question: SAS initialization used: real time 3.07 seconds cpu time 2.17 seconds 1 2 = 'Disagree A Little' - 180 ERROR 180-322: Statement is not valid

SAS initialization used: real time 3.07 seconds cpu time 2.17 seconds 1 2 = 'Disagree A Little' - 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 2 3 = 'Neither Agree/Disagree' 3 4 = 'Agree A Little' 4 5 = 'Agree A Lot'; 5 RUN; 6 7 PROC PRINT DATA=new_dataset; NOTE: Writing HTML Body file: sashtml.htm ERROR: File WORK.NEW_DATASET.DATA does not exist. 8 FORMAT shopping_freq shopping_fmt.; 9 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE PRINT used (Total process time): real time 0.27 seconds cpu time 0.17 seconds 10 DATA new_dataset; 11 SET original_dataset; ERROR: File WORK.ORIGINAL_DATASET.DATA does not exist. 12 13 /* Create I GO SHOPPING FREQUENTLY variable */ 14 IF attitude_code = 636 THEN shopping_freq = 5; /* AGREE A LOT */ 15 ELSE IF attitude_code = 640 THEN shopping_freq = 4; /* AGREE A LITTLE */ 16 ELSE IF attitude_code = 645 THEN shopping_freq = 3; /* ANY AGREE */ 17 ELSE IF attitude_code = 649 THEN shopping_freq = 3; /* NEITHER AGREE/DISAGREE */ 18 ELSE IF attitude_code = 653 THEN shopping_freq = 2; /* DISAGREE A LITTLE */ 19 ELSE IF attitude_code = 657 THEN shopping_freq = 1; /* DISAGREE A LOT */ 20 ELSE shopping_freq = .; /* Missing Value */ 21 22 LABEL shopping_freq = 'Shopping Frequency'; 23 RUN; NOTE: The SAS

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