Hi:
If you always want the second "chunk" delimited by spaces, as shown in your snapshot of data, then, the SCAN function will allow you to do that. Although you could use PRX functions, the SCAN function will allow you to break a text string into "chunks" or "words" based on a delimiter. If, as you describe, you want the second "chunk" deliimited by spaces, then for data like this:
[pre]
column1
hhfgjsjbshbsbgsbk ab1 hhdjdjdn
xyxyxyxyxyxy cd2 xyxyxyxy
abababababababababab ef3 ababab
123456789 hi4 abcdefghijklmnopqrstuvwxyz
abcdefghijklmn xx5 nopqrstuvwxyz
[/pre]
A simple SCAN function will do the job:
[pre]
** parse string;
chunk1 = scan(column1, 1, ' ');
chunk2 = scan(column1, 2, ' ');
chunk3 = scan(column1, 3, ' ');
[/pre]
The SCAN function treats multiple delimiters, such as the multiple spaces around "xx5" as one delimiter. As long as the rest of your string does not have spaces, SCAN might be a simpler approach. (Remember to use the LENGTH statement for the "chunk" variables or extracted variables so that you set the length you need for the maximum possible value.)
cynthia