Datastage/390 is not unable to use CURRENT DATE in the looku

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Datastage/390 is not unable to use CURRENT DATE in the looku

Post by admin »

Hello,

I am just wondering has anybody encountered a situation where you have to use the DB2 CURRENT DATE function to compare against dates.

I have created a RELATIONAL STAGE in the Datastage Designer and I am trying to add two conditions in the WHERE tab to limit selection to those records that have effective date >= CURRENT DATE and termination date < CURRENT DATE. When I tried to verify it, it prompts me for an INVALID WHERE clause.

CURRENT DATE is supposed to be a system date function of DB2 and I am just surprised why it is not accepted in the datastage RELATIONAL STAGE.

Can anybody give me some directions?

Cheers,
Paul Ko.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Try CURRENT_DATE (add the underscore). That works (at least in version
4.2.1)

Rich

-----Original Message-----
Date: Thu, 23 Aug 2001 10:42:24 +1200
To: datastage-users@oliver.com
From: Paul Ko
Subject: Datastage/390 is not unable to use CURRENT DATE in the lookup sta
ge
Message-ID:

Hello,

I am just wondering has anybody encountered a situation where you have to use the DB2 CURRENT DATE function to compare against dates.

I have created a RELATIONAL STAGE in the Datastage Designer and I am trying to add two conditions in the WHERE tab to limit selection to those records that have effective date >= CURRENT DATE and termination date < CURRENT DATE. When I tried to verify it, it prompts me for an INVALID WHERE clause.

CURRENT DATE is supposed to be a system date function of DB2 and I am just surprised why it is not accepted in the datastage RELATIONAL STAGE.

Can anybody give me some directions?

Cheers,
Paul Ko.
Locked