Environment: Natural 6.3.9 for Unix on RED Hat Advanced Server 5.5
see this little program:
define data local
1 zeit (T)
end-define
MOVE EDITED ‘24-00-00’ TO zeit(EM=HH-II-SS)
** MOVE EDITED ‘23-59-59’ TO zeit(EM=HH-II-SS)
display zeit
end
The result of the run is NAT1143 “Input does not respond to input edit mask”.
With the commented line the program works fine.
Obviously the time range is from 00:00:00 to 23:59:59
In our customer’s Mainframe environment this program works fine. May be they got a special zap from Software AG.
Any hint how to get it working in an UNIX environment too? It is very important to the customer.
Natural 4.1.4 on z/OS works the same as you describe. I am guessing if it is very critical for t’24-00-00’ to be synonymous with t’00-00-00’, then I would ask SAG support for a special zap.
I would have not expected t’24-00-00’ to work at all.
I’d agree with Brian 100%, and our Natural 4.2 (mainframe) is “agreed” with me: t’24-00-00’ doesn’t make any sense(?): the time range is from 00-00-00 to 23:59:59.
Stupid question: What’s the difference between 24-00-00 and 00-00-00?
It would be interesting for me to see the output of the following code:
define data local
1 zeit (T)
end-define
MOVE EDITED '24-00-00' TO zeit(EM=HH-II-SS)
display zeit (EM=YYYY-MM-DD^HH:II:SS)
MOVE EDITED '00-00-00' TO zeit(EM=HH-II-SS)
display zeit (EM=YYYY-MM-DD^HH:II:SS)
end
This is an old story …
Base Natural does not support “2400 time” and you are seeing “correct” behaviour. But some customers require this. So Software AG provides “special zaps”.
.
for Mainframe, since April 2000 there was “special purpose zap”:
NAT312 Mainframe special zap NA42112
NAT412 Mainframe special zap NA62048
“Allow 24 for hours in INPUT, IS(T) and MOVE EDITED - Available on request. Contact Software AG Support”.
.
for AIX, since December 2009 this functionality was available from NAT412 patch level 21 (see Empower → Knowledege Center and search for DOCID:19666).
.
But it is NOT clear (from Knowledge Center) whether “2400 time” was ported to Red Hat Server.
.
I agree with Brian. If you need “2400 time” then please contact Software AG Support to request a special fix.