文字列の長さを取得する LENGTH関数 val = length(str); ... https://documentation.sas.com/doc/ja/pgmsascdc/v_061/ds2ref/n1lbye3jnh3aipn16jqqkbv4gnsg.htm