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.
I've tried to select subsets of records that have the sequential "Line" number from 1 to 3 as the following sample: Data file contains:
Unit Org Line Flag
1A A 1 Y -->Will not be selected
1A A 2 Y -->Will not be selected
1A A 1 N
1A A 2 N
1A A 3 N
1C C 1 Y -->Will not be selected
1C C 2 Y -->Will not be selected
1C C 1 N
1C C 2 N
1C C 3 N
2B B 1 Y
2B B 2 Y
2B B 3 Y
2B B 1 N
2B B 2 N
2B B 3 N
The output would be:
Unit Org Line Flag
1A A 1 N
1A A 2 N
1A A 3 N
1C C 1 N
1C C 2 N
1C C 3 N
2B B 1 Y
2B B 2 Y
2B B 3 Y
2B B 1 N
2B B 2 N
2B B 3 N
Any help would be appreciated.
Thanks, PkuThis message has been edited. Last edited by: Pku,
Danny's solution sounds great and takes advantage of the WebFOCUS internal matrix.
Another way might be to sort the data backwards. Then if LINE = 3 set a flag to TRUE and continue processing till LINE = 1 where you set it back to FALSE after selecting. If the subsequent record contains 1 or 2 the flag would remain FALSE and only get set to TRUE when another 3 showed up.