As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
If I keep the code without -SETting &TEST like you have it, I get this output:
&TEST = Main
&TEST = Include
But if I -SET it, then I get this output:
&TEST = Main
&TEST = Main
Not sure why the initial default value is not being used from the main fex. You think it would take it. Anyone else?
UPDATE: Wait a minute... So, we've got to think about this one. We are -INCLUDEing the second fex INTO the first one. Thus the 2nd -DEFAULT will override the first due to being considered apart of the main fex (like having a 2nd -SET override a first -SET). So with including the included fex, there is technically only 1 fex at run time. That is why your desired scenario will not work. Am I thinking this out correctly?
Tried this all in one fex and I get the first results/output described above:
The first DEFAULTH does set the variable, but the second DEFAULTH does as well. The second DEFAULTH is not considered to be a separate variable as you included it in the first fex.
I personally don't think that this is correct. Having a DEFAULTH should set the variable unless it is already set by a -SET or passed in or a previous DEFAULTH.