How do you ADD an instrument variable to an existing definition? using code? eg:
proc risk;
environment new = work.Test ;
declare instvars=(var1 num var, var2 num var, var3 num var);
instrument MyInst variables = ( var1, var2 ) ;
environment save;
run;
proc risk;
environment open= work.Test;
instrument MyInst variables= ( /* how do I add var3? */);
environment save;
run;
There must be an easy way! If not - how can one determine the original definition (programmatically) ?
To expand on the requirement - I cannot update the original instrument definition, as this is inherited from a production environment. Also - I do not wish to hardcode the original instrument variables in the second instrument statement, in case the original environment changes.
I think there might not be another way (other than hard coding) but open to ideas!