1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 data abc; 70 input names $; 71 datalines; NOTE: The data set WORK.ABC has 7 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 778.50k OS Memory 21924.00k Timestamp 08/17/2023 01:21:58 AM Step Count 322 Switch Count 2 Page Faults 0 Page Reclaims 144 Page Swaps 0 Voluntary Context Switches 9 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 264 79 ; 80 run; 81 82 data sales; 83 input car ; 84 datalines; NOTE: The data set WORK.SALES has 8 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 778.62k OS Memory 21924.00k Timestamp 08/17/2023 01:21:58 AM Step Count 323 Switch Count 2 Page Faults 0 Page Reclaims 100 Page Swaps 0 Voluntary Context Switches 10 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 272 93 ; 94 run; 95 96 proc sql; 97 select Names into :nme separated by ' ' from abc; 98 quit; NOTE: PROCEDURE SQL used (Total process time): real time 0.00 seconds user cpu time 0.01 seconds system cpu time 0.00 seconds memory 5587.71k OS Memory 27048.00k Timestamp 08/17/2023 01:21:58 AM Step Count 324 Switch Count 0 Page Faults 0 Page Reclaims 126 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 8 99 100 %put &nme.; john ronald Katie Stephen Mike Steve Mary 101 %let ct = %sysfunc(countw(&nme.)); 102 %put ct = &ct.; ct = 7 103 104 %macro t; 105 %do i = 1 %to %sysfunc(countw(&nme.)); 106 %let vrnm&i. = %scan(&nme.,&i.); 107 %PUT vrnm&i. = &&vrnm&i. ; 108 109 DATA _NULL_; 110 SET SALES; 111 CALL SYMPUT (CATS("C_&&VRNM&i."),STRIP(PUT(CAR,8.2))); 112 RUN; 113 %PUT C_M&i. = C_&&VRNM&i.; 114 115 116 117 118 %end; 119 %mend; 120 %t; vrnm1 = john NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 21924.00k Timestamp 08/17/2023 01:21:58 AM Step Count 325 Switch Count 0 Page Faults 0 Page Reclaims 67 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M1 = C_john vrnm2 = ronald NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 21924.00k Timestamp 08/17/2023 01:21:58 AM Step Count 326 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M2 = C_ronald vrnm3 = Katie NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 22180.00k Timestamp 08/17/2023 01:21:58 AM Step Count 327 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M3 = C_Katie vrnm4 = Stephen NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 22180.00k Timestamp 08/17/2023 01:21:58 AM Step Count 328 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M4 = C_Stephen vrnm5 = Mike NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 22180.00k Timestamp 08/17/2023 01:21:58 AM Step Count 329 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M5 = C_Mike vrnm6 = Steve NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 22180.00k Timestamp 08/17/2023 01:21:58 AM Step Count 330 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M6 = C_Steve vrnm7 = Mary NOTE: There were 8 observations read from the data set WORK.SALES. NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format. NOTE: DATA statement used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 758.25k OS Memory 22180.00k Timestamp 08/17/2023 01:21:58 AM Step Count 331 Switch Count 0 Page Faults 0 Page Reclaims 62 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 C_M7 = C_Mary 121 122 123 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 133