DB2/400 stored procedures

1150 pts.
Tags:
AS/400 development
AS/400 stored procedures
DB2 stored procedures
DB2/400
Can you please tell me how to create stored procedures in AS/400 and when they are to be used?

Answer Wiki

Thanks. We'll let you know when a new response is added.

A stored procedure on the AS/400 is created in any SQL environment (CREATE PROCEDURE).
This is a permanent object and like C objects it is recognized by it’s name and parameters.

Is callable from any SQL environment.
Defines the variables to be passed in and returned and return sets.

Can contain a body of SQL commands
or
Can reference a native language pgm (RPGLE, CL, CLLE, CBLLE)

These are most frequently used to support external programs (VB, Java, etc.)

Here are a few sites located with AS/400 Stored Procedures – hundreds more.

http://search400.techtarget.com/generic/0,295582,sid3_gci1049543,00.html

http://www.mcpressonline.com/programming/general/as/400-stored-procedures-to-the-rescue.html

Phil

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sivu
    Here is a sample stored procedure SP creating in LIB library with input parameter VAR1. CREATE PROCEDURE LIB/SP (IN VAR1 CHAR(8)) LANGUAGE SQL P1: BEGIN DECLARE [Variables]; .. .. set [Variable] = ...; END P1
    105 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following