Dear All,
I am dealing with a variable without any space or delimiters which I need to split. I tried the following commands: split and moss without any success, I tried searching the list-serve without much success The variable I am dealing with has values something like this : 2XMAPHB, 3XTEDK1 and so forth, and the values vary a lot and switches between text and numbers. I will like to split the variable by fixed length if at all possible- like the first 2 letter/number of the variable, then the next 3 and the last 2.
Another alternative is splitting the values by each letter/number then use concatenate to stitch as necessary.
I can split the variable in excel, but it is not an ideal situation as I am dealing with hundreds of files.
Please let me know what I am missing - and will really appreciate the input. Thanks
Rick
I am dealing with a variable without any space or delimiters which I need to split. I tried the following commands: split and moss without any success, I tried searching the list-serve without much success The variable I am dealing with has values something like this : 2XMAPHB, 3XTEDK1 and so forth, and the values vary a lot and switches between text and numbers. I will like to split the variable by fixed length if at all possible- like the first 2 letter/number of the variable, then the next 3 and the last 2.
Another alternative is splitting the values by each letter/number then use concatenate to stitch as necessary.
I can split the variable in excel, but it is not an ideal situation as I am dealing with hundreds of files.
Please let me know what I am missing - and will really appreciate the input. Thanks
Rick
Comment