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.
HI, I need to change the data in one field VENDOR_NUMBER where value is 'None' to null. When I run this,I get updated = 0. why?
DEFINE FILE SWFFEDVENDOR VENDOR_NUMBER1/A10 = IF VENDOR_NUMBER IS 'None' THEN '' ELSE VENDOR_NUMBER; END
TABLE FILE SWFFEDVENDOR PRINT SHIPPER_NAME DIVISION VENDOR_NUMBER1 AS 'VENDOR_NUMBER' VENDOR_NAME1 VENDOR_NAME2 CITY STATE ZIP WHERE VENDOR_NUMBER IS 'None' ON TABLE SET ASNAMES ON ON TABLE HOLD AS TEMP1 FORMAT ALPHA END -* MODIFY FILE SWFFEDVENDOR FIXFORM FROM TEMP1 MATCH SHIPPER_NAME ON MATCH UPDATE VENDOR_NUMBER ON NOMATCH REJECT DATA ON TEMP1 ENDThis message has been edited. Last edited by: vkrugman,
Valeriya
WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
Posts: 68 | Location: Chicago | Registered: August 23, 2007
Maybe the blank Vendor Number field is not ACTIVE in the MODIFY, so I would do it this way:
TABLE FILE SWFFEDVENDOR
PRINT
SHIPPER_NAME
WHERE VENDOR_NUMBER IS 'None'
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS TEMP1 FORMAT ALPHA
END
-*
MODIFY FILE SWFFEDVENDOR
FIXFORM FROM TEMP1
MATCH SHIPPER_NAME
ON MATCH COMPUTE VENDOR_NUMBER = '';
ON MATCH UPDATE VENDOR_NUMBER
ON NOMATCH REJECT
DATA ON TEMP1
END
Verify that you actually have records in file TEMP1.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
DEFINE FILE SWFFEDVENDOR VENDOR_NUMBER1/A10 = IF VENDOR_NUMBER IS 'None' THEN '' ELSE VENDOR_NUMBER; END
Try this: DEFINE FILE SWFFEDVENDOR VENDOR_NUMBER1/A10 MISSING ON= IF VENDOR_NUMBER IS 'None' THEN MISSING ELSE VENDOR_NUMBER; END
'' is NOT the same as NULL Also, trying to do this from a HOLD FORMAT ALPHA file is going to be a problem because fixed format alpha is going to have a hard time trying to represent a NULL field. A space is a space.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
One other thing to bear in mind that if it is a key field, or part of one (with missing? ) then it would not be updated either. I would have thought that this scenario would have generated an error but the grey cells won't give me access to that part of the memory bank
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004