Here is my requirement :-
My i/p column is 160 chars. I need to populate 4 o/p cols (each 40 chars) from this i/p col by splitting it on word boundary. How do I do so in Server edition.
Thanks in advance,
Sambit
Splliting of 1 Input col into 4 Output cols on word boundary
Moderators: chulett, rschirm, roy
Splliting of 1 Input col into 4 Output cols on word boundary
Thanks !!!
Sambit
Sambit
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Etiquette Note
When a problem has been solved, the OP marks the thread as Resolved and adds a post indicating how the problem was solved, to aid future searchers.
I suspect you used either the Fmt() or the Fold() function after searching the forum, but it would be nice to know exactly what you did do.
When a problem has been solved, the OP marks the thread as Resolved and adds a post indicating how the problem was solved, to aid future searchers.
I suspect you used either the Fmt() or the Fold() function after searching the forum, but it would be nice to know exactly what you did do.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Re-Opening this Thread
Hi All,
I am re-opening this thread inorder to get some better ideas from the forum. Please let me know incase of any solutions.
Thanks,
I am re-opening this thread inorder to get some better ideas from the forum. Please let me know incase of any solutions.
Thanks,
Thanks !!!
Sambit
Sambit
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Place a dynamic array, derived as follows, into a stage variable.
Then use Field() functions with @TM as the delimiter to extract the four lines. For example, to extract the second line:
The only change for the other lines is the third argument.
Code: Select all
Fmt(InLink.TheString,"40T")Then use Field() functions with @TM as the delimiter to extract the four lines. For example, to extract the second line:
Code: Select all
Field(svChoppedLine, @TM, 2, 1)The only change for the other lines is the third argument.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
