Focal Point
[SOLVED]STRIP not working properly

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8907073716

March 02, 2012, 03:20 PM
Kamesh
[SOLVED]STRIP not working properly
Hi,

I have the following string and try to remove the '.' from it. I am using STRIP but not returning me the correct string.

Below is the code I am using.
-SET &DISTNAME=STRIP(32,'Aishwarya Consolidates Pvt. Ltd.','.','A32');
-TYPE DISTNAME &DISNAME
-EXIT

This is the output I am getting
-TYPE DISTNAME Aishwarya Consoli
DISTNAME Aishwarya Consoli
-EXIT

what am I missing here?

This message has been edited. Last edited by: Kamesh,


WFConsultant

WF 8105M on Win7/Tomcat
March 02, 2012, 03:44 PM
njsden
quote:

-SET &DISTNAME=STRIP(32,'Aishwarya Consolidates Pvt. Ltd.','.','A32');
-TYPE DISTNAME &DISNAME &DISTNAME
-EXIT


Works for me when using the right variable. Wink

DISTNAME Aishwarya Consolidates Pvt Ltd




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
March 02, 2012, 03:52 PM
Kamesh
That was the typo.

Anyway the issue was with the length field. I had that as &DLEN. Once I change that to use EVAL, it started working.

-SET &DISTNAME=STRIP(&DLEN.EVAL,'Aishwarya Consolidates Pvt. Ltd.','.','A&DLEN.EVAL');

Thanks


WFConsultant

WF 8105M on Win7/Tomcat