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.
Hello, I'm trying to find a way to get the columns fields that a COMPUTE expression contains. Something like: COMPUTE XPTO/A30 = COL1+COL2+COL3;
I thought in using the WF parsing functions to get the columns. But is very difficult to parse complex expression.
The other option was something like: TABLE FILE filename PRINT COMPUTE XPTO/A30 = COL1+COL2+COL3; ON TABLE HOLD AS RES END
CHECK FILE RES HOLD AS MYCHECK TABLE FILE MYCHECK PRINT * END
This way I get the COL1, COL2 and COL3. The point is that I need to execute the query. In may case this is not an option. So my question is: It's possible to get this information without executing the query?
Or maybe there is another way to solve this issue.
Thanks in advanced, Carlos DiasThis message has been edited. Last edited by: Carlos Dias,
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
There is no problem at all... I just want to get the columns of the COMPUTE to make another operations.
I can get this running the query. But the best was to create the HOLD to get the master file without running the query. It's possible? Why is necessary to execute the query to get the master file created by the HOLD? The data is not necessary.
Thanks, Carlos Dias
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
To get a Master for a HOLD file without accessing the data, add this code before the TABLE FILE command:
SET XRETRIEVAL=OFF
Change it to ON when you want to access data (or delete the command).
You are using + signs in your COMPUTE statement, we assume the columns COL1, COL2 and COL3 are numeric. If so, XPTO must be numeric. If COL1, COL2 and COL3 are alphanumeric, you need to concatenate the columns: