Hi All,
Let me first say that this might not be the right forum for this post and for that I apologize, but the underlying concepts here focus around SQL.
I'm an experienced SQL/TSQL programmer on the SQL Server platforms and I've recently moved to an organization where the applications I'm dealing with are on an iSeries/as400 server. Up to this point the majority of the programming has been done in RPG/LE, but I know nothing about RPG/LE and would like to note that I would appreciate if any reponses to my post would note reference RPG/LE in any manner since I have no intention of learning it aside from the fact that in the future the organization will be moving to new platforms and languages and the entire purpose of this post is to start migrating applications to SQL stored procedures.
Essentially what I'm trying to understand is:
1) How do I create a SQL stored procedure? Do I have to create a DDS and execute it?
2) What is the best method to call the SQL stored procedure in a CL? CALL PGM?
Best practices are appreciated.
I know these are pretty basic questions and I've tried looking through some of the IBM redbooks as well as other posts, but everything I'm seeing is based around the post-creation of a stored procedure (which I'm sure I'll struggle with a some point but I just want to create and execute a simple select or insert first!)
Let me first say that this might not be the right forum for this post and for that I apologize, but the underlying concepts here focus around SQL.
I'm an experienced SQL/TSQL programmer on the SQL Server platforms and I've recently moved to an organization where the applications I'm dealing with are on an iSeries/as400 server. Up to this point the majority of the programming has been done in RPG/LE, but I know nothing about RPG/LE and would like to note that I would appreciate if any reponses to my post would note reference RPG/LE in any manner since I have no intention of learning it aside from the fact that in the future the organization will be moving to new platforms and languages and the entire purpose of this post is to start migrating applications to SQL stored procedures.
Essentially what I'm trying to understand is:
1) How do I create a SQL stored procedure? Do I have to create a DDS and execute it?
2) What is the best method to call the SQL stored procedure in a CL? CALL PGM?
Best practices are appreciated.
I know these are pretty basic questions and I've tried looking through some of the IBM redbooks as well as other posts, but everything I'm seeing is based around the post-creation of a stored procedure (which I'm sure I'll struggle with a some point but I just want to create and execute a simple select or insert first!)




Comment