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     [CLOSED] Maintain delete

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Maintain delete
 Login/Join
 
Silver Member
posted
We have a focus database with the following layout:
FILE=RFAVORITE ,SUFFIX=FOC
SEGNAME=SEG01 ,SEGTYPE=S02
FIELDNAME =CLIENT , E01 , A10 , FIELDTYPE=I, $
FIELDNAME =TAG , E02 , A20 , FIELDTYPE=I, $
FIELDNAME =DUMMY , E03 , A1 , , $

I would like to be able to delete all rows where CLIENT equals a certain constant. e.g. where client eq 'SMITH'.

Is there a way to accomplish this using Maintain.

Thanks,
Ron Richards

This message has been edited. Last edited by: Kerry,
 
Posts: 38 | Location: Milwaukee | Registered: April 28, 2005Report This Post
Platinum Member
posted Hide Post
Example:

MAINTAIN FILE RFAVORITE
  -* Read records to delete into stack.
  FOR ALL NEXT CLIENT INTO STK WHERE CLIENT EQ 'SMITH' ;
  TYPE "<STK.FOCCOUNT  rows to delete "

  -* Delete all records from stack.
  FOR ALL DELETE CLIENT FROM STK ;
  TYPE "ERROR: <FOCERROR "
END

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Virtuoso
posted Hide Post
Don't use maintain, however, do you want only SMITH or any name that has SMITH in it? If the latter then rather than EQ you could use CONTAINS if maintain works the save for selection.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Silver Member
posted Hide Post
Thanks Mikel, this worked great.

Ron
 
Posts: 38 | Location: Milwaukee | Registered: April 28, 2005Report This Post
Silver Member
posted Hide Post
[SOLVED] This was a key issue......I am new to Maintain. I have a oracle table with column one being the same name and the second column is different. How do i delete an entry for the second column only? When I try it with the following code It ends up deleting all entries that have the same column one.


FOR ALL NEXT FIRSTLIST.GROUPNAME1 FIRSTLIST.CUST1 INTO STK WHERE
(firstlist.FIRSTLIST.GROUPNAME1 EQ zGROUPNAME1 AND
firstlist.FIRSTLIST.CUST1 EQ zCUST1);
TYPE "

-* Delete records from stack.
DELETE FIRSTLIST.CUST1 FROM STK;

help would be appreciated thanks

This message has been edited. Last edited by: BJK,


Product WF 7.1.6 Windows
Database Oracle
outputs PDF, HTML, EXCEL
 
Posts: 37 | Registered: April 13, 2007Report This Post
Silver Member
posted Hide Post
MISSED THE DELETE STATEMENT
Here it is

-* Delete all records from stack.
DELETE FIRSTLIST.GROUPNAME1 FIRSTLIST.CUST1 FROM STK;


Product WF 7.1.6 Windows
Database Oracle
outputs PDF, HTML, EXCEL
 
Posts: 37 | Registered: April 13, 2007Report 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     [CLOSED] Maintain delete

Copyright © 1996-2020 Information Builders