楼主: wildpanda
7775 10

求助,怎么在IF语句里使用Do循环 [推广有奖]

11
bobguy 发表于 2014-2-2 11:41:53
wildpanda 发表于 2014-1-25 22:13
数据格式:
9:00:00 1
9:00:06 6
You problem can be simply code as,

data timelist;
input time time. value;
datalines;
9:00:00 1
9:00:06 6
9:00:07 7
9:00:08 8
;
run;

data t2;
  do time=input('9:00:00',time.) to input('9:00:08',time.);
     output;
  end;
run;

data need;
  retain value2;
  merge timelist t2;
  by time;
  if value ne . then value2=value;
run;

proc print;run;

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 19:21