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.
Something is not right. Are your two fex files in the same folder? An -INCLUDE basically appends the code into the calling fex. Below are two fex files. If you run fex1.fex you can see that you do not need a DEFAULT for &COUNTRY. Although having a DEFAULT does not hurt anything. The SET will takes precedent over the DEFAULT.
-* File fex1.fex
-SET &COUNTRY = 'ENGLAND';
-INCLUDE fex2.fex
-* File fex2.fex
TABLE FILE CAR
PRINT
COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
END
Your code does work. In fact, expanding your code to replicate what I'm trying to do appears to be working too.
Something must be wrong in my other code that I'm going to have to figure out.
Just in case it helps anyone else, here is the expanded version of the code similar to what I'm attempting to do.
-* File fex1.fex
-SET &COUNTRY = 'ENGLAND';
-INCLUDE fex2.fex
TABLE FILE TEMP1
PRINT *
END
-* File fex2.fex
TABLE FILE CAR
PRINT
COUNTRY
WHERE COUNTRY EQ '&COUNTRY';
ON TABLE HOLD AS TEMP1
END
So you're saying that fex2.fex should do the reporting and not do a table hold with fex1.fex printing information about what is in the table hold? It is a fluke that this works as written?
Crymsyn,
Sorry my first post was wrong, I meant to type a semicolon at the end of my set statements. My code does have a semicolon, and it's not bringing back any results unless I have defaults in fex2.fex.
Sorry everyone, I figured it out. The database changed on me, so the variables were being passed to the other fex correctly. My table query in fex2 was executing correctly and getting no data. Since there was no data to print, it was correctly saying there were no rows returned. ;-)