Converting COBOL Data to SQL Data: GDT-ETL Part 1

22
Converting COBOL Data to SQL Data: GDT-ETL Part 1

description

Converting COBOL Data to SQL Data: GDT-ETL Part 1. GDT ETL. What is ETL? Extract Transform Load Extract data from your legacy system. Transform (Convert or cleanse). Load the data into the relational database, data warehouse, data mart or Operational Data Store. Why GDT-ETL? - PowerPoint PPT Presentation

Transcript of Converting COBOL Data to SQL Data: GDT-ETL Part 1

Page 1: Converting COBOL Data to SQL Data: GDT-ETL Part 1

Converting COBOL Data to SQL Data: GDT-ETL Part 1

Page 2: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL

What is ETL? Extract Transform Load

Extract data from your legacy system. Transform (Convert or cleanse). Load the data into the relational database, data warehouse,

data mart or Operational Data Store. Why GDT-ETL?

Built for Legacy Systems. Native access to ISAM data. Transformation from COBOL data types to more general

types. Allows you to focus on where the data is going not how you

get access to it.

Page 3: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL

Data flow for a system running GDT MF file system to a relational database

MF FilesMF Files

GDT

RDMSGDT-ETLGDT-ETL

RDMS

Page 4: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

Data flow for Legacy Systems

MF Files

MF Files

GDT

GDT-ETL

GCOS

Fileconv2

UFAS

UFAS

RDMS

GDT ETL

Fileconv2 GDT-ETLRDMS

Page 5: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL

ETL Features Command line tool and now with a Graphical User Interface

(to be shown) Object Oriented Design. Will work on Windows or UNIX platforms. Comprehensive error logging and process monitoring. Will work with existing enterprise scheduling facilities.

ETL Requirements Windows

GDT V4.1 .NET Framework 2.0

Solaris GDT V4.1

Page 6: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

What can I do with GDT-ETL?

There are two main features of this tool. Help build database schemas from your ISAM data.

Creating Data marts Data warehouse Data Stores

Loading data into a database system.

Page 7: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETLA Working Example! ICOM system

CUSTOMER

EMPLOYEE

ORDERS

PRODUCT

DATA

FD-CUSTOMER

SELECT-CUSTOMER

FD-EMPLOYEE

SELECT-EMPLOYEE

FD-ORDERS

SELECT-ORDERS

FD-PRODUCT

SELECT-PRODUCT

File Definition

MULTI-01PAR?

MULTI-01PAR?

MULTI-01PAR?

MULTI-01PAR?

TPR-ICOM2

TPR-ICOM4

TPR-ICOM1

TPR-ICOM3

GDT ODS1pm Class Today!

Don't miss it

SQLCONV.PARSQL1GENGDTFAC

DLL

Page 8: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

SQL1GEN process

GDT process that generates a File Access Component (GDTFAC.DLL) To be used by GDT ETL to generically access all

Micro Focus ISAM files Configuration

SQLCONV.PAR FILE DEFINITION(S) fd’s FILE SELECT STATEMENTS MULTIPLE 01 RECORD DEFINITION PARAMETER FILES

Requires GDT V4.1 GDTFAC.DLL contains all necessary file info.

Key information, data types, record types, fields etc..

Page 9: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

A Typical Production Environment

ISAMOrderMaster

File

Report Generation

Customer Data

Batch processReport Data

Page 10: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

PLUS

PLUS

FILE DEFINITION

FILE COBOL Select statement

GDTSQLParameter File

-------------------------------------------------------------------------------------------

SQL1GEN

Creates GDTFAC.DLL

Using the ORDERS file

Page 11: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

The ETL process

GDTETL

GDTFACDLL

OrderInfo.

PLUS

-------------------------------------------------------------------------------------------Create ORDER Master Database Table

ETL PARAMETER FILE

File Access Component

GDT_ETL ctGDT_ETL ldGDT_ETL dt Load ORDER Master Database Table Delete ORDER Master Database Table

Page 12: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

Data is

in th

e data

base via the E

TL Load

Results of the ETL process

Page 13: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

ETL in a nutshell

Step 1: File Analysis Using the File Access Component built by GDT

GDTFAC.DLL, the ETL tool first analyzes the file layout for each file.

Page 14: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

ETL in a nutshell

Step 2 - Build the tables and the relationships in SQL Each record denotes a new table. Each sub record denotes a new table with a 1 to

many relationship with the parent record. Nested OCCURS within a file produces more relationships.

Each field produces a field in a SQL table and ETL maps COBOL data types to the SQL Servers data types.

Page 15: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

ETL in a nutshell

Step 3: Optional

Modify the table schema and stored procedures to suit your needs. Build transformations as needed.

Step 4: Load the Data

Read each file, extract the data, transform from COBOL data types to database server data types and load the data into the database.

Page 16: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL IN ACTION

How does ETL build database schemas? When Generating a table schema GDT-ETL makes

the following assumptions. Each file consists of 1 or more record types. Each record in a file consists of 1 or more fields and it may

contain hierarchy of sub records as denoted by the OCCURS clause.

Each field has a location in a record as well as an associated COBOL data type.

Group name and redefines are ignored.

Page 17: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL IN ACTION

Create the database schema and stored procedures. Build the tables and relationships Three basic data type transformations:

PIC X(NN) to char(NN) PIC 9(NN) to INT PIC S9(NN)V9(NN) to double

Setup default stored procedures for each table: For each table there are 3 separate stored procedures

Insert Update (ODS Only) Delete (ODS Only)

The tables can be modified but the stored procedures must reflect any schema modifications.

The store procedures can be modified but the parameters must stay the same.

Page 18: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT ETL IN ACTION

Build the default database objects Setup the ETL Configuration.

Set database properties. Reference the location of the file access component.

Build the database objects.

Page 19: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

Building Transformations

What value do transformations add? Allows for cleansing of data before it enters the

database. Determine if it is accurate. Avoid data corruption.

Create more interesting data transformation Example: Date time

Page 20: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

Building Transformations

Use Data Integration tools BusinessObjects Data Integrator.

Develop the transformations by hand. Modify the table layout if desired. Modify the default stored procedures to setup desired

transformations.

Page 21: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

ETL in a nutshell

ETL Configuration Utility - GUI Set the database properties. Modify which files you want to load. AND MORE TO COME…..

Page 22: Converting COBOL Data to SQL Data: GDT-ETL Part 1

GDT 2006 International User Conference: Evolving the Legacy – RevolutionsJune 25 - 28 Palm Springs, California

Converting COBOL Data to SQL Data: GDT-ETL Part 1Doug Evans

GDT-ETL

THE DEMONSTRATION!