Log In
       Innovative Solutions to Your Evolving Requirements

Get Running - TechCrystals Code Package™ (Advanced 1 Module)

Stored Procedure & Embedded SQL
Test Harness (Db2 for i)


This is one of two optional advanced modules that help boost productivity for developers already working with embedded SQL, IBM SQL PL or Db2 for i stored procedures of any type... 


Stored Procedure & Embedded SQL Test Harness (Db2 for i)
Gen Db2 for i Stored Procedures and OO Wrapper Source

 Advanced 1 Module  allows the developer or technical consumer to run and test stored procedures or embedded SQL from a high level language interface without setup programming of any kind. 

It allows the developer or technical consumer to quickly and dynamically see input and output parameter lists and values along with HTML5 results sets.  Both Embedded SQL and Stored Procedure modes allow formulation of transaction boundaries (so you get a commit or rollback option).  Both use library list logic so it contributes to developing identical SQL PL for both testing and production (yea!). 

SQL and SQL PL can be extracted from views and stored procedures.  Dynamic filtering of view and stored procedure lists is available by substring on name and content (SQL and SQL PL source) across libraries.

When you consider the other features within this offering, it makes it a contender as your best development tool for prototyping Db2 for i stored procedures and embedded SQL, regardless of whether they will be consumed by a .NET programming language in a web, client-server or hybrid environment or by a native IBM i programming language. 

The HTML5 makes for good aesthetics and efficient layouts with dynamic sizing of result sets.  New with this version are several UI level options that enable transaction level control (commit and rollback) and notification of whether table and files referenced are journaled or aren't being journaling (which affects rollback). 

Db2 for i metadata is interpreted real time, so changes made to a parameter list or output result of a stored procedure in a separate session of ACS are detected immediately.  Similarly, it detects changes in the parameter list that have occurred since you first started working with a particular stored procedure.  Dynamic row filtering on top of the result set is also available for prototyping WHERE clause enhancements. 

Between the .NET Framework, c# and standard IBM SQL PL stored procedures, null is supported as a parameter value, and our tool lets you trigger a real null input parameter value via entry of the keyword "*null".  Advanced 1 Module contains over 3500 lines of c# code. 


 Advanced 1 Module 
Stored Procedure & Embedded SQL
Test Harness (Db2 for i)


Example 1 - Run Embedded SQL mode - Shows the process of selecting a view from which to extract the SQL.  The View drop-down list is filtered based on the name containing "event" and the SQL within the view including a "join" statement.
Example 1 - Run Embedded SQL mode - Shows the process of selecting a view from which to extract the SQL


Example 2 - Shows the SQL extracted from the OMNIEVENTATTENDANCEVIEW2 View and the result set.  However, there aren't any rows in the result set.  This is because of the Row Filtering criteria specifying that at least one column must contain "santa".
Example 2 - Advanced 1 Module PDF
Example 2 - Shows the SQL extracted from the OMNIEVENTATTENDANCEVIEW2 View and the result set

Example 3 - shows the stored procedure drop-down list populated only with stored procedure names that pass the filtering criteria
  • SQL or system names that contain "event"
  • SQL PL content that contains "select"
  • exists within a library (or schema) that is in the user library list ("*USRLIBL" qualifier)
    (the library list is defined in the connection string)
 Example 3 - shows the stored procedure drop-down list populated only with stored procedures that pass the filtering criteria


Example 4 - successful stored procedure call with result set output filtered by  parameter values
Example 4 - Advanced 1 Module PDF
Example 4 - successful stored procedure call with result set output filtered by  parameter values


Example 5 - detection of Update and request for developer or QA user to allow (proceed)
Example 5 - Advanced 1 Module PDF
Example 5 - detection of Update and request for developer or QA user to allow (proceed)


Example 6 - detection of missing journaling status
Example 6 - Advanced 1 Module PDF
Example 6 - Detection of Missing Journaling Status




Didn't find what you were looking for?  Please let us know. 


Example 7 - successful stored procedure call with only 1 output parameter
Example 7 - Advanced 1 Module PDF
Example 7 - successful stored procedure call with only 1 output parameter


Example 8 - Populating the Stored Procedure drop-down list based on a name containing "getnxt" and without library restriction (from *ALL libraries).  However, after clicking on Go and running GETNXTAVAILCTCID, there wasn't the authority necessary to derive the data type(s) of the parameter(s), and that usually means there won't be enough authority to run it either.
Get Running - SP Test Harness showing output parameters







        go to the home page Top of TechCrystals Code Packages     go to next series page Next in TechCrystals Code Packages     Site Map     Switch to
Mobile View

You are at the web site of Tegratecs Development Corp.  Click here to go to the home page of this site...
Integrity, Integration and ROI from Your Software
Our contact information:
Tegratecs Development Corp.
1320 Tower Road
Schaumburg, IL 60173
800-739-3777
( please register or sign-in )
© 2021 Tegratecs Development Corp.