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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
FOC006
 Login/Join
 
Silver Member
posted
Hi
I get FOC006 error while comparing values.


//code...

DATE1/A2 = EDIT(DATE,'99$$$$$$');
DATE2/I2 = EDIT(DATE1);
PMON1/A2 = EDIT(PMON);
PMON2/I2 = EDIT(PMON1);

IF DATE2 EQ PMON2 THEN '4' ELSE '0'

//code -ends

How to solve this error


Focus Core 7.1.1 & 7.6.4
XP
MainFrames
 
Posts: 38 | Registered: November 20, 2007Report This Post
Virtuoso
posted Hide Post
RB4U,

1. Is your IF statement part of a DEFINE or COMPUTE? If so, since you are comparing two I fields, that would mean that the result (either '4' or '0') is not assigned to an alpha field.

2. Is your IF statement in a TABLE command? If so, you cannot use this syntax:
2a. there is no IF THEN ELSE in a screening condition
2b. if you use IF then the comparison is between a field and a value, never 2 fields

So, what are you doing?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
quote:
IF DATE2 EQ PMON2 THEN '4' ELSE '0'

As Danny says, what are you doing here. The code makes no sense as posted, sorry.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Master
posted Hide Post
RB,

I am not meaning to be unkind, but from what you have posted I think you don't understand WebFocus at all. If this is all of your code, where is your DEFINE (you have defined fields) your END, your TABLE and the final END?

If your company won't provide training, the manuals are available for download in PDF format for free. Click the link at the top of the screen that says Technical Documentation Library and download Creating Reports With WebFOCUS Language for your version. You need a minimum of chapters 1 through 9 to have a basic understanding. You can absorb the rest of the manual as you need it.


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
Expert
posted Hide Post
Danny, Leah, Pat

I completely agree, code out of context is almost meaningless.

rb4u, please post a more complete set of code or an example using the CAR file.


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


Copyright © 1996-2020 Information Builders