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] (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED
 Login/Join
 
Member
posted
Hi everyone!

I get this error that I don't undertand. The code worked in the previous version of the report but now gives this error:
(FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: &DIVID

Previous Version:
 
-SET &DIVID='FOC_NONE';

...

TABLE FILE BIFSTAP
PRINT
	BAL
	STACDE
	UOMTYP
	PERCDE
WHERE UNINUM EQ &UNINUM
WHERE (PERCDE EQ &PERCDE) OR (PERCDE EQ &PRVPERCDE)
WHERE (STACDE EQ &STACDE_MSFSWE AND (UOMTYP EQ '&XSW' OR UOMTYP EQ '&TON'))
WHERE VERKEY = 'STB' OR VERKEY = 'SBU'
WHERE DIVID EQ &DIVID
ON TABLE HOLD AS HOLD_DATA_SET_GLSTATR2 FORMAT FOCUS
END
 


New version:
 
-SET &DIVID='FOC_NONE';

...

-SET &WHERE_DIV = IF &UNINUM EQ 114 THEN 'DIVNUM = 5'
-					ELSE IF &UNINUM EQ 37 THEN 'DIVNUM = 6'
-						ELSE 'DIVID EQ &DIVID';

TABLE FILE BIFSTAP
PRINT
	BAL
	STACDE
	UOMTYP
	PERCDE
WHERE UNINUM EQ &UNINUM
WHERE (PERCDE EQ &PERCDE) OR (PERCDE EQ &PRVPERCDE)
WHERE (STACDE EQ &STACDE_MSFSWE AND (UOMTYP EQ '&XSW' OR UOMTYP EQ '&TON'))
WHERE VERKEY = 'STB' OR VERKEY = 'SBU'
-*WHERE DIVID EQ &DIVID
WHERE &WHERE_DIV;
ON TABLE HOLD AS HOLD_DATA_SET_GLSTATR2 FORMAT FOCUS
END
 


Can anybody explain to me what's happening here?

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


__________________________
Dev: WebFOCUS 7.6.8
OS: Windows XP
Output: *ALL
 
Posts: 12 | Registered: January 17, 2012Report This Post
Virtuoso
posted Hide Post
Methinks:
  
-SET &DIVID='FOC_NONE';

...

-SET &WHERE_DIV = IF &UNINUM EQ 114 THEN 'DIVNUM EQ 5'
-					ELSE IF &UNINUM EQ 37 THEN 'DIVNUM EQ 6'
-						ELSE 'DIVID EQ &DIVID.EVAL';

TABLE FILE BIFSTAP
PRINT
	BAL
	STACDE
	UOMTYP
	PERCDE
WHERE UNINUM EQ &UNINUM
WHERE (PERCDE EQ &PERCDE) OR (PERCDE EQ &PRVPERCDE)
WHERE (STACDE EQ &STACDE_MSFSWE AND (UOMTYP EQ '&XSW' OR UOMTYP EQ '&TON'))
WHERE VERKEY EQ 'STB' OR VERKEY EQ 'SBU'
-*WHERE DIVID EQ &DIVID
WHERE &WHERE_DIV;
ON TABLE HOLD AS HOLD_DATA_SET_GLSTATR2 FORMAT FOCUS
END

You have to use the .EVAL function in the -SET command, otherwise the &variable will not be replaced by its value.
Also, do not use the = sign but the EQ operation in a WHERE statement. I know that WF is forgiving but this might not always by the case...


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
Member
posted Hide Post
Thanks for the quick reply!

And the best of it all, it worked!!


__________________________
Dev: WebFOCUS 7.6.8
OS: Windows XP
Output: *ALL
 
Posts: 12 | Registered: January 17, 2012Report 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] (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED

Copyright © 1996-2020 Information Builders