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 tried sending the a message with the subject "Remove leading and trailing spaces in a string". It was rejected so I am trying here. I need to remove leading and trailing blanks in a string. I wrote the following simple Maintain program.
MAINTAIN FILE PARKDATA MODULE IMPORT (MNTUWS) ;
Compute tbrownid/a9 ; -* brownid or plate (for non-permit violation or -* a towed vechile trimid/a9 ; -* brownid without leading and trailing blanks lenid/i2 ; -* lenght of trimed brown id
Claude The TRIM function, when used in Maintain, removes trailing blanks. Here is an example:
MAINTAIN COMPUTE NAME/A0 = 'MARK1 '; COMPUTE X/I3 = LENGTH(NAME); COMPUTE NAME = TRIM(NAME); COMPUTE Y/I3 = LENGTH(NAME); TYPE "X = <<X Y = <<Y" END
yields X = 15 Y = 5
Trim is useful if you are using CONTAINS and don't want any trailing blanks. If this doesn't solve the problem, please let us know what you are trying to do.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003