IBM Support

The week number output of the date() and strdate() date conversion functions is incorrect - Sterling Gentran:Server for UNIX

Troubleshooting


Problem

The week number output of the date() and strdate() date conversion functions is incorrect

Symptom

Gentran:Server for UNIX; 6.X
AIX
Application Integration Map
The week number output of the date() and strdate() date conversion functions is incorrect.
 

Error Message

%W value comes out one week off. In this example, the incorrect output below should be 20100816 (monday the 16th instead of monday the 23rd).
Incorrect output:
E2EDP16001 03DW20100823

Extended rule:
if $4240_SCC.#4017 = "4" then
begin

if #2379:13 = "102" then
begin
$TEMP_FST[lin_cnt][fst_cnt].#DTM_2380 = date("%Y%m%d",#2380:13);
$TEMP_FST[lin_cnt][fst_cnt].#SCC_2013 = "D";
end

if #2379:13 = "616" then
begin
$TEMP_FST[lin_cnt][fst_cnt].#DTM_2380 = date("%Y%W",#2380:13);
$TEMP_FST[lin_cnt][fst_cnt].#SCC_2013 = "W";
end
end
 

[{"Product":{"code":"SS6V5U","label":"Sterling Gentran:Server for UNIX"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"}],"Version":"6.0.2;6.1;6.2","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

NFX9904

Document Information

Modified date:
11 February 2020

UID

swg21558552