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.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
I've haven't done too much work with Functions. I often just use an include statement for the sake of modularity (but I don't feel that's good practice).
I would like to know why I am having problems with the following function. This function should take a parameter (QUOTE_ME) and add quotes in the right spots if they do not exist (in the case of strings). If quotes do exist then the input should match the output.
DEFINE FUNCTION QUOTEANATOR(QUOTE_ME/A1000)
QUOTE_ME = TRUNCATE(QUOTE_ME);
QUOTE_ME = STRREP (QUOTE_ME.LENGTH,QUOTE_ME,1,'''',0,'',1000,'A1000');
QUOTE_ME = TRUNCATE(QUOTE_ME);
QUOTE_ME = '''' || STRREP (QUOTE_ME.LENGTH,QUOTE_ME,4,' OR ',6,''' OR ''',1000,'A1000') || '''';
QUOTE_ME = TRUNCATE(QUOTE_ME);
QUOTEANATOR/A1000 = QUOTE_ME;
END
The error message I get is:
(FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: TRUNCATE
Anyone know why TRUNCATE doesn't work? Am I making some syntax error? I've tried to put a - at the start of the lines, but that wasn't successful. I am using other Functions that I have created and used for a long time as templates, and they work fine.
Thanks again great community!This message has been edited. Last edited by: FP Mod Chuck,