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
When to use .EVAL
 Login/Join
 
Virtuoso
posted
I have looked on the Forum and on the IBI tech site...and all of us here are still not sure exactly when to use .EVAL

Does anyone know the Rule? Is there a Rule?
Does it behave different in 5.3.x vs. 7.1.x?

Thanks.... Confused


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
<DocServices>
posted
Hi Prarie,

Try the following section from the iWay Stored Procedure Reference 7.1.3 manual (DN3501587.0206): .EVAL Operator

The section is the same in the 5.3.2 version and 7.1.3 version of the manual.

I hope this helps.

Regards,
Jenn
 
Report This Post
Virtuoso
posted Hide Post
Thanks....I did read that already...and we were still not sure what the actual rule was.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
Prarie,

You use .EVAL when you want FOCUS to parse the value of the &varbiable after it resolves the variable. The examples in the documentation show that the &variable is set to a dialogue manager keyword such as -TYPE or -*. If the .EVAL is not used, FOCUS does not treat the -TYPE or -* as a dialogue manager command. Rather, it will treat it as a literal value.

Another example would be mathematical symbols * / + or -.

-SET &EXP = '*';
-SET &RES = 3 &EXP 5;

The above will not work because FOCUS won't know the value for &EXP is a multiplication sign as ossposed to just an asterisk.

The following will give you the desired result.

-SET &RES = 3 &EXP.EVAL 5;

The above would give you 15.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Prarie,

I'm not sure there is a rule defined by IBI, but we do not use .EVAL in comparison operations (EQ,GT,LT, etc.). We do use the .EVAL operator to insert the value of an &var as we are dynamically building code (ie SQL passthru) strings.
Also particularly useful for dynamically commenting out lines of code (for instance setting an &var to -* depending on parameters, where the &var.EVAL starts in column 1)

I have seem the .EVAL operator used in comparisons and it seems to work most of the time, but as I run accross those in code maintenance, I replace them according to the rule above.

Hope this helps,

Kevin


WF 7.6.10 / WIN-AIX
 
Posts: 141 | Location: Denver, CO | Registered: December 09, 2005Report This Post
Virtuoso
posted Hide Post
Thanks for the insight. Smiler


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders