finding words separated by spaces
Moderators: chulett, rschirm, roy
finding words separated by spaces
Hi,
I have a situation where i need to separte words:
Ex:
My input data looks like
CHICAGO CITY
ABC XYZ
A CNBC H.
I need to separate one word char(30) into 3 words.
col1,col2,col3
CITY,CHICAGO
XYZ,ABC
CNBC,A,H.
The length of these characters in each line are different and they are not uniform through out the file.
is there are method to identify spaces among words and when found pull first and so on
Please advice!
I have a situation where i need to separte words:
Ex:
My input data looks like
CHICAGO CITY
ABC XYZ
A CNBC H.
I need to separate one word char(30) into 3 words.
col1,col2,col3
CITY,CHICAGO
XYZ,ABC
CNBC,A,H.
The length of these characters in each line are different and they are not uniform through out the file.
is there are method to identify spaces among words and when found pull first and so on
Please advice!
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: