Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Amper variable value for 0000000 and '' are same

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Amper variable value for 0000000 and '' are same
 Login/Join
 
Member
posted
Hi,

I am facing a strange issue here. I am using a filter with amper variable
like
 WHERE XYZ EQ '&xyz'; 


Here XYZ is a A45 datatype and if I am passing 0000000 as value it is not taking that.

Before this filter I create one more variable with
 -SET &A = IF &xyz EQ '' THEN '' ELSE 'A';

&A get value as '' and after that &xyz behaves as ''.

Please help.

This message has been edited. Last edited by: Kerry,


Regards,

Deepak
WebFOCUS 7.6.11
Redhat Linux 5.5
Excel, pdf, HTML
 
Posts: 13 | Registered: July 14, 2008Report This Post
Expert
posted Hide Post
-SET &xyz='000000';
-SET &A = IF ASIS(&xyz) EQ '' THEN '' ELSE 'A';
-TYPE &xyz &A

Try this, Deepak. Dialogue Manager can't tell the difference between a zero and a space.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Guru
posted Hide Post
Deepak-
You may also want to consider the function ASIS.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
That's what I told him, Jim. Smiler


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Ginny,

Isn't it strange, dialog manager can't tell the difference between a zero and a space. Why webfocus kept this behaviour?


7.6.11
Linux
Excel, HTML, PDF

 
Posts: 69 | Registered: February 15, 2008Report This Post
Virtuoso
posted Hide Post
I think that if DM has been working like that since its initial conception, changing it now would potentially break thousands of Production code that may have relying on that particular functionality. It's probably a similiar situation as that of the annoying automatic blank line that just appears after a report HEADING when BORDERs are used; it should be an "easy" fix but I'm guessing they'd rather keep it that way to avoid undesirable side effects in existing code.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Silver Member
posted Hide Post
Chirag , I believe they might have updated this in 7.7.

Let me check..


WebFOCUS 7.6.X/7.7.X
Windows
all output
 
Posts: 31 | Registered: March 17, 2010Report This Post
Master
posted Hide Post
Deepak, the way you check for missing or null values in amper variable is not correct.
Either use ASIS function, as mentioned by Ginny or you can try this too
-SET &xyz='0000000';
-SET &A=IF &xyz || 'A' EQ 'A' THEN 'Missing' ELSE &xyz;
-SET &check_1=&xyz.EXIST;
-SET &B=IF &check_1 EQ 0 THEN 'Missing' ELSE &xyz;

-TYPE &xyz &A  &B


The below one works fine. The problem will be only when used with dialogue Manager commands.
-SET &xyz='0000000';
TABLE FILE CAR
PRINT
CAR
COUNTRY
DEALER_COST
COMPUTE CC_1/A45=IF COUNTRY EQ 'ENGLAND' THEN '0000000' ELSE '1111111'; NOPRINT
WHERE TOTAL CC_1 EQ '&xyz';
END
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Thanks Everybody for this useful discussion. My problem is resolved.

Regards,
DeepakD
 
Posts: 13 | Registered: July 14, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Amper variable value for 0000000 and '' are same

Copyright © 1996-2020 Information Builders