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     [SOLVED] UPDATE/MODIFY RECORDS IN WF TABLE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] UPDATE/MODIFY RECORDS IN WF TABLE
 Login/Join
 
Gold member
posted
Please help me to create a procedure that will populate the data(or update the records in a table) using a value from another field in the same table. For example,
Here is the record I have. I need to update filed OMETHOD( currently null value) with 'CATS'(value that belongs to BSARK field).
The key fields are PERIOD INVOICENUM

MANDT PERIOD INVOICENUM OMETHOD BSARK
100 200811 1034597526 NULL CATS

thanks a lot

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


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Virtuoso
posted Hide Post
Lera,

I will assume that OMETHOD and BSARK have the same format.

There are 2 methods I can think of (probably more...).
Method 1:
SET HOLDLIST=PRINTONLY, ASNAMES=ON  
TABLE FILE filename
PRINT BSARK AS OMETHOD
BY PERIOD BY INVOICENUM
ON TABLE HOLD
END
MODIFY FILE filename
FIXFORM FROM HOLD
MATCH PERIOD INVOICENUM
ON MATCH UPDATE OMETHOD
ON NOMATCH REJECT
DATA ON HOLD
END


Method 2 - this works only with FOCUS files
MODIFY FILE filename
NEXT PERIOD INVOICENUM
ON NEXT COMPUTE OMETHOD=D.BSARK;
ON NEXT UPDATE OMETHOD
ON NONEXT GOTO EXIT
DATA
END  

Good luck.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Gold member
posted Hide Post
I'LL TRY THANK YOU


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Gold member
posted Hide Post
quote:
Originally posted by Danny-SRL:
Lera,

I will assume that OMETHOD and BSARK have the same format.

There are 2 methods I can think of (probably more...).
Method 1:
SET HOLDLIST=PRINTONLY, ASNAMES=ON  
TABLE FILE filename
PRINT BSARK AS OMETHOD
BY PERIOD BY INVOICENUM
ON TABLE HOLD
END
MODIFY FILE filename
FIXFORM FROM HOLD
MATCH PERIOD INVOICENUM
ON MATCH UPDATE OMETHOD
ON NOMATCH REJECT
DATA ON HOLD
END


Method 2 - this works only with FOCUS files
MODIFY FILE filename
NEXT PERIOD INVOICENUM
ON NEXT COMPUTE OMETHOD=D.BSARK;
ON NEXT UPDATE OMETHOD
ON NONEXT GOTO EXIT
DATA
END  

Good luck.


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Gold member
posted Hide Post
Thank you very much. It worked!


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 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     [SOLVED] UPDATE/MODIFY RECORDS IN WF TABLE

Copyright © 1996-2020 Information Builders