Transforming TurboIMAGE Data for Eloquence, Oracle, and More By Bob Green, Robelle

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
1 PowerHouse and Suprtool Page n Why use Suprtool?2 n Combining Suprtool and QUIZ 4 n Linking multiple files8 n Creating complex subfiles14 n Importing.
CSCI 6962: Server-side Design and Programming Input Validation and Error Handling.
Dear Friends, I m Kartik Mali from gujarat. I prepared this presentation for who want to use oracle loader utility. I m giving here step by step knowledge.
2010/11 : [1]Building Web Applications using MySQL and PHP (W1)MySQL Recap.
COMP234 Perl Printing Special Quotes File Handling.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Conceptual Modelling Entity Relationship Model Overview Entities, Attributes and Relationship modelling Generating a Relational Database for an EAR model.
Representing Data Elements Gayatri Gopalakrishnan.
1 A GUIDE TO ORACLE8 CHAPTER 2: Creating and ModifyingDatabaseTables 2.
Databases Week 1, lab 2 Simple selects. About the environment We are using SQL Server for the moment. The server we are using is: –Cian.student.comp.dit.ie.
Creating Database Tables CS 320. Review: Levels of data models 1. Conceptual: describes WHAT data the system contains 2. Logical: describes HOW the database.
Databases Tutorial 2 Further Select Statements. Objectives for Week Data types Sort retrieved data Formatting output.
Integrating Databases into the Web with PHP/MySQL CS 4000.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Web Application Development Muhammad Ali Versonic Pte Asher Imtiaz Forman Christian College.
CSCI 6962: Server-side Design and Programming
Basis Data Terapan Yoannita. SQL Server Data Types Character strings: Data typeDescriptionStorage char(n)Fixed-length character string. Maximum 8,000.
Introduction to SQL Yong Choi School of Business CSU, Bakersfield.
ASP.NET Programming with C# and SQL Server First Edition
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
If This Bar Is Light Blue – It Is Info That You Should Read! Helpful Hint There Will Often Be A Colored Title Bar At The Top Of A Slide.
1 Inside Module 9 Latest Features in Suprtool n Variable Substitution n $Counter n $Clean and $FindClean n $Total and $Subtotal n $SPLIT n $EDIT n $NUMBER.
Inside Module 7 Exporting Data to the World Page n Exporting data to other applications2 n STExport converts the data4 n Running STExport5 n Dates and.
CS 3630 Database Design and Implementation. Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
LIS651 lecture 6 mySQL Thomas Krichel
CSC 2720 Building Web Applications Database and SQL.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Introduction to PHP A user navigates in her browser to a page that ends with a.php extension The request is sent to a web server, which directs the request.
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Website Development with PHP and MySQL Saving Data.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
CS 3630 Database Design and Implementation. Assignment 3 Style! Agreement between database designer and the client. UserName1_EasyDrive UserName2_EasyDrive.
Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
Guide to Oracle 10g ITBIS373 Database Development Lecture 4a - Chapter 4: Using SQL Queries to Insert, Update, Delete, and View Data.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
MySQL More… 1. More on SQL In MySQL, the Information Schema is the “Catalog” in the SQL standard SQL has three components: Data definition Data manipulation.
Advanced Web 2012 Lecture 3 Sean Costain What is a Database? Sean Costain 2012 A database is a structured way of dealing with structured information.
C# C1 CSC 298 Elements of C# code (part 1). C# C2 Style for identifiers  Identifier: class, method, property (defined shortly) or variable names  class,
Conversion Functions.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Sql DDL queries CS 260 Database Systems.
Best Practices in SQL Programming. Do not use irrelevant datatype  VARCHAR instead of DATETIME  CHAR(N) instead of VARCHAR(N)  etc.
Class 3Intro to Databases Class 4 Simple Example of a Database We’re going to build a simple example of a database, which will allow us to register users.
Academic Year 2015 Autumn. MODULE CC2006NI: Data Modelling and Database Systems Academic Year 2015 Autumn.
Lecture 2 21/1/16. Putting the output in order Oracle can sort a column, or multiple columns select emp_no, emp_name from employee order by emp_name;
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
Introduction to MySQL Ullman Chapter 4. Introduction MySQL most popular open-source database application Is commonly used with PHP We will learn basics.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
Introduction to Database Programming with Python Gary Stewart
Creating Database Objects
CS 3630 Database Design and Implementation
Building A Web-based University Archive
ORACLE SQL Developer & SQLPLUS Statements
Database systems Lecture 2 – Data Types
Chapter 4 Introduction to MySQL.
MySQL Database System Installation Overview SQL summary
Creating Database Objects
Database Instructor: Bei Kang.
SQL (Structured Query Language)
Presentation transcript:

Transforming TurboIMAGE Data for Eloquence, Oracle, and More By Bob Green, Robelle

Transform to Eloquence/UX Migrate your data without change Use -T option on Schema Processor Eloquence handles all IMAGE datatypes, except j (COBOL integer) which is mapped to i March 2002: Suprtool supports Eloquence, other MPE tools to follow

TurboIMAGE to Eloquence Unload on MPE with Suprtool and copy to HP-UX base store get m-customer sort cust-account out cust,link exit

Load Eloquence on HP-UX The SD data file and SD descriptor file should be in the same directory Open Eloquence with the Base cmd Input the SD data file, it will find the descriptor file Put to m-customer - that’s it!

If you don’t have Suprtool, then try Eloquence dbimport dbimport -s /temp/STORE.03.exp -p pass STORE Works with dbexport to restructure databases, so import format is not well defined. May require experimentation. Default field separator is Comma(,)

TurboIMAGE Datatypes Subitemcount Datatype Subitemlength X, U - character data Z - zoned numeric bytes, overpunch I, J, K - integers E - floating point (R is deprecated) P - packed decimal

TurboIMAGE Compatibility With Languages COBOL: i1 i2 i4 x u z p FORTRAN: i1-i2 e2 e4 x u Powerhouse: i1-i4 e2 e4 x u z p j1,j2,j4 are odd, think of them as i’s

TurboIMAGE to Oracle Internal datatypes: Number, Char, Varchar2, Date External datatypes - how Oracle delivers the data to a program: Integer, Char, Floating-point, Packed-decimal

Transforming Decimal Data Export numbers as char, with decimal Define Oracle field as NUMBER (x,y), where x is the total number of digits and y is the scale factor. SQL interface for COBOL can extract the NUMERIC field as Packed Dec so you don’t have to change your Copylib

STExport for SQL*Loader !RUN STEXPORT.PUB.ROBELLE IN DMRTABHM ZERO LEADING QUOTE NONE COLUMNS FIXED SIGN TRAILING OUTPUT ABHMDATA EXIT

Oracle Can’t Deliver as I4 COBOL program can retrieve Number values in Integer (i1 and i2), Packed Decimal, or Zone Decimal format Retrieve as Packed field for COBOL instead Change COBOL PIC to COMP-3

TurboIMAGE to SQL Server Tinyint(byte), Smallint(i1), Integer(i2) and Bigint (quad, i4) Number (precision,scale) Float(n) where N is the number of bits in the mantissa ( is 8 byte Long).

What about Compound Items? TurboIMAGE has 5x10 for an array of five elements, each with 10 characters. This is called a compound item Not supported in SQL databases Convert each element to a separate column: address1, address2, address3…

MS SQL Server Has No COBOL Precompiler But AcuCOBOL has one Microfocus Cobol says get precompiler from your database vendor New languages have interfaces to most databases: C++, Java, Perl, Php, etc.

TurboIMAGE to mySQL mySQL is an open source database Commonly used as a web backend Simple, fast, but limited As an experiment we replicated an IMAGE database in mySQL

Importing into mySQL LOAD DATA 'file_name.txt' INTO TABLE tbl_name [FIELDS [TERMINATED BY '\t'] [ [OPTIONALLY] ENCLOSED BY ''] [ESCAPED BY '\\' ] ] [LINES TERMINATED BY '\n']

TurboIMAGE to PostgreSQL Full-feature SQL database Use Copy command to load from file Default separator is tab (\t) Supports quad integers I4 (int8)

Migrating Dates Most databases allow M/D/Y or D/M/Y 04/28/2002 or 28/04/2002 ISO standard format is yyyymmdd Export with this format to avoid import problems, since the month is unambiguous

Export Multi-Line Notes Combining Image note fields into large SQL text fields Use a Perl program notes.html

Learn More About Transforming TurboIMAGE Migration library on our web site: suprtool.com/move me at Primary Robelle site: Some useful detail links: robelle.com/tips/st-oracle-datatypes.html robelle.com/tips/st-export-sql-server.html