Relational Data Base
When technology complements business   Item File Conversion & Migration
Copyright © 1987-2008  SimoTime Enterprises, LLC  All Rights Reserved  http://www.simotime.com

 
Introduction
  Programming Objectives
  Programming Input and Output
  Programming Requirements
  Programming Overview
Summary
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Comments or Suggestions
  About SimoTime
 
Version 04.12.02
 

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 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 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.

1. Create a relational Data Base using embedded SQL within a COBOL program..
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.

Programming Input and Output
(Next) (Previous) (Table-of-Contents)

The following is a flowchart for the program that reads the Item Master File and inserts rows into the Item Table.

               
Entry Point
ZOS or MFE
     
Entry Point
Net Express
  Entry Points  
 
     
 
     
ITQIN1J1
jcl
     
ITQIN1E1
cmd
  Start the processing to insert rows into the table  
 
     
 
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
ITEMMAST
ksds
     
     
     
ITQIN1C1
cobol
     
     
     
ITEMRDB1
rdb
  Read the ITEMMAST file and insert rows into the ITEMRDB1 table.  
   
 
         
   
EOJ
      End-of-Job  
               

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

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

1. Executes on Windows/2000, Windows/NT and Windows/XP using Micro Focus Net Express and the CMD file provided.
2. May be ported to run on the UNIX platforms supported by Micro Focus COBOL.
3. Will run on an IBM mainframe (MVS) or a Windows platform (Micro Focus Mainframe Express -MFE) using the JCL provided.

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

The following is a flowchart of the job for executing the program to compare the contents of two data files.

Item Processing
     
     
     
     
 
     
     
     
Create Table
  This is a COBOL program with embedded SQL that will create a table.
 
     
     
     
Insert Rows
  This is a COBOL program with embedded SQL that will read a sequential file and insert rows into a table.
 
     
     
     
Update Rows
  This is a COBOL program with embedded SQL that will read a sequential file and update rows into a table.
 
     
     
     
Fetch Rows
  This is a COBOL program with embedded SQL that will fetch rows from a table and write records to a sequential file.
 
     
     
     
Drop Table
  This is a COBOL program with embedded SQL that will drop (or delete) a table.
         
         

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

The purpose of this suite of programs is to provide an example of how to read an item file that is a VSAM, Keyed-Sequential-Data-Set (KSDS) and create a table within a relational data base model using embedded SQL in the COBOL programs. The examples show how to create, manipulate and delete a table within a relational data base.

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

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.

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

You may download this example 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.

Check out  The SQL Connection  for more examples of mainframe Relational Data Base management and accessing techniques with sample code.

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 insert data into a table of an existing data base.

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 .

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

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.

About SimoTime Enterprises, LLC
(Next) (Previous) (Table-of-Contents)

Founded in 1987, SimoTime Enterprises is a privately owned, Limited Liability Corporation located in Novato, California. 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-2008  SimoTime Enterprises, LLC  All Rights Reserved
When technology complements business