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] Function in maintain

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Function in maintain
 Login/Join
 
Guru
posted
Is ther any function available in maintain to find whether a number is divisible by 10 or not?I want to put it in conditional clause along with some other conditions also using AND operator.I am using INT (number) alongwith one more condition using AND but it is throwing "(FOC03636) 'Lazy' AND : Is Unsupported Syntax." Can anybody help please?

Thanks in advance.

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


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
Shankar

I don't know why you would be getting a 'lazy and' error, but it is simple to avoid.

Something based on this example may help:
MAINTAIN FILE car

Declare divisible/a0;

Case top
  for all next country car model bodytype into carStack;

  Repeat carStack.focCount i/i4 = 1;

$$ make ENGLAND sales non-divisble by 10 
    carStack(i).sales = if  carStack(i).country eq 'ENGLAND'
                        and carStack(i).sales ne 0 
                           then carStack(i).sales + 5 
                           else carStack(i).sales;

$$ check divisibilty by 10 as long as non-zero
    divisible = if  (INT(carStack(i).sales/10) eq carStack(i).sales/10) 
                and carStack(i).sales ne 0 
                   then 'Divisible' 
                   else 'Non-Divisible';

  type "<carStack(i).sales  <divisible";

endrepeat i = i + 1;
EndCase
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
Thanks a lot.It worked.


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
Doesn't Maintain support the MOD (or IMOD) function?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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] Function in maintain

Copyright © 1996-2020 Information Builders