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     Control Error in Modify file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Control Error in Modify file
 Login/Join
 
Member
posted
Is it possible to control errors when you do 'Modify file'?

I would like to control if the database has been able to do my instruction. I've try with &LINES,&RECORDS and &FOCERRNUM but they're always 0. They work properly only with Table file.

Do you know another way to control them?

Do you know where I can find some help about 'Modify file'? I can't find in Developer's Help.

thanks
 
Posts: 2 | Registered: April 19, 2006Report This Post
Silver Member
posted Hide Post
you could try something like:

NOTE `LC` is a Left Carat...


FILEDEF ErrorLog1 DISK &APPROOT..\Your_App\Error_log1.TXT
FILEDEF ErrorLog2 DISK &APPROOT..\Your_App\Error_log2.TXT
-RUN

MODIFY FILE XXX
-*
MATCH KEY
-*
ON MATCH TYPE ON Errorlog1
"Match Record - Updated Key `LC`D.KEY "

ON MATCH UPDATE Field1 Field2
-*
ON NOMATCH TYPE ON Errorlog2
"No-Match Reject Key `LC`KEY "

ON NOMATCH REJECT
-*
ETC, ETC
-*
data on...
fixform from...
END

then overlay your data with Master Files and bingo, you can TABLE you log to your hearts content

If you need more specific help then feel free to email me.
Good Luck Paul.
 
Posts: 42 | Location: UK | Registered: October 23, 2005Report This Post
<Special-K>
posted
This section of (mainframe) help might come in handy for when a MODIFY has finished.

&ACCEPTS Indicates the number of transactions accepted.

&BASEIO Indicates the number of input/output operations performed.

&CHNGD Indicates the number of segments updated.

&DELTD Indicates the number of segments deleted.

&DUPLS Indicates the number of transactions rejected as a result of duplicate values in the data source.

&FORMAT Indicates the number of transactions rejected as a result of a format error.

&INPUT Indicates the number of segments added to the data source.

&INVALID Indicates the number of transactions rejected as a result of an invalid condition.

&NOMATCH Indicates the number of transactions rejected as a result of not matching a value in the data source.

&REJECTS Indicates the number of transactions rejected for reasons other than the ones specifically tracked by other statistical variables.

&TRANS Indicates the number of transactions processed.
 
Report This Post
Member
posted Hide Post
Thank you so much.

I've tried with these new variables and they are great. We can't find them in Developer's Help.

Thanks Paul, your answer gives me an idea for another problem we have.
 
Posts: 2 | Registered: April 19, 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     Control Error in Modify file

Copyright © 1996-2020 Information Builders