Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Remove single inverted commas from input variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Remove single inverted commas from input variables
 Login/Join
 
Member
posted
I need to replace the input variable according to a desired format. For example acct has values incoming as '1204' and want it to like 1204. One more case, if the input is multiple , like '1204' OR '1205' OR '1206' then need the desired output as 1204,105,1206

Thanks in advance for the help.

Regards,
Sourabh

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 9 | Registered: April 04, 2013Report This Post
Virtuoso
posted Hide Post
If this is form HTML Composer, read this. If not search STRREP.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Master
posted Hide Post
Look up EDIT and RJUST


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Platinum Member
posted Hide Post
We can remove those quotes using CTRAN. Here is something that I use when passing multiple values into SQLPASS THRU

-PROMPT &CAR.(OR(FIND CAR IN CAR)).Car.;
-SET &CAR = STRREP(&CAR.LENGTH,&CAR,4,' OR ',1,',',&CAR.LENGTH,'A&CAR.LENGTH') ;
-SET &CAR = TRUNCATE(&CAR) ;
-TYPE &CAR;
-SET &CARIN = '(' |&CAR |')' ;
-SET &CARIN = TRUNCATE(&CARIN);
-TYPE &CARIN;
-SET &CAR_NC = TRUNCATE(&CAR);
-TYPE &CAR_NC ;
-SET &CARNC = CTRAN (&CAR_NC.LENGTH,&CAR_NC,39,32,'A&CAR_NC.LENGTH');
-TYPE &CARNC ;
-SET &CARNC = STRIP(&CARNC.LENGTH,&CARNC,' ','A&CARNC.LENGTH') ;
-SET &CARNC = TRUNCATE(&CARNC);
-TYPE &CARNC;
-SET &SQLCAR = IF '&CARNC.EVAL' EQ 'ALL' OR '&CARNC.EVAL' EQ 'FOC_NONE' OR '&CARNC.EVAL' EQ '_FOC_NULL' OR '&CARNC.EVAL' EQ ' ' THEN ' ' ELSE 'AND CAR IN ' | &CARIN ;
-TYPE SQLCAR : &SQLCAR ;


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

 
Posts: 104 | Location: Indianapolis | Registered: November 08, 2007Report This Post
Platinum Member
posted Hide Post
-SET &VAR_IN = '''1204''' | ' OR ' | '''1205''' | ' OR ' | '''1206''' ;
-*
-* Get rid of single quotes
-SET &VAR_OUT1 = STRIP(&VAR_IN.LENGTH , &VAR_IN, '''', 'A50') ;
-* Replace ' OR ' with ','
-SET &VAR_OUT2 = STRREP(&VAR_OUT1.LENGTH,&VAR_OUT1,4,' OR ',1,',',50,'A50');


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Remove single inverted commas from input variables

Copyright © 1996-2020 Information Builders