![]() |
Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
|
Change the length of a variable. More...
Go to the source code of this file.
The library is assumed to be assigned. Simple character updates currently supported, numerics are more complicated and will follow.
data example; a='1'; b='12'; c='123'; run; %mp_updatevarlength(example,a,3) %mp_updatevarlength(example,c,1) proc sql; describe table example;
libds | the library.dataset to be modified |
var | The variable to modify |
len | The new length to apply |
Definition in file mp_updatevarlength.sas.