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] Advanced Debuggin Techniques

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Advanced Debuggin Techniques
 Login/Join
 
Gold member
posted
Hello,

I am debuggin some focexe files and I am having issues narrowing down the issue. The methods I've used are:

(1.)
WHERE RECORDLIMIT EQ 100
WHERE READLIMIT EQ 100
END
-EXIT

--------
(2.)

-TYPE works here &STATUS

---------
(3.)

-SET &ECHO=ALL;

---------

Does anyone have any further suggestions as to debugging code besides the three stated above?

Thanks

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



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Virtuoso
posted Hide Post
What are the symptoms?


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Gold member
posted Hide Post
In the first file, I first got a error message saying that &KEY1 is missing:

so, I put a:

I tried here a:
-********************
-SET &KEY=' ';
-*********************

Then I got:

(FOC731) THE DEFINE-BASED JOIN IS IMPROPERLY DEFINED: FILENAME=KEY1

so, I dont think I need the set key, but not surehow to fix the issue here.


-******************************

The next file result output:

0 ERROR AT OR NEAR LINE 145 IN PROCEDURE queryFOCEXEC *
(FOC030) ALL VERB OBJECTS MUST BE IN THE SAME PATH AS THEIR SORT FIELDS


-***********************

The third file just took a long time to get running....I could limit that with a recordlimit

-************************


The last file I got several different error messages in the result output:

0 ERROR AT OR NEAR LINE 358 IN PROCEDURE helpFOCEXEC * (FOC731) THE DEFINE-BASED JOIN IS IMPROPERLY DEFINED: FILENAME= 125
FIELDNAME= BY_KEY
0 ERROR AT OR NEAR LINE 358 IN PROCEDURE helpFOCEXEC *(FOC731) THE DEFINE-BASED JOIN IS IMPROPERLY DEFINED: FILENAME= 125
FIELDNAME= SITE
0 ERROR AT OR NEAR LINE 388 IN PROCEDURE helpFOCEXEC *(FOC003) THE FIELDNAME IS NOT RECOGNIZED: BY_CD
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT
-*******

(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
BYPASSING TO END OF COMMAND
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
BYPASSING TO END OF COMMAND
-*********

0 ERROR AT OR NEAR LINE 454 IN PROCEDURE helpFOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
BYPASSING TO END OF COMMAND
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: HOLD1
BYPASSING TO END OF COMMAND



Production & Development: WebFocus 7.6.4
 
Posts: 50 | Registered: August 20, 2008Report This Post
Platinum Member
posted Hide Post
Mayor - Did you try

SET XRETRIEVAL=OFF

? This will cause the execution to check for most syntax, DM & flow-logic errors without actually reading the files. It will however not catch errors like 'JOIN file records out of sequence', etc. that are encountered only after reading the actual data files.

Saves a lot of time if the error is towards the end of a long running fex. One would typically insert that line at the top of the pgm, but can be used anywhere you want to check for errors.
Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Mayor, Step one should be always work on the first error message.

I would also suggest that you put a -RUN after each and every TABLE FILE, with a -SET &ECHO=ALL;. This will help tp pinpoint which block of code the erroris in.

Step two, understand the error message, do some searches on the error number FOCnnnnn.


For you first two errors, seems that you have coded a defined based join and it is wrong. check the syntax. You also seem to be selecting information from a multipath table or join, the fields should be in a single path to stop this.


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
Virtuoso
posted Hide Post
the second error can be the result of the first error. A hold file is not created and therefor a field or join does not exist.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
quote:
Step one should be always work on the first error message


Agreed, as I posted, First Error First, the most important rule.


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
Expert
posted Hide Post
Waz is spot on - only deal with the first error and then once that is cleared you will have better understanding of actual errors in the code and not cascaded errors.

The normal reason for the "Error in Define based Join" is missing out the WITH real_field syntax.

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
Platinum Member
posted Hide Post
quote:
In the first file, I first got a error message saying that &KEY1 is missing:

so, I put a:

I tried here a:
-********************
-SET &KEY=' ';

error points to &KEY1, you -SET &KEY without the '1'.
I would try SET XRETRIEVAL=OFF
as suggested by Blue Zone.
I'd try a -EXIT after the first table request with a recordlimit of 1. Does it work? Make it a 100. Does it still work? Take off the recordlimit and does it still work? Ok then you now need to move to your -exit down to the next logical breakpoint etc...


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
 
Posts: 195 | Registered: October 27, 2006Report This Post
Master
posted Hide Post
Post your code, a define-based join doesn't have anything to do with an & variable.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report 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] Advanced Debuggin Techniques

Copyright © 1996-2020 Information Builders