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] Anyone care to speculate why this is happening!

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Anyone care to speculate why this is happening!
 Login/Join
 
Master
posted
Here is a snippit of the ECHO ALL code. Essentially I wanted to test the current 2 digit month. If July, Goto one section of code, If any other month, go elsewhere. It appears '07' does not equal '07' and I have no idea why? I tried both 'EQ" and '='. WF is teling me '07' is apparently not equal to '07'
.
.
.

-SET &MTH0 = EDIT(20150720,'$$$$99') ;

.
.
.
-IF '&MTH0' = '07' THEN GOTO DEFINEWRVUSJUL
- ELSE GOTO FINISHLINE;



here is what is echo'd back:

-IF '07' = '07' THEN GOTO DEFINEWRVUSJUL
- ELSE GOTO FINISHLINE;
-FINISHLINE
END

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Guru
posted Hide Post
quote:
.-SET &MTH0 = EDIT(20150720,'$$$$99') ;...-IF '&MTH0' = '07' THEN GOTO DEFINEWRVUSJUL- ELSE GOTO FINISHLINE;


try it this way


.

-SET &MTH0 = EDIT(20150720,'$$$$99') ;

.
.
.
-IF &MTH0 = '07' THEN GOTO DEFINEWRVUSJUL
- ELSE GOTO FINISHLINE;


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Master
posted Hide Post
hmm...thought I originllally it as such...but it just worked so thanks!


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Expert
posted Hide Post
In your -IF statement, please use EQ, not =.

It may work now,. but it may not work in future releases.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
You are testing the value "&MTH0" rather than "07".

Use one of the following.

-IF &MTH0 EQ '07' THEN....
(without quotes)

or

-IF '&MTH0.EVAL' EQ '07' THEN.....
(with quotes)

The issue more or less comes down to when the variable is evaluated verses when dialog manager executes.


WebFOCUS 8.1.04; SQL Server 2012; Windows 7; Windows Server 2012 R2;
 
Posts: 26 | Registered: November 21, 2005Report This Post
Guru
posted Hide Post
I am always glad to put one of my mistakes to good use. Please tag as Resolved


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Expert
posted Hide Post
NB:
IF &MTH0.QUOTEDSTRING EQ ...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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] Anyone care to speculate why this is happening!

Copyright © 1996-2020 Information Builders