Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

USING YYYYMMDD INSIDE DBC.SYSEXECSQL() in Stored Procedure

Status
Not open for further replies.

larun1616

Programmer
Sep 1, 2014
1
US

When i execute the below code in a STORED PROCEDURE i get an syntax error saying "Expects somthing like an EXCEPT keyword UNION keyword or MINUS keyword between a between a String and YYYYMMDD". Please help me fix this syntax error. Thanks.

Replace Procedure Sample_Proc(
BEGIN
DBC.SYSEXECSQL('Select CAST( (Event_Date (FORMAT 'YYYYMMDD') ) AS CHAR(10) ) AS EVNT_DATE;');
END
);
Regards
Arun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top