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

Using build properties in language definition's properties

Hello,

I have the need to implement the following:
Properties in build definition: build.cat.a = "A", build.cat.b = "B"
Property in language definition A: lang.cat = ${build.cat.a}

Property in language definition B: lang.cat = ${build.cat.b}

Translator (used in language A and B) issues TSO command with ${lang.cat) as parameter.

Looks like the build property reference in the language definition does not get resolved. I end up with the text "${build.cat.a}" rather than the value "A" (for language A).

I know that I can use build properties directly in the translator, but I need to make it dependent on the language.

Is there a way to implement that scenario?

Thanks.




0 votes



2 answers

Permanent link
You can do that. In the language definitions you need to define a property lang.cat with a value. Both LD's call the same translator, where you chose ISPF/TSO, chose TSO and insert ${lang.cat} as the command/member. Be sure you have the dataset attached in which the member resides otherwise your job will dump.

0 votes

Comments
Yes, I know that. But I don't want to specify hard-coded values in the language definitions. I want to use the indirection of a property set in the build definition.
The reason is that one set of languages use the one value (A) and another set of languages uses another value (B).
This values might change from release to release.

By having the values in properties defined in the build definition I could make updates there and leave the languages and translators untouched.


Permanent link

 That is also possible, we're using a property in the build definition to allocate a DD resource. Property dd_cobol_in is set in the build definition to appl - COBB. In the translator we use ${dd_cobol_in} as a DD respource. During execution this variable gets substituted by the datasetname definen in appl - COBB.

0 votes

Comments
Yep, understood. But I want to use the value of the property from the build definition (1) to set another property in the language (2), which I then use in the translator (3).
The problem is (2). I know that I can  (and I already do) use (1) in (3) ....

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: Apr 15 '16, 4:16 a.m.

Question was seen: 3,443 times

Last updated: Sep 12 '18, 4:10 a.m.

Confirmation Cancel Confirm