在data step中可以用 input("14:59:00",time.) 来读入一个时间格式的值,以下语句可以运行。
但是如果用IML实现时,input函数报错。
错误为: if iml1[ ,'sastime']<input("14:59:00",time.) then iml1[i,'a']=1;
------
22 200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,
a missing value, (, ), +, ',', -, ^, {.
14:59:00是一个可变的值,如果每次都先找sas时间格式中对应的值53940会很麻烦。
请问如何在IML中读取hh:mm:ss格式的值,谢谢!