IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

current date in db2 query in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Mon May 08, 2006 1:43 pm
Reply with quote

Hi,

As per my requirement i have to code db2 query in jcl.

Select A_ID
from table B
where A_DATE =! Current_date

How to get current date here.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon May 08, 2006 1:54 pm
Reply with quote

Hi,

Quote:
Hi,

As per my requirement i have to code db2 query in jcl.

Select A_ID
from table B
where A_DATE =! Current_date


Can not use date functions here?

Regards
Rupesh
Back to top
View user's profile Send private message
steve

New User


Joined: 24 Mar 2005
Posts: 16
Location: Long Island

PostPosted: Mon May 08, 2006 3:33 pm
Reply with quote

the following shld work for u..

Select A_ID
from table B
where A_DATE <> CURRENT DATE
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
Search our Forums:


Back to Top