【SAS NOTE】substr字符串提取函数

substr(s,p,n)函数
【功能】字符替换与提取字符
【类别】 字符函数
【语法】
1 (right of =) Function,提取字符:Substr(s,p,n)从字符串s中的第p个字符开始提取n个字符的子串。
2 (left of =) Function,字符替换:Substr(s,p,n)=characters-to-replace,从变量s的p个字符开始替换n个字符

原文地址:https://www.cnblogs.com/colipso/p/2880866.html