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 firstname.lastname@example.org for further assistance. Reference the community FAQ to learn more about the community.
I am attempting to take a packed decimal and convert it into an alphanumeric so that I can perform a SUBSTR on it.
I use PTOA to do the conversion and then attempt the SUBSTR but my results come back blank. Can anyone help?
Example: DEFINE TEST PGROSS_TEMP/P15=12345677; PGROSS/A16 = PTOA(PGROSS_TEMP,'(P15)',PGROSS); PGROSS_FINAL/A3 = SUBSTR(16,PGROSS,1,3,3,'A3');This message has been edited. Last edited by: Ryan Kolatalo,
It has to do with what is in the first three character positions of PGROSS. Since the number on PGROSS_TEMP is only 8 characters long, PGROSS is 16 characters long, and PTOA right justifys the value when it stores it into PGROSS, the first three characters in PGROSS are indeed blanks.
PGROSS_FINAL/A3 = SUBSTR(16,PGROSS,8,10,3,'A3');
and you will see what I mean.
Robert F. Bowley Jr. Owner TaRa Solutions, LLC
In WebFOCUS since 2001
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005