If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Sprocs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-08, 11:27
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
DB2 Sprocs

Why doesn't IBM implement procedural internal sprocs? Do they all have to be external sprocs?

What a royal pain
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #2 (permalink)  
Old 04-02-08, 11:29
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
You have the option of writing them in a REAL programming language - the way all stored procs should be done, in my opinion
__________________
db2topgun.com
Reply With Quote
  #3 (permalink)  
Old 04-02-08, 11:38
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
So T-SQL and PL-SQL are not "real" programming languages?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #4 (permalink)  
Old 04-02-08, 11:49
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Quote:
Originally Posted by SuperKuper
You have the option of writing them in a REAL programming language - the way all stored procs should be done, in my opinion
BAL ?

-PatP
Reply With Quote
  #5 (permalink)  
Old 04-02-08, 12:45
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Quote:
Originally Posted by Pat Phelan
BAL ?

-PatP

Never had the pleasure

http://en.wikipedia.org/wiki/IBM_Bas...embly_language
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #6 (permalink)  
Old 04-02-08, 13:04
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
Quote:
Originally Posted by Brett Kaiser
So T-SQL and PL-SQL are not "real" programming languages?

Not even close
__________________
db2topgun.com
Reply With Quote
  #7 (permalink)  
Old 04-02-08, 13:10
SuperKuper SuperKuper is offline
Registered User
 
Join Date: Apr 2008
Posts: 51
Quote:
Originally Posted by Pat Phelan
BAL ?

-PatP
IBM's 370 Assembler (aka Basic Assembler Language or BAL) is one of them. There are also a number of 3rd generation languages in which DB2 UDFs and stored procedures can be written, e.g. COBOL, C, FORTRAN, PL/I, etc.
__________________
db2topgun.com
Reply With Quote
  #8 (permalink)  
Old 04-02-08, 13:49
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
DB2 stored procedures can be written in the standard-compliant SQL PL dialect. So the question would rather be: why are you still sticking to an older DB2 version that does not have this feature yet?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #9 (permalink)  
Old 04-02-08, 13:51
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Such as?

What version are you talking about?

I'm on Big Iron, and hell we're just getting off 7.2
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #10 (permalink)  
Old 04-02-08, 14:17
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I don't know if DB2 for iSeries has it, but DB2 z/OS and DB2 LUW have both SQL PL support in stored procs. I believe this was introduced in DB2 z/OS V8 - and even earlier in DB2 LUW.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #11 (permalink)  
Old 04-02-08, 15:53
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Got any samples?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #12 (permalink)  
Old 04-02-08, 16:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Brett Kaiser
Got any samples?
http://publib.boulder.ibm.com/infoce.../r_samples.htm
Reply With Quote
  #13 (permalink)  
Old 04-03-08, 04:43
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
That's what I wanted to say too: just look at the manual.
http://publib.boulder.ibm.com/infoce...esqlnative.htm
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #14 (permalink)  
Old 04-03-08, 09:05
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
OK, but in the example, in the SQL Sproc, I don't see any procedural code
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On