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.
I have a number in A22 format. Im trying to convert it to D12 as I need to round it to thousands etc. Im trying to use ATODBL and max input size is 15 characters. any tip how to do this? thankss..This message has been edited. Last edited by: Kerry,
DEFINE FILE CAR
MYA/A20 WITH COUNTRY = '12345678901234567890';
MYP/P20 = EDIT(MYA);
MYPB/P17 = MYP/1000 ;
END
TABLE FILE CAR
PRINT MYA MYP MYPB
IF RECORDLIMIT EQ 5
END
-RUN
I didn't think EDIT worked above 11 digits ? , well 10 and a half digits.
And the other question is what format id the A22 number in ?, Is it formatted ?, Are there implied decimal places, or is there a decimal point in the text?
EDIT works fine for left hand side long packed fields: e.g. P22.2. This has been true for mainframe FOCUS for many years, and works now for all platforms. I'm not sure when non-mainframe WEBFOCUS started to support this, so you can just try it on your platform/release. The constant alpha (or field) can basically have any form that is recognized by the expression parser: e.g.
DEFINE FILE CAR
MYD/D12.2 WITH COUNTRY = -123.456 ;
MYDB/D12.2 WITH COUNTRY = EDIT('-123.456') ;
MYP/P26.2 WITH COUNTRY = -1234567879012345678.01 ;
MYPB/P26.2 WITH COUNTRY = EDIT('-1234567879012345678.01') ;
END
-RUN
TABLE FILE CAR
PRINT MYD MYDB MYP MYPB
END