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.
How do I set -DEFAULT to a null, when I do the following -DEFAULT &FromWO1 = '' it prefixes the paramater with a leading spaceThis message has been edited. Last edited by: Kerry,
In Dialog manager there is no such thing as a null value. The variable is either present or not, and if it is it contains at least a space or 0 (which to DM is the same). Depending on how you do your prefixing, there may be a solution for this. But since you did not say how you do your prefixing, I can only guess. Suppose it is also in DM then you could use strong concat for instance. Example:
If this is strictly Dialog Manager, you are stuck, but for use in TABLE, MODIFY, DEFINE FILE, or a COMPUTE statement I will usually use MISSING. For example:
-DEFAULT &FromWO1 = MISSING
-*
DEFINE FILE CAR
SALEDT/YYMD WITH MODEL MISSING ON=
IF COUNTY EQ 'JAPAN' THEN &FromWO1 ELSE DATECVT(&YYMD,'I8YYMD','YYMD');
END
This sets SALEDT to Null/Missing when country is JAPAN.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
-DEFAULT &VAR = &VAR;
-IF &VAR NE 'some test here' THEN GOTO DOONETHING ELSE GOTO DOSOMEOTHERTHIGN;
-DOONETHING
-TYPE Hello from block 1.
-GOTO DOEXIT
-DOSOMEOTHERTHIGN
-TYPE Hello from block 1.
-DOEXIT
-DOEXIT
-DEFAULT &VAR = &VAR; sets the value to something so it can be evaluated - not the same as NULL, but mayeb the best you can get. Have you tried comparing &VAR to FOC_NONE? Not sure if this work (probably not).