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
Division
 Login/Join
 
Platinum Member
posted
Hello

I am trying to do the following compute statement.

DEFINE
INTERVAL/I4 WITH POLICYNUMBER=IF INTERVAL LT 400 THEN INTERVAL + 1 ELSE 1;
CONFNUMB/I4 WITH POLICYNUMBER= IF INTERVAL EQ 400 THEN CONFNUMB + 1;
END

TABLE FILE LACAPP1
---
--
COMPUTE NEGPOS/A1 = IF ( ( CONFNUMB / 3 ) * 3 ) EQ CONFNUMB THEN 'P' ELSE 'N';
------


What it does determines if the number is evenly divisible if so it puts a P if not and N.

This used to work but now for some reason it says every confirmation number is a P.

CONFNUMB is an integer also.

Any Help

Dan


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Platinum Member
posted Hide Post
Only thing I can figure is that the division inside the compute no longer cares that the referenced field is integer. It must be doing a floating point compute. YOu could do this, I would think:

COMPUTE CONFNUMX/I4 = CONFNUMB / 3;
COMPUTE NEGPOS/A1 = IF (CONFNUMX * 3 ) EQ CONFNUMB THEN 'P' ELSE 'N';


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Platinum Member
posted Hide Post
Thanks

That worked


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Virtuoso
posted Hide Post
Moyer,
You could also use the IMOD function:
COMPUTE NEGPOS/A1=IF IMOD(CONFNUMB,3,'I1') EQ 0 THEN 'P' ELSE 'N';


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
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders