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 > SQL Procedures in Mainframe/AS400

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-04, 02:22
sw_flintstone sw_flintstone is offline
Registered User
 
Join Date: Jun 2004
Posts: 13
SQL Procedures in Mainframe/AS400

Hi
I am currently facing a lot of problems in writing Stored Procedures in Mainframe/AS400.
If anyone of you guys did it please tell me how to write procedures. Is it possible to write Procedures in PLSQL or I have to write it thru COBOL?

Regards,
sw_flintstone
Reply With Quote
  #2 (permalink)  
Old 10-19-04, 04:53
Filip Poverud Filip Poverud is offline
Registered User
 
Join Date: Oct 2004
Location: Norway
Posts: 53
The easiest answer to your questions is:

- Look up the manuals for your particular DBMS on AS/400

---

Normally the host of the DBMS supports differenent languages for writing Stored Procedures, and these days codename "Stinger" will support .NET, that means, you will be able to write Stored Procedures and Debug them in any .NET compatible language.

---

In our environment we use DB2 on z/OS and we write Stored Procedures in both COBOL, Java and ASM. With a small C compiler we may use JCL as well.

---

with Regards
Filip Poverud
Reply With Quote
  #3 (permalink)  
Old 10-19-04, 07:35
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Many mainframe sites do use COBOL for Stored procedures ... There are people who use SQL PL also ..
You will need to have a C Compiler to create SQL PL procedures ... What SQL PL language features is supported is dependent on the Version of DB2 you are using ...

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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