Hello,
I'm using Version 14 and am looping over a set of datasets defined by the following locals. The code works, but seems to skip over about a dozen of the datasets by no pattern I can identify--and with no error return code to give me a hint. I'm really puzzled by this. Are there any diagnostic checks any of you would recommend that I check for to figure out why the skipped over datasets were skipped?
Thanks so much Statalist for the endless generosity
Reese
I'm using Version 14 and am looping over a set of datasets defined by the following locals. The code works, but seems to skip over about a dozen of the datasets by no pattern I can identify--and with no error return code to give me a hint. I'm really puzzled by this. Are there any diagnostic checks any of you would recommend that I check for to figure out why the skipped over datasets were skipped?
Code:
local t1 T21993 local t2 T21022 local t3 T56803 local t4 T60389 local t5 T64030 local t6 T55336 local t7 T35438 local t8 T14499 local t9 T13816 local t10 T43334 local t11 T1447 local t12 T10178 local t13 T49379 local t14 T24265 local t15 T29591 local t16 T62567 local t17 T61807 local t18 T42889 local t19 T32784 local t20 T6773 local t21 T60593 local t22 T60045 local t23 T982 local t24 T19037 local t25 T57733 local t26 T15506 local t27 T213 local t28 T34407 local t29 T36045 local t30 T57179 local t31 T25565 local t32 T54219 local t33 T51368 local t34 T63414 local t35 T51494 local t36 T15478 local t37 T52401 local t38 T56070 local path "I:\EPI\Informatics\CUSTOMERS\Neurology\Neurology Datasets/" forv i=1/38{ use "`path'`t`i''L", clear foreach var of varlist _all{ cap if !mi(real(`var')) { destring `var', replace } } save "`path'`t`i''L", replace }
Reese
Comment