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

Stored Procedure is not accepting


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

New User


Joined: 03 May 2010
Posts: 16
Location: india

PostPosted: Tue Jun 08, 2010 6:05 pm
Reply with quote

Hi Guys,

Can anyone please clarify this , Stored Procedure is not accepting '+' or '-' plus or minus symbols, for the following query.

Can anyone please provide me any alternative solution for this?

SELECT
TIMESTAMP (CURRENT_DATE + (7 - DAYOFWEEK_ISO
(CURRENT_DATE)) DAYS, '00:00:00'),
TIMESTAMP (CURRENT_DATE + (13 - DAYOFWEEK_ISO
(CURRENT_DATE)) DAYS, ‘23:59:59’) + 999999 MICROSECONDS
FROM SYSIBM.SYSDUMMY1)
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 08, 2010 6:09 pm
Reply with quote

have you tried this select in spufi?
Back to top
View user's profile Send private message
chrakesh

New User


Joined: 03 May 2010
Posts: 16
Location: india

PostPosted: Tue Jun 08, 2010 6:29 pm
Reply with quote

Yes it executed successfully but it is saying

ILLEGAL SYMBOL "=". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: + -
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jun 08, 2010 6:44 pm
Reply with quote

Quote:
FROM SYSIBM.SYSDUMMY1)


I wonder how the SQL executed successfully in SPUFI?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Jun 08, 2010 7:46 pm
Reply with quote

1) quotes round : ‘23:59:59’ are the wrong kind
2) like murmohk1 says : one ) too many
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 Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Stored procedure cpu utilization DB2 1
Search our Forums:

Back to Top