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 am getting an error when trying to use this function. The error is: (FOC36355) INVALID TYPE OF ARGUMENT #2 FOR USER FUNCTION STRIP - here is the function as I have it:
Brenda, it is possible that APPT_DATE is not an alpha field but a date field and so cannot be used in the STRIP function. depending on the format of APPT_DATE, you probably don't need to use the STRIP function to remove the slashes.
If APPT_DATE has format YYMD, do the following:
DATE2/A8YYMD = APPT_DATE;
Aptdate/A8 = DATE2;
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
As you say you are new to Report Painter, why do you need to remove the '/'. As all have said if it is a smart date, the '/' are how it displays, you have to convert to an alpha field to get no '/' to display.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
It depends on why you want to remove the '/'. If you want to do some calculations, use only the year or month part, change the format from YYMD to DMY or whatever, there are 1001 (or more) ways to do it. For a starter sometimes a bit confusing.
We can help if we know a bit more, so please update your signature.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Thanks for all of your replies. I did not realize that you couldn't do the Strip function on a date field. I used a compute with the format YY|M|D to eliminate the '/' and that seems to have taken care of the problem. I had to remove the slashes in order to compare this date to another and didn't realize that there were so many date 'functions' available. Like I said, I'm brand new to this so just getting my feet wet. Thanks again to all! I'm moving on to a really complicated issue next and I may have to come back for some real help...
Brenda WebFocus/Report Painter 7.6.4 Linux/MVS DB2
Posts: 10 | Location: Plano, Texas | Registered: September 24, 2007