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     Then clause missinterpreted as a label

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Then clause missinterpreted as a label
 Login/Join
 
Member
posted
I am creating a define field TEST/i1 (A single integer either 0 or 1) to be used as the condition to test upon in an if statement later in the report.

It uses an IF THEN ELSE IF construct to set its value. However, webFOCUS is trying to interpret the THEN 1 as a label, and since there is no label 1 I get thet error code:
(FOC305) SPECIFIED LABEL NOT FOUND: 1 .

If I change the type to A1 and 'Y' or 'N' flags, it still complains that there is no 'Y' label.


TST1/I1 = IF (POSITON_CODE EQ '4222' AND STUDENT_CLASSIFICATION EQ 'GP' OR 'UP') THEN 1
- ELSE IF (POSITON_CODE GE '4479' AND POSITON_CODE LE '4482' AND STUDENT_CLASSIFICATION EQ 'UP') THEN 1
- ELSE IF (POSITON_CODE EQ '4009' OR '4222' OR '4475' OR '4495' OR
- '4479' OR '4480' OR '4481' OR '4482' OR
- '0070' OR '0074' OR '0075' OR '0076' OR
- '0077' OR '0078' OR '0079' OR '0090' OR '0095') THEN 0
- ELSE IF SHRT EQ '1' THEN 0 ELSE 1;

Is there something wrong with my IF THEN ELSE?


Dev: WF 5.2.1
Production: WF 5.2.1
Testing: WF 7.1.3
 
Posts: 26 | Registered: October 30, 2006Report This Post
Platinum Member
posted Hide Post
Remove the dashes at the beginning of the line. You are not in Dialog Manager mode.


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Member
posted Hide Post
Thanks.

I guess I was confused because I DO have to use the - when I am building an IF THEN ELSE outside of a define (when I am using SET e.g)


Dev: WF 5.2.1
Production: WF 5.2.1
Testing: WF 7.1.3
 
Posts: 26 | Registered: October 30, 2006Report This Post
Platinum Member
posted Hide Post
That's correct.

The syntax differs between DM and DEFINE FILE.

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report 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     Then clause missinterpreted as a label

Copyright © 1996-2020 Information Builders