+ Reply to Thread
Results 1 to 4 of 4

Thread: TechTip: Speed Up SQL Procedures with Service Program Support

  1. Default TechTip: Speed Up SQL Procedures with Service Program Support

    ** This thread discusses the Content article: TechTip: Speed Up SQL Procedures with Service Program Support **
    This thread discusses the Content article: TechTip: Speed Up SQL Procedures with Service Program Support Kent, Can C generated service programs created by SQL be used directly in an RPG program (having mapped the parms correctly) - or, can they only be called via embedded SQL? If so, what issues may one encounter with mapping RPG & C parms? Daron

  2. #2

    Default Re:TechTip: Speed Up SQL Procedures with Service Program Support

    The C program & service program objects generated by SQL procedure must be called with an SQL CALL statement. There are several hidden parameters that the SQL CALL interface handles and processes.

  3. Default Re:TechTip: Speed Up SQL Procedures with Service Program Support

    That would figure. As a rule, when a function is deemed usable for both SQL and RPGLE, we will create an RPG subprocedure and then an SQL stored procedure of function wrapper which to call the subprocedure. Is this common practice? Thanks

  4. #4

    Default Re:TechTip: Speed Up SQL Procedures with Service Program Support

    I've heard of customers sharing SQL procedures in a similar manner. However, usually the SQL users of the procedures are on remote clients. Are you using SQL procedures instead of SQL embedded in RPG programs because the coding is simpler?

+ Reply to Thread

Similar Threads

  1. TechTip: Testing Stored Procedures
    By mthoreb in forum SQL
    Replies: 7
    Last Post: 05-14-2007, 05:36 AM
  2. TechTip: Speed Up Your UDF Performance
    By MCWebsite.Staff in forum General
    Replies: 1
    Last Post: 05-05-2006, 06:37 AM
  3. TechTip: RPG IV Exponent Support Rocks!
    By Guest.Visitor in forum RPG
    Replies: 2
    Last Post: 11-29-2004, 05:18 AM
  4. V5R2 support for RETURNed cursors in nested stored procedures
    By Guest.Visitor in forum Application Servers
    Replies: 0
    Last Post: 05-25-2004, 12:47 PM
  5. ILE Procedures in a Service Program
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 11-07-2003, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts