# US 2002/0059259 A1 · Using database management system's infrastructure to invoke a stored procedure for creating and preparing a database application

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2002/0059259 A1
- Document ID: US20020059259A1
- Status: Published application
- Kind: A1
- Application number: 09/363,780
- Filed: 1999-07-29
- Published: 2002-05-16
- Earliest claimed: 1999-07-29
- Assignees: International Business Machines Corporation
- Inventors: CURT LEE COTNER; THOMAS ENG; SUSAN MALAIKA
- Web page: https://patentgrep.com/patent/US20020059259A1

## CPC

- G06F 16/2443: {Stored procedures}
- Y10S 707/99931: Database or file accessing
- Y10S 707/99932: Access augmentation or optimizing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

Using a database management system's own infrastructure to invoke a stored procedure for creating and preparing a database application. The stored procedure automates the pre-compile, compile, linker, and binder steps performed in creating and preparing the database application. The stored procedure is invoked to perform these steps in order to render the database application executable by the RDBMS. In conjunction with the invocation of the stored procedure, input parameters for the stored procedure may be specified including the requested function, the name of the database application, the source code for the database application, pre-compiler options, compiler options, linker options, binder options, and runtime options. The outputs from the stored procedure may include an executable load module, a database resource module, an output parameter string indicating the success or failure of each step, and one or more result sets containing the outputs of each step.

## Claims

### Claim 1

An apparatus for preparing a database application, comprising:
(a) a computer; and
(b) a database management system, executed by the computer, for invoking a stored procedure to prepare the database application, wherein the invoked stored procedure invokes a precompiler to process the database application's source code to generate a modified source module and a database request module, the invoked stored procedure invokes a compiler and linker to process the modified source module to generate a load module, and the invoked stored procedure invokes a binder to process the database request module to generate an application plan, wherein the load module and the application plan are executed together as the database application.

### Claim 2 (depends on 1)

The apparatus of claim 1 above, wherein the source code comprises one or more statements selected from a group of statements including host language statements, embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 3 (depends on 1)

The apparatus of claim 1 above, wherein the source code is input to a language converter to create a language module that is input to the precompiler.

### Claim 4 (depends on 1)

The apparatus of claim 1 above, wherein the modified source module contains host language calls to the database management system, which the precompiler inserts in place of embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 5 (depends on 1)

The apparatus of claim 1 above, wherein the database request module is comprised of the embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements from the source code that are invoked by the host language calls in the modified source module.

### Claim 6 (depends on 1)

The apparatus of claim 1 above, wherein the stored procedure accepts one or more input parameters comprising a function identifier, a name of the database application, the source code, one or more precompiler options, one or more compiler options, one or more pre-link options, one or more linker options, one or more binder options, one or more runtime options, and an input file dataset name.

### Claim 7

A method for preparing a database application in a computer, comprising:
(a) invoking a stored procedure in a database management system executed by the computer to prepare the database application, wherein the invoked stored procedure invokes a precompiler to process the database application's source code to generate a modified source module and a database request module, the invoked stored procedure invokes a compiler and linker to process the modified source module to generate a load module, and the invoked stored procedure invokes a binder to process the database request module to generate an application plan, wherein the load module and the application plan are executed together as the database application.

### Claim 8 (depends on 7)

The method of claim 7 above, wherein the source code comprises one or more statements selected from a group of statements including host language statements, embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 9 (depends on 7)

The method of claim 7 above, wherein the source code is input to a language converter to create a language module that is input to the precompiler.

### Claim 10 (depends on 7)

The method of claim 7 above, wherein the modified source module contains host language calls to the database management system, which the precompiler inserts in place of embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 11 (depends on 7)

The method of claim 7 above, wherein the database request module is comprised of the embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements from the source code that are invoked by the host language calls in the modified source module.

### Claim 12 (depends on 7)

The method of claim 7 above, wherein the stored procedure accepts one or more input parameters comprising a function identifier, a name of the database application, the source code, one or more precompiler options, one or more compiler options, one or more pre-link options, one or more linker options, one or more binder options, one or more runtime options, and an input file dataset name.

### Claim 13

An article of manufacture embodying logic for performing a method for preparing a database application in a computer, the method comprising:
(a) invoking a stored procedure in a database management system executed by the computer to prepare the database application, wherein the invoked stored procedure invokes a precompiler to process the database application's source code to generate a modified source module and a database request module, the invoked stored procedure invokes a compiler and linker to process the modified source module to generate a load module, and the invoked stored procedure invokes a binder to process the database request module to generate an application plan, wherein the load module and the application plan are executed together as the database application.

### Claim 14 (depends on 13)

The method of claim 13 above, wherein the source code comprises one or more statements selected from a group of statements including host language statements, embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 15 (depends on 13)

The method of claim 13 above, wherein the source code is input to a language converter to create a language module that is input to the precompiler.

### Claim 16 (depends on 13)

The method of claim 13 above, wherein the modified source module contains host language calls to the database management system, which the precompiler inserts in place of embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements.

### Claim 17 (depends on 13)

The method of claim 13 above, wherein the database request module is comprised of the embedded Structured Query Language (SQL) statements, embedded Data Definition Language (DDL) statements, and embedded Database Management Language (DML) statements from the source code that are invoked by the host language calls in the modified source module.

### Claim 18 (depends on 13)

The method of claim 13 above, wherein the stored procedure accepts one or more input parameters comprising a function identifier, a name of the database application, the source code, one or more precompiler options, one or more compiler options, one or more pre-link options, one or more linker options, one or more binder options, one or more runtime options, and an input file dataset name.
