Passing (control) variables from program to program
Posted: Sun Jul 01, 2012 1:16 pm
They way I have my programs currently set up I have a "master" program that then runs several smaller programs using the exec command. These smaller programs all open and close several workfiles.
I would like to be able to declare variables in the master program and have them be the same across my programs and across workfiles (for instance I would like to set the number of lags across all programs). As I have it now I have scalars declared in each workfile. This means I have to change the scalar in each program which is both annoying and prone to mistakes.
Anyway, is there a way that I can just have something like !lags=8 in my "master" program and have a control variable (or something like it) hold across all my programs.
I would like to be able to declare variables in the master program and have them be the same across my programs and across workfiles (for instance I would like to set the number of lags across all programs). As I have it now I have scalars declared in each workfile. This means I have to change the scalar in each program which is both annoying and prone to mistakes.
Anyway, is there a way that I can just have something like !lags=8 in my "master" program and have a control variable (or something like it) hold across all my programs.