I found a strange behaviour with the Time Fields :
Using the parameter below we want to use a time field to store time without date :
...
1 #TAB2
2 #TA3 (A35/13)
2 #TA4 (N03/13)
1 #TIME (T)
1 #NUM-SIGN (N02)
...
MOVE EDITED '1539' TO #TIME (EM=HHII)
...
I’ve set the entirex.trace=2 to check the data transmitted from the host .The time seems to be transmitted by the broker but with some strange date information, and the Java Date printed in the sysout is wrong : time is 00:00:00.
000004F0 34372B30 35332B30 31332B30 30302B30 |47+053+013+000+0|
00000500 30302B30 30302B30 30302B30 30302B30 |00+000+000+000+0|
00000510 30302B30 30302B30 30302B30 30303030 |00+000+000+00000|
00000520 30303031 30313135 33393030 302D3137 |0001011539000-17|
2006-02-22 12:17:19.427/main SEND returns: EC=00000000,TXT=Successful response,RETL=1328,UOWST=RECV_NONE
----------------------------------------------
Date returned : Sat Jan 01 00:00:00 CET 1
----------------------------------------------
If we store some date information in the Natural procedure,
...
MOVE EDITED '200602221539' TO #TIME (EM=YYYYMMDDHHII)
...
then the time in the Java Date Object is correct.
00000500 30302B30 30302B30 30302B30 30302B30 |00+000+000+000+0|
00000510 30302B30 30302B30 30302B30 30303230 |00+000+000+00020|
00000520 30363032 32323135 33393030 302D3137 |0602221539000-17|
2006-02-22 14:26:47.302/main SEND returns: EC=00000000,TXT=Successful response,RETL=1328,UOWST=RECV_NONE
----------------------------------------------
Date returned : Wed Feb 22 15:39:00 CET 2006
----------------------------------------------
Is it mandatory to have date information in a time field ?
Thanks for your help !
G.
#Mainframe-Integration#webMethods#EntireX