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     Amper variables as numeric

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Amper variables as numeric
 Login/Join
 
Platinum Member
posted
HI Guys, Iam trying to create a amper variable to substitute the BY HIGHEST verb in my fex but it's not working for me....

I use this code before my define table


-* SET
-SET &TOP_# = IF &TOP_N.EVAL GT '0O' THEN &TOP_N ELSE &TOP_N.EVAL * -1;
-SET &BY_BY = IF EDIT(&TOP_N.EVAL) GT 'O0' THEN 'BY HIGHEST ' ELSE 'BY LOWEST ';
-SET &HI_LO = &BY_BY | '&TOP_#.EVAL' | ' TOTAL TY_MTD NOPRINT' ;
-? &HI_LO
no matter what I try it only takes the else clause, how do you evaluate amper varibales as numeric?

This message has been edited. Last edited by: <Mabel>,
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
<Pietro De Santis>
posted
Assuming &TOP_N is always numeric:


-SET &ECHO=ALL;
-SET &TOP_N = -16;

-SET &TOP_# = IF &TOP_N GT 00 THEN &TOP_N ELSE (-1 * &TOP_N);
-SET &BY_BY = IF &TOP_N GT 00 THEN 'BY HIGHEST ' ELSE 'BY LOWEST ';
-SET &HI_LO = &BY_BY | &TOP_# | ' TOTAL TY_MTD NOPRINT' ;
-TYPE &HI_LO
It looks like your '0O' is a zero and an O - is this intentional?

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Platinum Member
posted Hide Post
NO that wasn't intentional and I did'nt even realize it. Originally it was just the 0, but it kept giving me errors at the '* -1'. But changed the code and used the ABS funtion and it worked fine.
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
<JG>
posted
with regard the * -1 It needs to be coded as *(-1)
or in your actual code (-1*(&TOP_N ))
 
Report 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     Amper variables as numeric

Copyright © 1996-2020 Information Builders