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] how do i caluclate with amper variables with large values?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] how do i caluclate with amper variables with large values?
 Login/Join
 
Member
posted
Need to calulate with a (10 dig) 6.000.569.885 number.

-SET &REPEadfTMEAMT = 100 + 1;
This gives me the correct result 101.

-SET &REPEadfTMEAMT = 6000569885 + 1;
This gives me some asterix(****).
SET COUNTWIDTH = ON does not seem to apply to amper variables..

Must be quite simple... but ... no clue ..atm.

thanks in advance for any idea.
Marcus

This message has been edited. Last edited by: <Kathryn Henning>,


-----------------------------
PROD WF 7.7.02, PMF 5.2.3, MSQL 2005
QA WF 7.7.02, PMF 5.2.3, MSQL 2005
Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable
Windows, all output
 
Posts: 22 | Location: Germany | Registered: December 17, 2009Report This Post
Virtuoso
posted Hide Post
Try this :

-SET &REPEadfTMEAMT = 6000569885;

DEFINE FILE CAR
ORG_REPEadfTMEAMT /D11 = &REPEadfTMEAMT;
REPEadfTMEAMT /D11 = &REPEadfTMEAMT + 1;
END
TABLE FILE CAR
PRINT ORG_REPEadfTMEAMT
      REPEadfTMEAMT
BY COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 1;
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
Use DEFINE FUNCTIONS:
DEFINE FUNCTION ADD(operand/D20,addition/D20)
ADD/A20 =FTOA(operand+addition,'(D20c)','A20');
END
-RUN
-SET &REPEadfTMEAMT = ADD(6000569885, 1);
-TYPE &REPEadfTMEAMT


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
When arithmetic is requested, internally changed to double precision, so before it is perfomed, changed the results to alpha.
-SET &REPEadfTMEAMT1 = 6000569885; 
-SET &REPEadfTMEAMTA=FTOA((&REPEadfTMEAMT1+1),'(D10)','A13');
-TYPE &REPEadfTMEAMTA 


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Expert
posted Hide Post
Nice... I like that...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
thank you-

very much !!


-----------------------------
PROD WF 7.7.02, PMF 5.2.3, MSQL 2005
QA WF 7.7.02, PMF 5.2.3, MSQL 2005
Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable
Windows, all output
 
Posts: 22 | Location: Germany | Registered: December 17, 2009Report This Post
Master
posted Hide Post
If I remember my first year computer science correctly, they gave us an exercise where the object was to add a series of extremely long numbers - and the answer was to turn them into alpha just as is suggested here ... Smiler


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report 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] how do i caluclate with amper variables with large values?

Copyright © 1996-2020 Information Builders