I was to extract the first part of a string variable. example 12.2.2 1.1.1 54.1 in these examples I wish to extract just the figures before the first dot and generate a new variable that will contain 12 1 54.
tradename newvar
12.2.2 12
1.1.1 1
54.1 54