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.
Your code is a good way to do this subject to limitations Frank mentions. As for using an inner join, let me first clarify your question. You want records from PROJECTS where company id is in COMPANY, right?
The following would do it:
SET ALL=OFF (This is the default, but doesn't hurt to add it) JOIN CLEAR * JOIN COMPANYID IN B_SQL_PROJECTS TO COMPANYID IN B_SQL_COMPANY AS J1
TABLE FILE B_SQL_PROJECTS PRINT B_SQL_PROJECTS.COMPANYID B_SQL_PROJECTS.projectid B_SQL_PROJECTS.fieldn B_SQL_COMPANY.COMPANYID NOPRINT END
The reference to the company id field in COMPANY activates the join. The join with set all=on means only display records where all segments are satisfied (i.e. you actually found a matching companyid record in the cross-referenced file). Thus you only get records from PROJECTS where the companyid also exists in COMPANY.
The actual syntax for the join will differ somewhat if you're using a recent version of the GUI tool. Something more like
JOIN INNER B_SQL_PROJECTS.COMPANYID IN B_SQL_PROJECTS TO UNIQUE B_SQL_COMPANY.COMPANYID IN B_SQL_COMPANY AS J0 END
subsequent correction of syntax per Ginny's later postThis message has been edited. Last edited by: Darin Lee,
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
my mistake - Ginny is correct. OFF is the default and SET ALL=OFF is what you want to use.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007