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 am trying to delete rows from a table and am having a hard time finding a good way to do this. With this in mind, I do not want to delete all rows, only those rows that meet a certain criteria.
The table to be deleted from does not have any keys, so I cannot use the 'delete the existing record' option on the target properties.
I also tried using a DBMS SQL type flow and had parsing errors occur after I entered the sql code to delete the rows.
Should I be using a stored procedure type flow to do this? And if so, does anyone have any samples for this?
You will probably need to create a stored procedure and use MODIFY/NEXT logic to delete the records. But you will want to run the stored procedure as part of a flow in order to get a log of the results. Your delete logic might look something like this:
MODIFY FILE <filename>
NEXT <column name>
ON NEXT IF <negative of your selection criteria for deleting> GOTO TOP ;
ON NEXT DELETE
ON NONEXT GOTO EXIT
DATA
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
I would worry about performance with the check each record/looping approach. I think the phrase "when doing database things, use a database tool" is a good phrase to live by. I would go the DBMS SQL route. Your "parsing error" might have been just some bad SQL. Send your delete statement. Set based deleting from tables (and adding/modifying) is what DBs are made for.
------ Livin' down on the cube farm. Left, right, right.
iWay 5.6 Windows Excel, Tab-delimited, XML
Posts: 23 | Location: Minnesota | Registered: July 27, 2009