I am trying to convert the value convert 140119 TO 2014/01/19, but I keep getting 1914/01/19. I am doing this in a synonym. How do I get the century to change? the formats I am using I6YMD to I8YYMD.This message has been edited. Last edited by: Jay Potter,
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster
February 19, 2014, 12:09 PM
Francis Mariani
How are you currently doing it in the synonym?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 19, 2014, 12:15 PM
Francis Mariani
Add SET DEFCENT = 20 to edasprof.prf if you're working with dates that do not contain the century.
SET DEFCENT = 20
TABLE FILE CAR
PRINT
COMPUTE DT1/YMD = '140119';
COMPUTE DT1_YYMD/YYMD = DT1;
BY COUNTRY NOPRINT
WHERE READLIMIT EQ 1;
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server