避免在缺失值后跳行
虽然输入过程有 7 个变量,像这样
Infile "C:\Users\Gila\Desktop\StatOrdinL2020\artiste1.txt" dlm="*" DSD;
LENGTH Artiste $ 25 titre $30;
Input
Artiste $ Titre Prix Deces Hauteur Largeur Medium;
这个数据库
Abatucci Pierre*Derniers rayons*1200*1*55*84*5
Abatucci Pierre*L'entrée au château*1000*1*75*91
Agneessens Edouard*Jeune femme*6000*1*40*32*5
在第二行只有 6 个变量,第三个变量将被跳过,但它不应该
while input procedure with 7 variables like this
Infile "C:\Users\Gila\Desktop\StatOrdinL2020\artiste1.txt" dlm="*" DSD;
LENGTH Artiste $ 25 titre $30;
Input
Artiste $ Titre Prix Deces Hauteur Largeur Medium;
this database
Abatucci Pierre*Derniers rayons*1200*1*55*84*5
Abatucci Pierre*L'entrée au château*1000*1*75*91
Agneessens Edouard*Jeune femme*6000*1*40*32*5
in the second lines there are only 6 variables and the third one will be skipped but it should not
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过将
missover
添加到infile
语句来告诉 SAS 在变量缺失时分配缺失值:You can tell SAS to assign missing values when variables are missing by adding
missover
to yourinfile
statement: