Page 1 of 1

Sharing parameters across programs files

Posted: Wed Dec 03, 2014 5:01 am
by adrian_d
Hi,
once I asked quite a similar question and got no answer, but maybe this time I will describe it in another context. My code got quite long and I wanted to split it into a few parts, and then have one short program that would execute all parts one by one after each other. But there is an obstacle of parameters (control variables) inside the program, that seem to me not shared across files. Is it any way to get around this thing?

thanks
adrian

Re: Sharing parameters across programs files

Posted: Wed Dec 03, 2014 8:47 am
by EViews Gareth
If you use include, rather than exec, the program variables will be shared.

Re: Sharing parameters across programs files

Posted: Wed Dec 03, 2014 8:49 am
by adrian_d
If you use include, rather than exec, the program variables will be shared.
Oh yeah, thanks!