NON-Global variables
Posted: 05 May 2009 2:11
Hello
I tried reading the Variable and Params doco but got completely lost.
We have a Group Schedule that is called and uses a variable in every job (submission_id) as a parameter for the commands that are run.
ie Command: /script.sh -i %%submission_id
Problem is that we need to call the next Group Schedule part way through the current so the global variable changes value part way through the initial GS.
For example: the first half of the Group Schedule %%submission_id = 12345 and then when the next instance of the GS is called %%submission_id = 12349 and messes up the command calls on the previous GS.
Is there a way of either declaring a variable that is specific to a Group Schedule or passing a variable from one job to the next?
Any help would be greatly appreciated
I tried reading the Variable and Params doco but got completely lost.
We have a Group Schedule that is called and uses a variable in every job (submission_id) as a parameter for the commands that are run.
ie Command: /script.sh -i %%submission_id
Problem is that we need to call the next Group Schedule part way through the current so the global variable changes value part way through the initial GS.
For example: the first half of the Group Schedule %%submission_id = 12345 and then when the next instance of the GS is called %%submission_id = 12349 and messes up the command calls on the previous GS.
Is there a way of either declaring a variable that is specific to a Group Schedule or passing a variable from one job to the next?
Any help would be greatly appreciated