Search notes:
SAS data types
SAS has only two data types: real numbers and fixed length character strings.
Dates and times
are internally stored as numbers.
Macro variables
are always characters.
Character values must be quoted to distinguish them from other language elements (such as
variables
).
Conversion from one to another
Values of one data type can be converted to the other with the
input
and
put
function
.
Determining type
The type of a
variable
can be determined with
vtype
.
See also
Change data types in a data set
.
In a
data step
, the variables of a specific type can be referred to with the special
variable lists
_numeric_ or _character_
.
Index