i have some variables i dont know the type they or charter or numeric.
Now i want a new variable as Type_var it should print as charater or numeric for what type of variable it is weather character or numeric
If you want to know how a column is defined, that information can be reached in DICTIONARY.COLUMNS (via proc sql), SASHELP.VCOLUMN or data step functions. The can assign that value to a macro variable to be used in an assignment statement.
if you want to know what type of values is stored in a character column, there's a bunch of functions that can helpful such as notdigit.
Depending on the purpose/use of a given SAS variable, you can define whether it is CHARACTER or NUMERIC type (using either a LENGTH or ATTRIB statement) or with one of multiple "import" processes, and also you should define what SAS output FORMAT is to be used to display the data.