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.
I am trying to setup the PROMPT and SET commands to determine if a record is active based on an existing or missing date field. The prompts look like this:
-PROMPT &ACTIVE.(YES,NO).
-SET &ACTIVE = IF &ACTIVE = 'YES' THEN 'IS MISSING' ELSE 'IS NOT MISSING';
The Where is:
WHERE (END_DATE '&ACTIVE')
I am trying to get the WHERE statement to be conditional based on the prompt.
I made the correction but the results are the same. The error reads:
(FOC261) EXPRESSION IS INCOMPLETE BECAUSE AN OPERATION IS MISSING (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: ON
The line the errors point to are the WHERE statement. If I enter a normal WHERE statement the program runs fine. Is there another way to do conditional branching in the WHERE statement?
Thanks everyone for your help. Here's the results of the last 3 approaches.
Frances: I could not figure out how to use the SET &ECHO command. Perhaps you could provide an example.
Tom: This approach did not work when using the single quotes on '&ACTIVE'
Alan: by suggesting to remove the single quotes this made Tom's approach work and my original (YES,NO) method work also. This was the key to the problem. I tried different SET options and they all worked.