如果不是格式已经给定,格式应该是系统给定的。
[code:2mg5h0zq]3027 data _null_;
3028 x1 ='06jan2001'd; x2 ='06jan2001'd;
3029 y1 =vformat(x1);
3030 format x2 date9.;***assign a format;
3031 y2 =vformat(x2);
3032 put y1= y2=;
3033 run;
y1=BEST12. y2=DATE9.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds[/code:2mg5h0zq]