I am on UniData. I don't think the below applies in my case because I am not entering any data. I am simply forcing a variable to @DATE.
John -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of John Thompson Sent: Friday, January 20, 2012 12:59 PM To: U2 Users List Subject: Re: [U2] Date Problem It might be a global config item messing you up somewhere. I had a look at uvconfig on my system... I found this, but, it does not "seem" to apply to your situation. This is on Universe. Not sure which one you are on... # OCVDATE - Specifies whether UniVerse accepts partially 'bad' internal date # data. A zero value is the default and means that any value which # is not wholly numeric and which is supplied as an internal date # value to the command OCONV(<data>,'D') will be rejected as bad # and not converted. A non-zero value for this parameter will allow # data which is a number followed by other data, e.g. 9199-f, to be # partially converted; the numbers up to the non-numeric character # will be interpreted as the internal date, and the STATUS() function # will be set to 3, indicating successful conversion of a possibly # invalid date. OCVDATE 0 On Fri, Jan 20, 2012 at 12:36 PM, Israel, John R. < [email protected]> wrote: > I have an INCLUDE that I use in ALL programs I touch. It simply does a > bunch of assigning of variables so that I can use them as needed. One of > these assignments is: > TODAY = @DATE > > I have 1 program in 1 account that is consistently returning: 16066 (which > is 12/26/11). This program is initiated via a Redback call but so are many > many others. > > In the pgm that is failing, immediately after my INCLUDE, I just added > code to write the following to disk: > TODAY > DATE() > @DATE > > Both TODAY and @DATE ALWAYS return 16066 for this 1 program, but no > others. The same program is working correctly in other accounts, and the > value of TODAY is 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 should recompile EVERY program that uses the INCLUDE (and that > is NOT going to happen). > > > John > > > > > > John Israel > Senior ERP Developer > > Dayton Superior Corporation > 1125 Byers Rd Miamisburg, OH 45342 > Office: 937-866-0711 x44380 > Fax: 937-865-9182 > > [email protected] > > This message w/attachments (message) is intended solely for the use of the > intended recipient(s) and may contain information that is privileged, > confidential or proprietary. If you are not an intended recipient, please > notify the sender, and then please delete and destroy all copies and > attachments, and be advised that any review or dissemination of, or the > taking of any action in reliance on, the information contained in or > attached to this message is prohibited. > > > > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
