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     Updating inly some records in one fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Updating inly some records in one fields
 Login/Join
 
Gold member
posted
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
END

This 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, 2007Report This Post
Guru
posted Hide Post
Are you mixing VENDOR_NUMBER and VENDOR_NAME?


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Gold member
posted Hide Post
NO SORRY IT'S A TYPO

This 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, 2007Report This Post
Expert
posted Hide Post
Do you have MISSING=ON in your source master?

There is also another setting called HOLDMISS that will propagate missing values to a hold file.

You can do a keyword search on the IBI site to get additional details.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
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, 2007Report This Post
Expert
posted Hide Post
One other thing to bear in mind that if it is a key field, or part of one (with missing? Confused) 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 Frowner

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, 2004Report 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     Updating inly some records in one fields

Copyright © 1996-2020 Information Builders