美文网首页
检测导入数据是否字段完整

检测导入数据是否字段完整

作者: 周莉2019 | 来源:发表于2018-12-24 15:40 被阅读0次

data test;

set d9;

len1=klength(联系手机);

len2=length(联系手机);

customer_id_1=ksubstr(联系手机,1,len1);

run;

data test;

set test;

len3=length(customer_id_1);

run;

data test_1;

set test;

if len2^=len3;

/*keep customer_id customer_id_1;*/

run;

相关文章

网友评论

      本文标题:检测导入数据是否字段完整

      本文链接:https://www.haomeiwen.com/subject/ibszkqtx.html