【发布时间】:2016-09-12 17:52:30
【问题描述】:
我是 SAS 新手,目前正在学习它。 我读到我们可以在 infile 语句中使用 DSD 和 DLM 选项。
但是,当我使用具有多个分隔符的数据执行以下操作时出现错误。
代码:
data test;
infile cards dlm='@' dsd;
input pid visit $ dose;
cards;
101,vis1"0.05
102,vis2,0.1
错误:
NOTE: Invalid data for pid in line 254 1-8.
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8---
255 102,vis2,10mg
NOTE: Invalid data errors for file CARDS occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
pid=. vist=05mg drug=102,vis2 _ERROR_=1 _N_=1
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.MH1 has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
256 ;
您能否帮助我理解这一点以建立我的知识?
【问题讨论】:
标签: sas