MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sql query regarding date

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
victor
Beginner


Joined: 21 Sep 2005
Posts: 14
Topics: 9

PostPosted: Fri May 12, 2006 1:06 pm    Post subject: sql query regarding date Reply with quote

Hi,

I am typing out a cobol cics db2 program which had the the following functinality , an user keys out date(of his wish) in the screen and presses enter key , the control comes to my program now what i have to do is retrieve all the transactions for that particular day (by firing a query on table) and pop up on the screen(i use queues if multiple records or fetched) , now the required functionality is if we press PF1 key previous days trascations to be retrieved and if we press pf2 next days trancations are to retrived , the question of the hour is how to add or subract a day from any day i.e i want the sql query to add/subtract a day to given date the date format we are using in tables mm/dd/yyyy .
_________________
VICTOR
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri May 12, 2006 1:18 pm    Post subject: Reply with quote

victor,

Please SEARCH before posting. check these links.

http://www.mvsforums.com/helpboards/viewtopic.php?t=25&highlight=date

http://www.mvsforums.com/helpboards/viewtopic.php?t=3087&highlight=date

Hope this helps...

Cheers

Kolusu

PS: You will not receive an answer if you fail to follow the rules of this forum.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group