How about the idea that this program has been running since that time, or 
otherwise, that this port/process/connection has never been LOGGED off since 
that time, and the Date is set based on that.  That is, you are never resetting 
it.



-----Original Message-----
From: Israel, John R. <[email protected]>
To: 'U2 Users List' <[email protected]>
Sent: Fri, Jan 20, 2012 10:08 am
Subject: Re: [U2] Date Problem


I thought of that, but the same programs are working in other accounts.  I have 
ompared all source code between accounts and they are the same.
John



ohn Israel
enior ERP Developer
Dayton Superior Corporation
125 Byers Rd  Miamisburg, OH 45342
ffice: 937-866-0711 x44380
ax: 937-865-9182
[email protected]
This message w/attachments (message) is intended solely for the use of the 
ntended recipient(s) and may contain information that is privileged, 
onfidential or proprietary. If you are not an intended recipient, please notify 
he sender, and then please delete and destroy all copies and attachments, and 
e advised that any review or dissemination of, or the taking of any action in 
eliance on, the information contained in or attached to this message is 
rohibited.


----Original Message-----
rom: [email protected] 
[mailto:[email protected]] 
n Behalf Of Allen Egerton
ent: Friday, January 20, 2012 1:07 PM
o: U2 Users List
ubject: Re: [U2] Date Problem
On 1/20/2012 12:36 PM, Israel, John R. wrote:
 I have an INCLUDE that I use in ALL programs I touch.  It simply does a bunch 
f assigning of variables so that I can use them as needed.  One of these 
ssignments is:
 TODAY = @DATE

 I have 1 program in 1 account that is consistently returning: 16066 (which is 
2/26/11).  This program is initiated via a Redback call but so are many many 
thers.

 In the pgm that is failing, immediately after my INCLUDE, I just added code to 
rite the following to disk:
 TODAY
 DATE()
 @DATE

 Both TODAY and @DATE ALWAYS return 16066 for this 1 program, but no others.  
he same program is working correctly in other accounts, and the value of TODAY 
s correct in EVERY other program I have ever used.

 Does anyone have a clue?

 I could replace @DATE with DATE() in my INCLUDE, but to do my due diligence, I 
hould recompile EVERY program that uses the INCLUDE (and that is NOT going to 
appen).

DATE is writable, check to see if you're inadvertently over-writing it
n that one program.
Example code:
001:       CRT "DATE():  ": DATE()
002:       CRT "@DATE :  ": @DATE
003:       @DATE = "XY"
004:       CRT "@DATE :  ": @DATE
005:       STOP
Example results:
RUN ADE.BP TT
ATE():  16091
DATE :  16091
DATE :  XY

-
llen egerton; [email protected]
______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to