Your code is not creating a timestamp field. It is only creating an alphanumeric string containing a date and time. I know that sounds picky but the formats for each are entirely different and they can't be used interchangeably.
If you want to create an actual timestamp field, try the HINPUT function. If you only need an alpha string just
DEFINE FILE filename DTTIM_STRING/A15=AR_DATE | ' ' | RTIMEF; END
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
September 04, 2009, 09:45 PM
Tomsweb
What I am actually trying to do is break a database field in HYYMDS format which displays as: 2009/01/01 09:35:00
You could use the HCNVRT function to convert your HYYMDS field to alphanumeric, and then use EDIT on the converted field to pick out the substrings in the order that you need.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 06, 2009, 05:41 PM
Waz
Would this help ?
TABLE FILE CAR
PRINT COUNTRY
COMPUTE DTS1/HYYMDS = DT(20090101 09:35:00.000) ;
COMPUTE DTS2/HDMYS = DTS1 ;
END