Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: Low values Results from VARCHAR FORMAT

$
0
0
Author: balaji81_k
Posted: Thu Oct 20, 2016 1:45 am (GMT 5.5)

Hi Enrico,
I coded this way
Code:

SELECT
CAST(VARCHAR_FORMAT(CURRENT_DATE,'YYYY.MM.DD') AS CHAR(10)),
SUBSTR('|',1,1),
CAST(VARCHAR_FORMAT(CURRENT_DATE,'YYYY/MM/DD') AS CHAR(10)),
SUBSTR('|',1,1)
FROM SYSIBM.SYSDUMMY1


It is working as expected.
_________________
dear peoples,
i want to join these this group in order to
enrich my knowledge in mainframe.


Viewing all articles
Browse latest Browse all 8500

Trending Articles