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.
What I discovered is that if you put a non numeric character after the + sign then everything works fine. Therefore you could do a replacement of all + signs with '+ ' (plus and space):
TABLE FILE CAR
HEADING
"+6543210123"
PRINT COUNTRY
COMPUTE ERROR/A20 = STRREP (12, '+4567-890123', 1, '+', 2, '+ ', 20, ERROR);
COMPUTE ERR2/A20 = '+6543210123' ;
COMPUTE ERR3/A20 = '+67890123456' ;
ON TABLE PCHOLD FORMAT EXL2K
END
SET COMPOUND=CLOSE
TABLE FILE CAR
HEADING
"+6543210123"
PRINT
'CAR.ORIGIN.COUNTRY'
COMPUTE ERROR/A20 = STRREP (12, '+4567-890123', 1, '+', 2, '+ ', 20, ERROR);
COMPUTE ERR2/A20 = '+6543210123' ;
COMPUTE ERR3/A20 = '+67890123456' ;
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END
I am running XL2K3 SP2 and in your example tab1 works fine and tab2 doesn't. In the above example if you do not do a strrep on the 1st request then it just gives garbage as well.
Hope this helps.
WF 8.2.01M 8.2.01M Reporting Server Windows 2012 Srvr R2 PDF,Excel, HTML Graphs - a lot of graphs
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003
I tried the concatenation and the only way it worked was to add a non numeric character after the + sign. I figured the data Waz will be using will come from a field from the database. Hence the use of STRREP.
WF 8.2.01M 8.2.01M Reporting Server Windows 2012 Srvr R2 PDF,Excel, HTML Graphs - a lot of graphs
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003
If you replace any single instance of '+' with '+ ' in the second report, all of the numbers display correctly. For example, if you make this change to the report heading, all of the numbers display correctly.
SET COMPOUND=OPEN
TABLE FILE CAR
HEADING
"+6543210123"
PRINT COUNTRY
COMPUTE ERROR/A20 = '+4567-890123';
COMPUTE ERR2/A20 = '+6543210123';
COMPUTE ERR3/A20 = '+67890123456';
ON TABLE PCHOLD FORMAT EXL2K
END
-*
SET COMPOUND=CLOSE
TABLE FILE CAR
HEADING
"+ 6543210123"
PRINT COUNTRY
COMPUTE ERROR/A20 = '+4567-890123';
COMPUTE ERR2/A20 = '+6543210123';
COMPUTE ERR3/A20 = '+67890123456';
ON TABLE PCHOLD FORMAT EXL2K
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Thanks for the responses, we had worked out that either removing the '-' or adding a space after the + would work, but that would mean either manipulating the data in the program or in the database its coming from.
This is something that I don't like doing. Changing customer data with out there consent is in many ways a no no.
It is unfortunately what we are going to do, as there are only a few of these.
But it still raises the question, why is it happening.
I did find in the Office 2003 SP2 release notes this entry, that may be the reason why.
quote:
When you try to import data by using the Excel 2003 Data Import Wizard, Excel 2003 may incorrectly identify the code page (language setting) of the document that you are trying to import.