Summary
Reducing Data Storage Space for Character Variables
SAS
stores character data as one character per byte. You can use the LENGTH
statement to increase or reduce the length of a character variable.
You can also use other coding techniques to reduce the space that
is needed for storing your character data.
Reducing Data Storage Space for Numeric Variables
SAS stores numeric data
in floating-point representation. The default length for a numeric
variable is 8 bytes. You can use a LENGTH statement to reduce the
length of a numeric variable. Reading reduced-length numeric variables
requires less I/O but more CPU resources than reading full-length numeric variables. You can use PROC COMPARE to see the precision loss, if any, in the values ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.