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

DB2 query in JCL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manjulaa

New User


Joined: 16 Aug 2005
Posts: 4

PostPosted: Fri May 21, 2010 12:58 pm
Reply with quote

I want to write a query in JCL to get a dump of a table into a file with one condition as GIB47002_HIST_TS > '2009-02-01-01.01.01.000000'
How can I specify this condition in where clause? It should use with UR clause.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri May 21, 2010 1:22 pm
Reply with quote

So where are you stuck exactly?
Make sure that both side of comparision operation have same datatype..
check for TIMESTAMP scalar function
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri May 21, 2010 2:20 pm
Reply with quote

what kind of "dump", formatted for what purpose ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top