Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    Editing Field with Variable Numbers before Text String
Go
New
Search
Notify
Tools
Reply
  
Editing Field with Variable Numbers before Text String
 Login/Join
 
Member
posted
Hello,

I have a field within my data set that has variable number lengths and a '#' sign prior to a person's full name. See an example below:

11#Doe,Jane
123#Smith,John
12223#Doe,John

Is there a function that would allow me to only return the string after the '#' sign, even though the characters prior to it have a variable length?

Thank you!


Webfocus 8.105m, XLSX, EXL2K, HTML, PDF
 
Posts: 2 | Registered: November 19, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
How about GETTOK or TOKEN functions ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.04OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 5986 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Member
posted Hide Post
I was able to use the functions below:


DEFINE FILE EXAMPLE
POSITION/I3 = POSITV(NAME,30,'#',30,FOUND);
EMP/A30 = SUBSTV(30,NAME,POSITION+1,30,EMP);
END

Thank you!


Webfocus 8.105m, XLSX, EXL2K, HTML, PDF
 
Posts: 2 | Registered: November 19, 2018Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    Editing Field with Variable Numbers before Text String

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.