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     CASE loops in webfocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
CASE loops in webfocus
 Login/Join
 
<pushpa_koneri>
posted
Hey Guys
Do we have CASE LOOP or anything similar to
case loop in webfocus. I need to
differentiate between 30 different variables
and according perform seperate operations.
IF-THEN-GOTO doesn't appeal to me in htis
situation so was wondering if I can get
something similar to CASE LOOP.

Thanks in advance for your help ... :-)
 
Report This Post
<WFUser>
posted
Try -REPEAT
 
Report This Post
Platinum Member
posted Hide Post
You could use a branch table based on the incoming value, or on a DECODEd value.

For example, the direct method, where the value of &PARMNAME could be RED or GREEN or BLUE, you can say:

-GOTO &PARMNAME

where you have branch labels set up in your code.

-RED
(do code for &PARMNAME=RED)
-GOTO DONE
-*
-GREEN
(do code for &PARMNAME=GREEN)
-GOTO DONE
-*
-BLUE
(do code for &PARMNAME=BLUE)
-GOTO DONE

You would also want to test to make sure that the value of &PARMNAME is one of the valid values. This could be done via a list in a HOLD file (or flat file) or using a DECODE list.
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Report This Post
Expert
posted Hide Post
CASE logic is used in MODIFY:
here's the url
http://documentation.informationbuilders.com/masterinde...ifydatasources11.htm
or..
just go to Knowledge Base Search and put in
CASE logic
and take the first response you get back.
 
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     CASE loops in webfocus

Copyright © 1996-2020 Information Builders