
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove symbols
I have table with multiple fields and from on field named Names i want to remove the symbol |
KEY, | Names |
1, | Alan | Bros |
2, | Peter | Kobal |
3, | James | Kris |
4, | Martin | Ross |
5, | Kristien | Grenn |
Jay
- Tags:
- subfield()
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Then try this ways
Source:
LOAD *,SubField(Names,'|',1) as FirstName,
SubField(Names,'|',2) as LastName;
LOAD SubField(Names,'|') as New,KEY, Names;
LOAD * Inline
[
KEY, Names
1, Alan | Bros
2, Peter | Kobal
3, James | Kris
4, Martin | Ross
5, Kristien | Grenn
];
Regards
Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
=purgechar ( 'Alan | Bros' , '|' )


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use
=Subfield(Names,'|',1)& ' ' &Subfield(Names,'|',2)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the replace function.
An example: replace('abccde','cc','xyz') returns 'abxyzde'
In your case = Replace(Names,'|',' ')
Hope it helps!
Br,
T

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try to load your table like this way
Source:
LOAD SubField(Names,'|') as New, KEY, Names;
LOAD * Inline
[
KEY, Names
1, Alan | Bros
2, Peter | Kobal
3, James | Kris
4, Martin | Ross
5, Kristien | Grenn
];
Regards
Anand


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
=purgechar(Names,'|')


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use purgeChar().
ex: PurgeChar(Names,'|')


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check this file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And how can i create the two fields in the load script from the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Then try this ways
Source:
LOAD *,SubField(Names,'|',1) as FirstName,
SubField(Names,'|',2) as LastName;
LOAD SubField(Names,'|') as New,KEY, Names;
LOAD * Inline
[
KEY, Names
1, Alan | Bros
2, Peter | Kobal
3, James | Kris
4, Martin | Ross
5, Kristien | Grenn
];
Regards
Anand

- « Previous Replies
-
- 1
- 2
- Next Replies »