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     [SOLVED]:(FOC03730) Error on previously running maintains?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]:(FOC03730) Error on previously running maintains?
 Login/Join
 
Member
posted
Hi,

We have a client that has a decent number of programs that use maintain for updating data tables, and a error/event log table we have.

Suddenly, many of these maintain sections are throwing the old "(FOC03730) :Non-NEXT access on non-keyed segment: is/are not supported in
Maintain. " error message.

I have updated the code to use MODIFY in place of the MAINTAIN, but the client is pushing for a reason why this suddenly broke.

relevant bits of code:

  

MAINTAIN FILE SECREC AND EVENTL
COMPUTE TMP/I5=; TOT/D12=0;
INFER ID INTO TEMPSTACK1
PERFORM CASE1
CASE CASE1
CALL 725S INTO TEMPSTACK1
BEGIN
-* PERFORM LOGIT
 PERFORM CASE2
 GOTO CASE1
ENDBEGIN
ENDCASE
CASE LOGIT
 INFER evenl.event INTO LOGSTACKJ
 STACK CLEAR LOGSTACKJ
 COMPUTE
 TOT=TOT+TEMPSTACK1.FOCCOUNT;
 MYTEST/A17='&&BATCH_START.EVAL';
 LOGSTACKJ(1).DATETIME_STAMP=HGETC(8, DATETIME_STAMP);
 LOGSTACKJ(1).USER_ID='&&USERID.EVAL';
 LOGSTACKJ(1).BATCHID=&&BATCHID.EVAL;
 LOGSTACKJ(1).FUNC_ID=&&FUNC_ID.EVAL;
 LOGSTACKJ(1).ASOFDATE='&DAY.EVAL';
 LOGSTACKJ(1).SEVERITY=0;
 BSTART/HYYMDs=HINPUT(17,MYTEST,8,BSTART);
 LOGSTACKJ(1).BATCH_START=BSTART;
 LOGSTACKJ(1).EVENT='725A Updating through ' | TOT | ' for ' | '&DAY.EVAL';
 IF TOT GT &TOTAL THEN GOTO EXIT;
 IF TEMPSTACK1.FOCCOUNT EQ 0 THEN GOTO EXIT;
 FOR 1 INCLUDE EVENT FROM LOGSTACKJ(1)
ENDCASE
CASE LOGERROR
 INFER frpevent.event INTO LOGSTACKER
 STACK CLEAR LOGSTACKER
 COMPUTE
 MYTESTA/A17='&&BATCH_START.EVAL';
 LOGSTACKER(1).DATETIME_STAMP=HGETC(8, DATETIME_STAMP);
 LOGSTACKER(1).USER_ID='&&USERID.EVAL';
 LOGSTACKER(1).BATCHID=&&BATCHID.EVAL;
 LOGSTACKER(1).FUNC_ID=&&FUNC_ID.EVAL;
 LOGSTACKER(1).ASOFDATE='&DAY.EVAL';
 LOGSTACKER(1).SEVERITY=1;
 BSTARTA/HYYMDs=HINPUT(17,MYTESTA,8,BSTART);
 LOGSTACKER(1).BATCH_START=BSTARTA;
 LOGSTACKER(1).EVENT='Error Loading ' | TEMPSTACK1(TMP).ID;
 FOR 1 INCLUDE EVENT FROM LOGSTACKER(1)
ENDCASE
CASE CASE2
 REPEAT TEMPSTACK1.FOCCOUNT TMP=1;
  COMPUTE ID=TEMPSTACK1(TMP).ID;
  MATCH SECREC.ID
  ON MATCH BEGIN
   FOR 1 UPDATE
   NAME1 NAME2 DESC
   FROM TEMPSTACK1(TMP)
 ENDBEGIN
 ON NOMATCH BEGIN
  FOR 1 INCLUDE SECREC.ID FROM TEMPSTACK1(TMP)
 ENDBEGIN
 IF FocError NE 0 BEGIN
  PERFORM LOGERROR;
 ENDBEGIN
ENDREPEAT TMP=TMP+1;
ENDCASE
END
-RUN




The error happens on this line:

 
 FOR 1 INCLUDE EVENT FROM LOGSTACKJ(1)
 


If I comment out the logging, the rest runs fine.... Any thoughts or help figuring out what might be causing this now is greatly appreciated!

Thanks,
K

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


WebFOCUS 7.6 - Windows
Output formats: HTML, Excel 2000, PDF, Active HTML
 
Posts: 3 | Registered: January 04, 2013Report This Post
Expert
posted Hide Post
Did the WebFOCUS metadata change? Perhaps someone refreshed the master and access files...


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
Member
posted Hide Post
Hi Francis,

Thanks. Yes I actually just got an update from our DBA and he says that they removed the primary keys and uniqueness constraints from the database due to servers being more powerful and trying to insert the same datetimestamp. Now we just index the key fields.

I am guessing the Logging did not like the non-keyed data.

I think this will satisfy my users question. At least for now!

Thanks,
Kent


WebFOCUS 7.6 - Windows
Output formats: HTML, Excel 2000, PDF, Active HTML
 
Posts: 3 | Registered: January 04, 2013Report This Post
Expert
posted Hide Post
quote:
(FOC03730) :Non-NEXT access on non-keyed segment: is/are not supported in Maintain.


I thought that would be the issue.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]:(FOC03730) Error on previously running maintains?

Copyright © 1996-2020 Information Builders