That's right Neeraj, although I prefer to specifically assign values to variables rather than use their default vale. Anyway, that's more a question of programming style of each developer.
PeopleSoftNet Hello Javier, Thanks for such a nice blog. We would like to have your comments on below site being developed for peoplesoft developers to help PeopleSoft Community. we expect response from you. Thanks in advance for your time and comments. PeopleSoftNet
The %DateNull seems to be Meta-SQL and as far as I tried would not work in PeopleCode (I've tried with PeopleTools 8.50). Also checked the PeopleBooks documentation and it does not appear as a system variable but only as Meta-SQL.
Which PeopleTools version were you using to make the %DateNull value work?
Hi Sir
ReplyDeletefaced same issue last week , tried this one
local date &testdate ;
Record.field.value = &testdate;
by default &testdate is NUll :
That's right Neeraj, although I prefer to specifically assign values to variables rather than use their default vale. Anyway, that's more a question of programming style of each developer.
ReplyDeleteThanks for your feedback.
PeopleSoftNet
ReplyDeleteHello Javier,
Thanks for such a nice blog.
We would like to have your comments on below site being developed for peoplesoft developers to help PeopleSoft Community.
we expect response from you.
Thanks in advance for your time and comments.
PeopleSoftNet
Hi Anand
ReplyDeleteNo problem, I'll be happy to contribute to your PeopleSoft community. It seems a good place to share information among PeopleSofters.
Cheers!
or you could simply do it with %DateNull
ReplyDeleteHi Parag
ReplyDeleteThe %DateNull seems to be Meta-SQL and as far as I tried would not work in PeopleCode (I've tried with PeopleTools 8.50). Also checked the PeopleBooks documentation and it does not appear as a system variable but only as Meta-SQL.
Which PeopleTools version were you using to make the %DateNull value work?
Thanks for your contribution.
This comment has been removed by the author.
ReplyDeleteParag is right.
ReplyDelete%DateNull is applicable for use in PeopleCode, AE, SQL
Last week a delivered code was throwing an error like this. We found that the culprit was a month() to which a null value was being passed.
ReplyDeleteThanks Eva!
ReplyDeleteGreat job keep it up.
ReplyDeleteThanks Javier :)
ReplyDeleteI googled and your post helped me today.
-Kyle from Belize :)
You're welcome Kyle! Nice to see you here :)
ReplyDeleteAlmost seven years later, and this blog entry is still helping people... :-)
ReplyDeleteAnd whaddya know, now I have a followup question....
ReplyDeleteHow would you assign a datetime variable to null?
Hi David
ReplyDeleteI think the following should work:
Local datetime &dt;
&dt = Date(0) + Time(0);
Let me know if it doesn't.
Thanks!