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 

DB2 - using NEWFUN(YES)

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


Joined: 26 Apr 2006
Posts: 16
Topics: 8
Location: Utopia

PostPosted: Fri Dec 14, 2007 1:49 am    Post subject: DB2 - using NEWFUN(YES) Reply with quote

I am working on a new database and the DBA has created a table with column name exceeding 18 bytes. This is causing compilation errors. I got to know that using the NEWFUN(YES) option could be a way to eliminate this error.

i am using endevor for compilation and tried to override it using "CBL NEWFUN(YES)" which isnt working - i guess the syntax for override is incorrect.

with regards to the above information, can someone help me with answers to the following questions ?

1. What can i do to compile my program when the DB2 column names are greater than 18 bytes long?
2. How can i override the DB2 precompiler options while using endevor for compilation?

TIA.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Fri Dec 14, 2007 9:57 am    Post subject: Reply with quote

The syntax should look like this:

Code:
CBL SQL("NEWFUN(YES)")


I couldn't get this to work. There were errors reported while loading some DB2 coprocessor modules. But the COBOL compiler recognized the PARM and was trying to pass it to the DB2 coprocessor.

Here's the link for the SQL COBOL compiler option.
http://publibfp.boulder.ibm.com/epubs/pdf/igy3pg32.pdf

Chapter 21. Programming for a DB2 Environment, Compiling with the SQL option
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Dec 18, 2007 6:31 am    Post subject: Reply with quote

Converting your DB2 precompilation to NEWFUN(YES) has many implications. One major catch is that the generated DRMS are in Unicode and not in EBCDIC any more. This could have huge impacts, if your installation has administrative functions working that scan DBRM text.

Overriding this parameter for just some modules could produce damage in other areas. If DBAs use functionality of DB2 V8, THEY should assure (with your ENDEVOR administrators) that your programs could use these features.

regards
Christian
Back to top
View user's profile Send private message
cxvxbx
Beginner


Joined: 26 Apr 2006
Posts: 16
Topics: 8
Location: Utopia

PostPosted: Tue Dec 18, 2007 11:32 pm    Post subject: Reply with quote

Thanks for the response.

I had the DBA modify the column names.
Back to top
View user's profile Send private message
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