08-31-2016 12:53 PM
I have a set of data with percentages.
TotalC is a character variable.
I need to extract only the part of string before , (210,1,2,13).
I need a numeric variable total:
08-31-2016 01:39 PM
Where does the 210 come in? Did you mean the part before the comma:
A character variable could be:
Newvariable = scan(TotalC,1,',');
in a data step.
If you need more than before only the first comma then you will need to provide rules.
If there is no part before the comma what should the returned value be?
Need further help from the community? Please ask a new question.