我在下面解释了一个问题...,
1.My DB2 table column is in INTEGER format (it has the date value in Julian date format - YYYYDDD)
2. After unload this date into a flat file, the result is in hexa decimal format.(4 bytes occupaid)
3. I have a requirement to compare this date with (Current Julian date+7days) and write the corresponding recods into a File.
4. So, when I am comparing the Hexa decimal Input date with Current Julian date+7days (DATE3P+7), I am getting MAxcc=0 but I am not getting required output.
5. What I identified the problem is that the input date should also be in packed decimal format. 谁能让我知道如何在卸载时转换成压缩十进制的表值,或者请建议其他方法获得它。
示例:- 1。卸载儒略日期(YYYYDDD)卸载后,这将是十六进制格式。2.与当前的Julian日期+7天进行比较。排序输出FILES=1,INCLUDE=(1,4,PD,LT,DATE3P+7)输出FILES=2,保存
提前谢谢你,Rajasekhar Jannu。
发布于 2011-10-25 10:18:01
相信这些不同的方式,工作...
DB2有许多标量函数来提供儒略日期以及数字形式的日期。我相信JULIAN标量函数上的DIGITS会做...
引用此
https://stackoverflow.com/questions/7820890
复制相似问题