从 DTDATE9 转换而来。至 DATE9

Conversion from DTDATE9. to DATE9

在 SAS Data Integration Studio 中,我有一个带有 DTDATE9 的 table。名为 date 的变量。当我将它映射到用户生成的代码转换(根本不改变变量)时,我收到错误消息 "The informat DTDATE was not found or could not be loaded"。

将格式更改为 DATE9. 后出现相同的错误消息,如果我更改上游转换中的变量使其格式为 DATE9.,则它以 ******** 形式出现*。

如何携带这个变量?

非常感谢。

这是因为DTDATE只是一种输出格式。以下是manual's description of DTDATEw. FORMAT:

The DTDATEw. format produces the same type of output that the DATEw. format produces. The difference is that the DTDATEw. format requires a datetime value.

因此,date 列值的内部表示仍采用 datetime. 格式。

* Your original table could be interpered as the following.;
data dtdate;
  input date datetime20.;
  format date dtdate9.;
  datalines;
  01JAN2015:00:00:00
;

* By removing the format, you can see the internal representation.
data dtdate_raw_again;
  set dtdate;
  format date;
run;