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

-879 in Create Stored Procedure DDL


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

New User


Joined: 08 Oct 2009
Posts: 2
Location: Austin, TX

PostPosted: Thu Oct 08, 2009 3:30 am
Reply with quote

I'm getting a -879 when running the CREATE DDL for a COBOL stored procedure that I wrote. The Stored procedures returns as "OUT" values all sorts of DataTypes, such as those listed below from MVS\Quickref. The procedure Binds OK. Based on the message below, it sounds like i need to see the DBA to change the "MIXED DATA install option" for this DB2 subsystem. Does this sound correct?
This sounds strange since in the Stored Procedure I do a select on a Table containing the datatypes in question (and the Table does exist).
Thanks

****
A CREATE FUNCTION or CREATE PROCEDURE statement cannot define a
parameter or specify a RETURNS data type, for ASCII or EBCDIC data, as
CHAR FOR MIXED DATA, or GRAPHIC, VARGRAPHIC, or DBCLOB, when the MIXED DATA install option is set to NO.
*****
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Oct 08, 2009 1:24 pm
Reply with quote

It would help if you post the create statement.
Back to top
View user's profile Send private message
MikeLasater

New User


Joined: 08 Oct 2009
Posts: 2
Location: Austin, TX

PostPosted: Thu Oct 08, 2009 7:14 pm
Reply with quote

I added
PARAMETER CCSID UNICODE
to the CREATE DDL.
It no longer gets an SQL code

I'm wondering if I also need to change some COBOL compiler option to say that strings are stored in Unicode
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 How to create a list of SAR jobs with... CA Products 3
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Best way to create an automated line ... TSO/ISPF 3
No new posts Invoke stored procedure via batch JCL. DB2 2
Search our Forums:

Back to Top