+ All Categories
Home > Documents > Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Date post: 06-Jan-2018
Category:
Upload: warren-jefferson
View: 220 times
Download: 0 times
Share this document with a friend
Description:
Introduction Duane Percox, QSS Additional team members – Craig Davies and Jeff Woods ISV focus A report on our on-going investigations and efforts
17
Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems [email protected]
Transcript
Page 1: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Migrating COBOL and IMAGE/SQL to Linux with

Open Source

Duane PercoxQuintessential School Systems

[email protected]

Page 2: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Agenda

• Introduction• Project Goals• Technical Components• Database • COBOL• Pilot Migration Project • Lessons learned – What’s Next?• References for more Info…

Page 3: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Introduction

• Duane Percox, QSS• Additional team members – Craig

Davies and Jeff Woods• ISV focus• A report on our on-going investigations

and efforts

Page 4: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Project Goals - Database

• Evaluate Linux open source RDBMS options and viability for QSS applications

• Evaluate / Determine database interface• Establish standard data type usage• Establish methodology for moving data• Develop abstracted SQL interface to reduce ‘tie-

in’ to a specific database• Understand the reason why everyone says

relational is slower than Image…

Page 5: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Project Goals - COBOL

• Evaluate effort to move HP COBOL to Linux open source COBOL

• Evaluate viability of Linux open source COBOL options

• Evaluate compatibility with hp-ux COBOL• Evaluate / Determine RDBMS interface and

changes this would require in existing COBOL code• Generate test COBOL accessing Linux RDBMS –

on HP e3000 and Linux

Page 6: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Technical Components

• Dell PowerEdge 500SC server – 1ghzPIII, .5gbM, 60gbD (ide)

• SuSe Professional 7.3• tinycobol version .56• PostgreSQL version 7.1• gnu ‘c’ 2.95• HP e3000 A400, 110mhz, 2gbM, 72gbD• MPE/iX 7.0 exp-1, COBOL, gnu ‘c’• WhisperTech Programmer Studio

Page 7: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Image Access Model

Process SpaceTypical COBO L ReportProgram

Open Database

Find By Key Value

W hile not EOFGet Record

Select RecordRelease to Sort

Produce Report

Close Database

T urbo Im ageD ata Base

F ile I/O

HP SuppliedTurboIM AG E

Intrinsics

DBOPENDBFINDDBGET

etc.

Page 8: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

RDBMS/SQL Access Model – HP e3000 to Linux

HP e3000 ProcessTypical COBO L ReportProgram

SQL AccessRDBM SNativeLibrary

Linux RDBM S Server Process

R D BM S/SQ LD atabase

'G lue'to

AbstractDatabase

access

R DB M S/SQ LD atabase

RDBM SDatabase

Serversocket i/o

Page 9: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

RDBMS/SQL Access Model – Same Linux System

Linux Server

Linux Process

Typical COBOLReport Program

SQL AccessRDBM SNativeLibrary

Linux RDBM S Server Process

R D BM S/S Q LD atabase

'G lue'to

AbstractDatabase

access

R D BM S/S Q LD atabase

RDBM SDatabase

Servershared m em ory

Page 10: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Which Database?

• Literature and reference evaluation of MySQL, PostgreSQL, Interbase, SAP DB; chose PostgreSQL (pgsql) for this project

• Pgsql, Interbase, SAP DB have support for transactions and row locking

• More books available (at this time) for pgsql• SAP DB is worth a look. Interbase has not

established a good open source community.• MySQL v4 (future) to support transactions

Page 11: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

PostgreSQL Basics #1

• Connection from client to db is transparent regardless if same system (shared memory) or different system (tcp/ip). X-system can use SSL for secure transmission.

• Server engine is called ‘postmaster’• Separate process created for each connection.

Better performance on unix style o/s since pgsql is not multi-threaded.

• Each db contained within separate directory owned by the ‘postgres’ user

Page 12: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

PostgresSQL Basics #2

• Server control functions: initdb, initlocation, ipclean, pg_ctl, pg_passwd, postgres, postmaster

• DBA functions: createdb, createlang, createuser, dropdb, droplang, dropuser, pg_dump, pg_dumpall, pg_restore

Page 13: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

PostgresSQL Basics #3

• Client access: psql, pg_access (x-win), pgadmin (win 9x/nt)

• Programmatic access: libpq, libpq++, libpgeasy, ODBC, jdbc

Page 14: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

COBOL

• Compiler only – don’t need an IDE• Tinycobol – limitations and migration

issues• What about gnu COBOL?• Any other COBOL compilers satisfy our

project goals?

Page 15: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Pilot Migration Project

• Asset Database • Detail Set (FIXED-ASSET) with 70

fields• 2-character path (DI-NO) and a 12-char

path (ASSET-ID)• Test programs to mirror find/get of large

sets of records

Page 16: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

Lessons Learned – Database

• Data typing• Interface of SQL results to COBOL

record structures• Performance• Improving performance• Migrate with minimal code change AND

allow for performance gains

Page 17: Migrating COBOL and IMAGE/SQL to Linux with Open Source Duane Percox Quintessential School Systems

References for More Information

• www.tinycobol.com• www.postgesql.org• www.sapdb.org• www.linux.org


Recommended