![]() |
The SQL Connection Relational Data Base Management Systems http://www.simotime.com Copyright © 1987-2010 SimoTime Enterprises All Rights Reserved |
| Table of Contents | Version 09.05.17 |
Structured Query Language (SQL) is a standardized language for defining and manipulating data in a relational database. A relational database may be perceived as a set of tables. The tables can be created, viewed, changed, manipulated or deleted in accordance with the relational model.
The SQL Connection provides a suite of sample programs and documentation that shows how to do practical task for creating and managing a relational data base. The sample programs use embedded SQL.
Embedded SQL is SQL syntax written within an application programming languages such as COBOL and preprocessed by an SQL preprocessor before the application program is compiled.
The SQL examples are written to compile and execute in the Micro Focus environment or an IBM Mainframe, DB2 environment. For the Micro Focus Mainframe Express (MFE) or IBM Mainframe (ZOS) environments sample JCL members are included. For Micro Focus Net Express and the Microsoft Windows environment sample CMD files are included. The Micro Focus SQL option is used as the Relational Data Base engine (XDB) for the Windows environment.
This section is intended for individuals that are learning, creating or maintaining relational data bases or tables. The following is a quick list of the examples provided by The SQL Connection.
| JCL Example | Description |
| Create a Table | This example shows how to create a table and create an index using a unique primary key. |
| Insert a Row | This example shows how to insert rows into a table. |
| Update a Row | This sample shows how to update a row within a table. |
| Cursor Processing | This example shows how to process the table sequentially by key accessing one row at a time. |
| Drop a Table | This example shows how to delete (or Drop) an index and a table. |
This section provides examples of embedded SQL programming techniques using COBOL. The source members provided by SimoTime are stored in Partitioned Data Sets on the mainframe and a similar directory structure on the Personal Computer using Windows.
This suite of programs provides an example of how to convert a VSAM, Keyed-Sequential-Data-Set (KSDS) to a Relational Data Base Table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to create a table and create an index using a unique key. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to insert data into a table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to update a row within a table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to use cursor processing to access a table sequentially by key and one row at a time.. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to delete a table and delete an index. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to convert a VSAM, Keyed-Sequential-Data-Set (KSDS) to a Relational Data Base Table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to create a table and create an index using a unique key. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to insert data into a table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to update a row within a table. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to use cursor processing to access a table sequentially by key and one row at a time.. Simply click on one of the following items to learn more or download this sample set of programs.
This suite of programs provides an example of how to delete a table and delete an index. Simply click on one of the following items to learn more or download this sample set of programs.
The purpose of this document is to assist as a tutorial for new programmers or as a quick reference for experienced programmers. These sample programs are made available on an "as-is" basis and may be downloaded in accordance with the Software Agreement and Disclaimer that is explained in the following section of this document. As always, it is the programmer's responsibility to thoroughly test all programs.
Permission to use, copy, modify and distribute this software for any commercial purpose requires a fee to be paid to SimoTime Enterprises. Once the fee is received by SimoTime the latest version of the software will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Enterprises.
Permission to use, copy, modify and distribute this software for a non-commercial purpose and without fee is hereby granted, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Enterprises.
SimoTime Enterprises makes no warranty or representations about the suitability of the software for any purpose. It is provided "AS IS" without any express or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software.
You may download SQL-oriented examples at http://www.simotime.com/sim4dzip.htm#ZipsforSQL or view the complete list of SimoTime Examples at http://www.simotime.com/sim4dzip.htm.
Note: You must be attached to the Internet to download a Z-Pack or view the list.
The hexadecimal dump of the parameter-buffer uses the same technique as describe in another SimoTime example that describes the dumping of a data string using COBOL. The name of the member that does the actual hexadecimal dump is called SimoDUMP. A copy file (PASSDUMP.CPY) is provided for defining the pass area.
Check out The VSAM - QSAM Connection for more examples of mainframe VSAM and QSAM accessing techniques and sample code.
This document provides a quick summary of the File Status Key for VSAM data sets and QSAM files.
The example for Create a Table uses embedded SQL in a COBOL program to create a data base for the item information.
The example for Insert a Row uses embedded SQL in a COBOL program to insert data into a table of an existing data base.
The example for Update Table Information uses embedded SQL in a COBOL program to update data in an existing row or insert data into a new row using a unique primary key.
The example for Sequential Processing uses embedded SQL in a COBOL program to insert data into a table of an existing data base.
The example for Delete a Table uses embedded SQL in a COBOL program to delete a data base for the item information.
Check out The SimoTime Library for a wide range of topics for Programmers, Project Managers and Software Developers.
To review all the information available on this site start at The SimoTime Home Page .
Check out The SimoTime Glossary for a list of terms and definitions used in the documents provided by SimoTime.
If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com
We appreciate your comments and feedback.
Founded in 1987, SimoTime Enterprises is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com
| Return-to-Top |
| Copyright © 1987-2010 SimoTime Enterprises All Rights Reserved |
| When technology complements business |
| http://www.simotime.com |
| Version 05.11.11 |