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.
--SET &INSTRLEN=&SSN.LENGTH; -SET &OR=''' OR '''; -SET &WHERE= IF &INSTRLEN LE 09 THEN &SSN - ELSE STRREP(&INSTRLEN, &INSTR,1,',',6, &OR, 200, 'A200') || ''''';
IF I assign the ssn to be 123456789 ,for example, I get this (FOC36355) INVALID TYPE OF ARGUMENT #2 FOR USER FUNCTION STRREP. How can I fix this? Thanks so much in advance, KKThis message has been edited. Last edited by: Kerry,
on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment Webfocus: WebFocus 7.6.1 Prod and TestEnvironment
-SET &INSTRLEN=&SSN.LENGTH; -SET &OR=''' OR '''; -SET &WHERE= IF &INSTRLEN LE 09 THEN &SSN - ELSE STRREP(&INSTRLEN, &SSN,1,',',6, &OR, 200, 'A200') || ''''';
Sorry. it should be &ssn. What this function trying to do is that when the user enters more than 1 ssn in a text box, s/he will be using comma(,) to seperate them and I am trying to have it removed and replaced with an OR with open single and close quotes around them.
on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment Webfocus: WebFocus 7.6.1 Prod and TestEnvironment
In DM function calls where an Alpha type is required always concat a blank to force it to alpha type. ASIS is meant to do this as well but does not work.
In your example dm takes string '123456789' and converts it to a double precision value despite the single quotes.This message has been edited. Last edited by: hammo1j,
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2 Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006
CAN WE PLEASE HAVE SOMETHING ABOUT THIS IN THE MANUAL SOMETIME PLEASE OR EVEN A CHECKER IN DS.
SO MANY PEOPLE END UP WASTING ABOUT HALF A DAY OVER THIS MATTER. ABOUT 10 YEARS AGO I HAD A SIMILAR PROB WITH CHKFMT AND I SOLVED IT, BUT WHILE I WAS LOOKING FOR THE SOLUTION, I FELT LIKE GOING OUT AND JOINING JOHN RAMBO AT THE OUTSKIRTS OF SOCIETY.
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2 Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006
Thanks so much. It worked now. Hammo1j is correct. I am sure alot of people that are not at the guru level like me may even spend more than half a day trying to look at the function to debug. Thanks so much.
on VMS: OpenVMS AXP V8.2 Prod and TestEnvironment Webfocus: WebFocus 7.6.1 Prod and TestEnvironment
The clue is in the function that you are trying to use. STRREP is for replacing one part of a string with another string.
So when you try and pass in a value of 123456789, it is treated as a numeric value not an alphanumeric string. Enclose the 123456789 in singles quotes and you should be on your way.
T
John,
You're out of place complaining about the "documentation", that is Francis' lifetime commitment
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
A&FROMDATE.LENGTH is the key. While I was playing with the 2nd arguement to ensure its value as string, the results are inconsistent without the last one as alpha format.
Hua
Developer Studio 7.6.11 AS400 - V5R4 HTML,PDF,XLS
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008