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.
Does anyone know how to MODIFY a file with an UPDATE command when the field to be updated is to receive a blank value? i can't seem to make it work. i'm using fixform from a file, and the blanks are in the file ok.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
In your MODIFY, add a COMPUTE statment something like the one in this example:
-*-- Create test hold file --- TABLE FILE EMPDATA PRINT COMPUTE MIDINITIALX/A1 = IF MIDINITIAL EQ 'C' THEN ' ' ELSE MIDINITIAL; AS 'MIDINITIAL' BY PIN WHERE MIDINITIAL EQ 'A' OR 'C' ON TABLE SET HOLDLIST PRINTONLY ON TABLE SET ASNAMES ON ON TABLE HOLD AS EMPH001 FORMAT ALPHA END -RUN
-*-- Modify data (even if blank) --- MODIFY FILE EMPDATA FIXFORM FROM EMPH001 MATCH PIN -* Force blank update ON MATCH COMPUTE MIDINITIAL = IF MIDINITIAL EQ ' ' THEN ' ' ELSE MIDINITIAL; ON MATCH UPDATE MIDINITIAL ON NOMATCH REJECT DATA ON EMPH001 END -RUN
FIXFORM FROM holdname issues conditional fixforms. (You can see that in the error message issued when the hold master includes fields that are undefined to the Modify).
If a conditional field is blank in the transaction record, the field value is set to blank (or zero), but the field is not marked 'active' -- i.e., it is not set to update the database field. The activate it, add either COMPUTE fieldname=fieldname; or ACTIVATE RETAIN fieldname after the FIXFORM.
Or use MAINTAIN, where the concept of activation does not exist.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
FIXFORM FROM holdname issues conditional fixforms. (You can see that in the error message issued when the hold master includes fields that are undefined to the Modify).
If a conditional field is blank in the transaction record, the field value is set to blank (or zero), but the field is not marked 'active' -- i.e., it is not set to update the database field. To activate it, add either COMPUTE fieldname=fieldname; or ACTIVATE RETAIN fieldname after the FIXFORM.
Or use MAINTAIN, where the concept of activation does not exist.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005