将日期格式20100609转换成2010-06-09.
data s_p2 type d value '19880542'.
data mydata(10) type c. "mydata的大小为(10)
CONCATENATE S_P2+0(4) S_P2+4(2) S_P2+6(2) INTO MYDATA SEPARATED BY '-'.
write:mydata.
将日期格式20100609转换成2010-06-09.
data s_p2 type d value '19880542'.
data mydata(10) type c. "mydata的大小为(10)
CONCATENATE S_P2+0(4) S_P2+4(2) S_P2+6(2) INTO MYDATA SEPARATED BY '-'.
write:mydata.