Use the TYPE() function. If your variable is m.MyVar, TYPE('m.MyVar') will return the type. 'C' is character, 'N' is numeric. Check the help for TYPE() for the other possible types.
>How can I understand a variable value is numeric or string(or character).
>
>thanks.