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

How to set variable value using command in BuildForge 8.0.0.2 ?

I have two environment variables defined say,  var1=hello:welcome:BF  and  var2=hello. While executing a step I perform following commands to set newenv=welcome as result
.tset env "newenv=`echo %var1:*%var2%:=%`"
.tset env "newenv=`echo %newenv::=&rem.%`"
However it works only with BF v7.x but with BF v8.0.0.2 MJC engine this behaves in a strange manner and doesn't recognize the variable value.

Step Log in BFv8.0.0.2: 
STEP	CRRBF9999I: .tset 'env "newenv=`echo %var1:*%search%:=%`"'.
EXEC	CRRBF2001I: EXEC: .tset set temporary variable "newenv" = "$[var1:*]search$[:=]" (New Variable)
STEP	CRRBF9999I: .tset 'env "newenv=`echo %newenv::=&rem.%`"'.
EXEC	CRRBF2002I: EXEC: .tset set temporary variable "newenv" = "$[newenv::=".
		
Any help is much appreciated. Thanks!!

0 votes


Be the first one to answer this question!

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
× 12,020

Question asked: Nov 12 '14, 10:28 a.m.

Question was seen: 3,163 times

Last updated: Nov 12 '14, 10:28 a.m.

Confirmation Cancel Confirm