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.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
Hello, one of my fields in the database is in P24.7 format.I am doing a -READ on that field.
TABLE FILE STAGE
PRINT
PROB AS 'V9'
WHERE KEY EQ '&SALES';
ON TABLE HOLD AS HEAD FORMAT ALPHA
END
-READ HEAD &V9.A30.
-SET &A_PROB = EDIT(&V9,'99999999999999999999999999999999');
-SET &MY_PROB = TRUNCATE(&A_PROB);
-SET &MY_PROB1 = &MY_PROB * 100;
The field I am talking about is PROB. I tried using -READ HEAD &V9.P24.7.,but that does'nt work. Can somebody correct me. Thanks Swetha.This message has been edited. Last edited by: Kerry,
If you want to retain decimal places in calculations made in Dialogue Manager, you will need to set DMPRECISION to an appropriate number of decimal places (ex.: SET DMPRECISION = 7). Otherwise DM will truncate the decimals and display calculated variables as integers.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
You need to download the WebFOCUS Developing Application Manuals for your release.
With the way you have coded this (HOLDFORMAT ALPHA) all the data in your file is alpha-numeric. There is no binary data. The correct way to code the -READ is:
-READ HEAD &V9.24.
All you need between the .. is the length of the field.
Also, the P, D and F formats, the number following the P, D or F is the total length of the field including any embedded commas, periods or signs.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006