------------------------------------------------------------------------------- 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 -------------------------------------------------------------------------------