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] Not updating the BASE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Not updating the BASE
 Login/Join
 
Gold member
posted
Hi -

I have a focexec where it updates a particular field to zero.
I ran the focexec using JCL and it completed good.

0 TRANSACTIONS: TOTAL = 15 ACCEPTED= 15 REJECTED= 0
SEGMENTS: INPUT = 0 UPDATED = 15 DELETED = 0

It has to update the 15 Records where I am updating a particular field to ZERO.

But When I looked into the BASE, It deleted all the matching 15 records rather than updating.

Can someone help me on this?

Here is my Focexec.

TABLE FILE ALPABASE
PRINT DTE1
BY DTE2
BY TERM
BY ST
BY BILLNO
IF DTE1 EQ '200107'
IF TERM EQ '0010'
IF BILLNO EQ '20101410'
ON TABLE HOLD AS ALPTRAN
END

MODIFY FILE ALPABASE
FIXFORM FROM ALPTRAN
MATCH DTE2
ON MATCH CONTINUE
ON NOMATCH REJECT
MATCH TERM
ON MATCH CONTINUE
ON NOMATCH REJECT
MATCH ST
ON MATCH CONTINUE
ON NOMATCH REJECT
MATCH BILLNO
ON NOMATCH REJECT
ON MATCH COMPUTE
DTE1=0;
ON MATCH UPDATE DTE1
DATA ON ALPTRAN
END

PS: Using FOCUS 7.6.13

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Expert
posted Hide Post
It appears as though you are trying to update the key field that you initially MATCH upon. This is not permitted in MODIFY.


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
Gold member
posted Hide Post
quote:
It appears as though you are trying to update the key field that you initially MATCH upon. This is not permitted in MODIFY.


Thanks for your quick reply Tony.
DTE1 is not a key field in the master file.


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Expert
posted Hide Post
quote:
DTE1 is not a key field in the master file.

Then why is it your first MATCH?

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
Gold member
posted Hide Post
quote:
DTE

Sorry, That should be DTE2 in the first match.


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Virtuoso
posted Hide Post
DTE1 seems to be an alpha field according to your TABLE request but you’re setting it to a number 0. Could that be the problem?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Gold member
posted Hide Post
Yes, I am updating DTE1 to Zero and I don't thing that should be a problem.

The base is updated correctly. I think I have queried the base incorrectly after the update. My bad.

Thanks all for your help.

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


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Expert
posted Hide Post
Can you post the ALPABASE master ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] Not updating the BASE

Copyright © 1996-2020 Information Builders