Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Get the result into the defined two host variavables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
shiva001
Warnings : 1

New User


Joined: 19 Aug 2005
Posts: 13

PostPosted: Mon Sep 05, 2005 7:18 pm    Post subject: Get the result into the defined two host variavables
Reply with quote

Pls let me know that the following query will be run suceesfully or not?.
if not pls give me the reason.

SELECT MONTH(CURRENT TIMESTAMP - '2004-09-05') ,
YEAR( CURRENT TIMESTAMP - '2004-05-09')
INTO : WS-MONTH,
: WS-YEAR) from sysdummy1;


here the i want to get the result into the defined two host variavables
this i have to code in my program.

Pls can anyone give right answer?.

thanks?ards,
shiva
Back to top
View user's profile Send private message
References
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 486

PostPosted: Mon Sep 05, 2005 7:47 pm    Post subject: Re: Hi friends
Reply with quote

Hi shiva001,

Please give appropriate title line so that it can use for future reference or search.

I guess, to convert the difference into days,months or years we can use some calculation.

Regards
Rupesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1