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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
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, 2018Report This Post
Expert
posted Hide Post
How about GETTOK or TOKEN functions ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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, 2018Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders