Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

set variables

There is way to set variable per library?

I want to set a variable with the same name in 2 different libraries, but i want the variable will be local to the library and don't effect others libraries.

the .tset is an option but it will be per step inside the library no? i need it to work on 2 steps

0 votes



4 answers

Permanent link
There is way to set variable per library?

I want to set a variable with the same name in 2 different libraries, but i want the variable will be local to the library and don't effect others libraries.

the .tset is an option but it will be per step inside the library no? i need it to work on 2 steps


It sounds like .tset might work for you if the structure of your project allows for making subsequent steps that need that variable as inlines. The .tset command takes effect for all commands in the step and for any Inline specified for the step. It will not permanently change the variable value for the environment (that would be a .set) or for the build environment (that would be a .bset).

0 votes


Permanent link
There is way to set variable per library?

I want to set a variable with the same name in 2 different libraries, but i want the variable will be local to the library and don't effect others libraries.

the .tset is an option but it will be per step inside the library no? i need it to work on 2 steps


It sounds like .tset might work for you if the structure of your project allows for making subsequent steps that need that variable as inlines. The .tset command takes effect for all commands in the step and for any Inline specified for the step. It will not permanently change the variable value for the environment (that would be a .set) or for the build environment (that would be a .bset).

if i do .set in the first step and in the second step i ask with condition if there is a value in the variable it will work? the value will be saved for the second step?

0 votes


Permanent link
if i do .set in the first step and in the second step i ask with condition if there is a value in the variable it will work? the value will be saved for the second step?


The .set command changes the master record for an environment. Therefore, if you use .set to change an environment variable value in the first step, you will need to explicitly set that same environment on the second step that you would like to see the new value. Otherwise, your second step will pick up the variable value that was in effect on the environment when you started the build. The value you set with the .set will persist in the environment after the build has completed.

0 votes


Permanent link
.bset will do what you have described: Here is the summary of what the command do:
.tset: set variable for the current step only
.bset set variable for all following steps in the current job only
.set set variable in the master environment. Applies to future runs of the project only

There is way to set variable per library?

I want to set a variable with the same name in 2 different libraries, but i want the variable will be local to the library and don't effect others libraries.

the .tset is an option but it will be per step inside the library no? i need it to work on 2 steps


It sounds like .tset might work for you if the structure of your project allows for making subsequent steps that need that variable as inlines. The .tset command takes effect for all commands in the step and for any Inline specified for the step. It will not permanently change the variable value for the environment (that would be a .set) or for the build environment (that would be a .bset).

if i do .set in the first step and in the second step i ask with condition if there is a value in the variable it will work? the value will be saved for the second step?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 04 '10, 7:52 a.m.

Question was seen: 6,970 times

Last updated: May 04 '10, 7:52 a.m.

Confirmation Cancel Confirm