$title ex2.gms: general output to the screen (version 2) set t /1990*2030/, j /a,b,c,d/; parameter a(t,j) Example 2: using gams with matlab; a("1990",j) = 1; option seed=10980983; loop(t, a(t+1,j) = a(t,j) * (1+.04*uniform(0.2,1.8)); ); file plotdat / ex2.dat/ put plotdat loop (t, put t.tl:5:0; loop(j, put a(t,j):12:6; ); put /; ); putclose plotdat;