Item or Product Database Table
 COBOL, Convert VSAM, KSDS to Relational
When technology complements business    Copyright © 1987-2012  SimoTime Enterprises  All Rights Reserved
  Table of Contents Version 10.11.01 
  Introduction
  Programming Objectives
  Programming Requirements
  Programming Overview
  Summary
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Downloads and Links, Internet Access Required
  Downloads and Links, Local Access
  Glossary of Terms
  Comments, Suggestions or Feedback
  Company Overview
The SimoTime Home Page

Introduction
(Next) (Previous) (Table-of-Contents)

This suite of sample programs will show how to create, manipulate and delete a table within a relational data base. An Item Master File resides on an IBM Mainframe as a VSAM, Keyed-Sequential-Data-Set (KSDS) using EBCDIC encoding. This suite of sample programs will show how to migrate the data in the VSAM/KSDS to a relational data base. A suite of COBOL programs with embedded SQL will be used to demonstrate each of the steps in the process.

Programming Objectives
(Next) (Previous) (Table-of-Contents)

This example illustrates the following functions.

Item Description
1 Create a relational Data Base Table using embedded SQL within a COBOL program. The data content is item or product information.
2 Demonstrate how to read a VSAM, Keyed-Sequential-Data Sets (KSDS) and insert rows into a table.
3 Access the table sequentially one row at a time.
4 Access the table randomly and update existing rows or insert new rows.
5 Delete the relational data base table.
  Objectives for the Sample Suite of Programs

Programming Requirements
(Next) (Previous) (Table-of-Contents)

This suite of samples programs will run on the following platforms.

1 Executes on Windows/7, Windows/XP or Windows Server using Micro Focus Net Express and the CMD file provided.
2 Executes on Windows/7, Windows/XP or Windows Server using Micro Focus Mainframe Express and the JCL member provided.
3 Executes on Windows/7, Windows/XP or Windows Server using Micro Focus Server or Studio and the JCL member provided.
4 Executes on an IBM Mainframe running ZOS and DB/2.
5 May be ported to run on the Linux and UNIX platforms supported by Micro Focus COBOL.
  Systems that support the execution of the Sample Program

Programming Overview
(Next) (Previous) (Table-of-Contents)

The following is a flowchart of the jobs for executing the programs that manage the relational database tables.

           
Item
Processing
   
   
   
   
   
Create Table
ITQCT1C1
This is a COBOL program with embedded SQL that will create a table
   
   
   
Insert Rows
ITQIN1C1
This is a COBOL program with embedded SQL that will read a VSAM, KSDS and insert rows into a table
   
   
   
Update Rows
ITQUP1C1
This is a COBOL program with embedded SQL that will read a VSAM, KSDS and update existing rows or insert new rows into a table
   
   
   
Fetch Rows
ITQCP1C1
This is a COBOL program with embedded SQL that will fetch rows from a table and write records to a sequential file
   
   
   
Drop Table
ITQDT1C1
This is a COBOL program with embedded SQL that will drop (or delete) a table
 
Program Overview by Function for Relational Data Base Processing of Item or Product Information

Summary
(Next) (Previous) (Table-of-Contents)

The purpose of this document is to assist as a tutorial for new programmers or as a quick reference for experienced programmers. In the world of programming there are many ways to solve a problem. This documents and the links to other documents are intended to provide a choice of alternatives.

Software Agreement and Disclaimer
(Next) (Previous) (Table-of-Contents)

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Enterprises. Once the fee is received by SimoTime the latest version of the software, documentation or training material 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.

SimoTime Enterprises makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed 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, documentation or training material.

Downloads and Links to Similar Pages
(Next) (Previous) (Table-of-Contents)

This section includes links to documents with additional information that is beyond the scope and purpose of this document. The first sub-section requires an internet connection, the second sub-section references locally available documents.

Downloads and Links, Internet Access Required
(Next) (Previous) (Table-of-Contents)

The following links will require an internet connect.

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information.

Explore the SQL Connection for more examples of programs that use embedded EXEC SQL statements to access relational tables.

Explore The COBOL Connection in the SimoTime Library for more examples of COBOL programming techniques and sample code.

Explore The ASCII and EBCDIC translation tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.

Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and QSAM files.

Explore The Micro Focus Web Site for more information about products and services available from Micro Focus.

Downloads and Links, Local Access
(Next) (Previous) (Table-of-Contents)

The following links should be accessible without an internet connection.

Explore the SQL Connection for more examples of programs that use embedded EXEC SQL statements to access relational tables.

Glossary of Terms
(Next) (Previous) (Table-of-Contents)

Check out  The SimoTime Glossary  for a list of terms and definitions used in the documents provided by SimoTime.

Comments, Suggestions or Feedback
(Next) (Previous) (Table-of-Contents)

This document was created and is maintained by SimoTime Enterprises.

If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com

We appreciate hearing from you.

Company Overview
(Next) (Previous) (Table-of-Contents)

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
Item or Product Database, Convert VSAM Keyed Sequence Data Set to a Relational Table using COBOL
Copyright © 1987-2012 SimoTime Enterprises  All Rights Reserved
When technology complements business
http://www.simotime.com