___ ____ ____ ____ ____ (R) /__ / ____/ / ____/ ___/ / /___/ / /___/ 16.1 Copyright 1985-2019 StataCorp LLC Statistics/Data analysis StataCorp 4905 Lakeway Drive College Station, Texas 77845 USA 800-STATA-PC https://www.stata.com 979-696-4600 stata@stata.com 979-696-4601 (fax) Stata license: 150-user network perpetual Serial number: 401606205646 Licensed to: Boston University Boston Notes: 1. Stata is running in batch mode. 2. Unicode is supported; see help unicode_advice. . do tasks.do . local x : env SGE_TASK_ID . log using "mystata_log_`x'.log", replace (note: file /project/scv/examples/stata/tasks/mystata_log_1.log not found) ------------------------------------------------------------------------------- name: log: /project/scv/examples/stata/tasks/mystata_log_1.log log type: text opened on: 29 Feb 2024, 12:22:58 . . display "My task ID is `x'" My task ID is 1 . . local i1 = (`x'-1)*10 +1 . local i2 = `x'*10 . . * The largest value of the loop is 37 . if `i2' > 37{ . i2=37 . } . . * i2 = min(`i2', 37) . . forvalues i=`i1'/`i2'{ 2. display " My iteration is `i'" 3. } My iteration is 1 My iteration is 2 My iteration is 3 My iteration is 4 My iteration is 5 My iteration is 6 My iteration is 7 My iteration is 8 My iteration is 9 My iteration is 10 . . log close name: log: /project/scv/examples/stata/tasks/mystata_log_1.log log type: text closed on: 29 Feb 2024, 12:22:58 ------------------------------------------------------------------------------- . . end of do-file