Thank you so much, Rezza. I am not sure what role "view= " does play. Regardless of whether dropping "view=" command, I had the same error message. Your help will be highly appreciated. 163 data s3; view=s3; 164 array dep{16} _temporary_; 165 array indep1{16} _temporary_; 166 array indep2{16} _temporary_; 167 set s2; by gvkey; 168 if first.gvkey then 169 call missing(of dep{*}, of indep1{*}, of indep2{*}); 170 i = 1 + mod(_n_, dim(dep)); 171 dep{i} = logchsga; 172 indep1{i} = logchsale; 173 indep2{i} = declogchsale; 174 if n(of dep{*}) = dim(dep) and 175 n(of indep1{*}) = dim(indep1) and 176 n(of indep2{*}) = dim(indep2) then 177 do j = i+1 to i+dim(dep); 178 k = 1 + mod(j, dim(dep)); 179 _logchsga = dep{k}; 180 _logchsale = indep1{k}; 181 _declogchsale = indep2{k}; 182 output; 183 end; 184 keep gvkey fyearq fqtr logchsga logchsale declogchsale 185 _logchsga _logchsale _declogchsale; 186 run; ERROR: Unable to create WORK.S3.DATA because WORK.S3.VIEW already exists. NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 1 observations read from the data set WORK.S2. NOTE: DATA statement used (Total process time): real time 0.04 seconds cpu time 0.04 seconds
... View more