Using build properties in language definition's properties
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.
2 answers
Comments
By having the values in properties defined in the build definition I could make updates there and leave the languages and translators untouched.
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.