[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Date comparision
- Subject: Re: [sqr-users] Date comparision
- From: Chandra Yarlagadda <yarlagaddacs@gmail.com>
- Date: Mon, 1 Aug 2005 09:17:27 -0500
- Delivery-date: Mon, 01 Aug 2005 09:25:02 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;b=DS/EXSxdiaU+E8I9Kvi7GLRJa+bWLRgJkFmhvGkwbPaW+tFXgppT0G687bVh+4+jGz0D8QlsKuYAKpOzy93kOP1m6DsCyWc6GIhZ2OclYLwWzv4bSk9zdPbDa3CSEa8R3xVmzwT5XsLDwgjmOz07p7IKQXVRj3a2ZxHo0EElvjU=
- In-reply-to: <BAY103-F21E24A504D697236FF97A3E9CE0@phx.gbl>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- References: <BAY103-F21E24A504D697236FF97A3E9CE0@phx.gbl>
Do the date difference function found in delivered
datetime.sqc/datemath.sqc and then compare return code.
On 7/29/05, radhika reddy <radhika_05@hotmail.com> wrote:
> Hi,
>
> I have to check whether the $load-dt is less than $Union-date(
> '1JAN2006' ) which is always constant. When my $load-dt is '17FEB2005' it
> is not going into the IF loop but when I changed my $Union-date to
> '1Mar2006' cursor is going into the IF loop.
>
> Why is it that it is not looking at the year?
>
> Here $load-dt = ' 02/17/2005'
> Let $load-dt = edit(strtodate($load-date,'DD-MON-YYYY'),'MM/DD/YYYY')
> Let $Union-date = edit(strtodate('01-JAN-2006','DD-MON-YYYY'),'MM/DD/YYYY')
>
> IF $load-dt < $Union-date
>
> show 'enter ben.planRSP'
> Let $benefit_plan = 'RSP'
>
> End-If
>
> Any help would be great.
>
> Thanks.
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
>
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users