• IT that grows your business

Monthly Archives :

January 2023

ibmi data backups - IBM i Data Backups
800 500 Nicki Smith

IBM i Data Backups

When the now IBM i was introduced in the 1980s as a System/3X, the hardware was huge in today’s terms, requiring large, air-conditioned data centres to run in and being managed via a dedicated console. The systems also required dedicated staff (Operators) to run back-ups of the systems to magnetic tape on reels.

Over the years as the S/3X was succeeded by the AS/400 and then later the IBM i. The machine physical sizes shrank, the need for dedicated data centres disappeared and there was no longer a requirement for an Operator to manage the back-ups and the associated media.

Newer IBM i boxes are now either rack mounted or floor standing with some not much larger than a standard desktop. The IBM i can be ordered with or without its own built-in tape drive.

There are many smaller businesses running an IBM i that is located in a room in their offices and backing up to tape on a daily basis.

ibmi data backups 2 768x480 - IBM i Data Backups

Backup Planning

As with any successful project, it’s all in the planning.

What you back up, when, and how often needs to be carefully considered when you plan your backup strategy.

How Critical is your System?

If you were to lose your system, would you be able to restore to a new system and get your business up and running again within an acceptable window of time?

  • What is an acceptable window of time for your business?
  • Is your system taking live orders 24/7?
  • Would you be able to run your business using manual processes for any period of time?

What is your Backup Window?

The time available to perform a backup will determine how much data you can save. If you have batch processes running overnight, then you need to find a space in the schedule where you can run your backups. If the system runs 24/7 then you may need to use a replication tool where you copy the data ‘live’ to another system and run your backup from the other system.

What Do you Need to Save?

Depending on the criticality of your system to your business, you will at least need to back up your data files daily. If you are developing on your system, then you will want to back up your development environment on a daily basis. Libraries that change rarely could be part of a weekly backup.  

ibmi data backups 3 768x480 - IBM i Data Backups

Backup Options

There are a number of options available to businesses for backing up their data from their IBM i. The concept of backing up to tape and taking the tape home with you each evening or putting it in a fire-proof safe overnight should be a thing of the past, as should using an external physical tape storage facility.

VTL (Virtual Tape Library)

Depending on the size of your business a VTL could be a good solution. Comprising of either one or 2 physical servers running VTL software. There are 2 solutions we recommend when using VTL.

  1. A single VTL instance, located locally with your server.
  2. A VTL server local to your IBM i and a second VTL server located at a remote site.

The VTL software eliminates the need for physical tapes and runs hand-in-hand with IBM’s BRMS software.

If you are running a second server then the VTL software can be set to duplicate your data back-ups to the off-site location.  

Backup to Cloud

Using the IBM BRMS software, you can send your data to a remote server where the data can be held off-site.

This is a cheaper solution than the VTL option as you do not need to purchase the VTL software, and you will not need to purchase any physical hardware. You will only pay for the initial setup of the backups and the ongoing cloud storage costs.

ibmi data backups 1 768x480 - IBM i Data Backups

At KFA we have extensive knowledge of both methods mentioned above.

KFA installed a VTL solution for Vodafone UK across 2 physical locations with replication running from one location to the other.

KFA also provide cloud backup services to our IBM i customers wishing to save their business-critical data off-site giving them complete peace of mind that they will be able to recover their systems rapidly in the event of a crisis.

Richard Austin

KFA Connect New Business Director

9th January 2023

Want to know more? Get in touch with our team today.

ibmi data migration 1 - IBM i Data Migration
800 500 Nicki Smith

IBM i Data Migration

‘Data migration’ – sounds easy doesn’t it? It’s just a matter of taking some data and moving it from one place to another, possibly changing its format along the way and sometimes moving it to a new application.

The reality is that data migration requires considered planning and a good technical knowledge of the database you are moving from and the one you are moving to.

This blog will focus on the migration of data from an IBM i to either another stand-alone database or to another application running on a different platform.

Planning

As with any successful project, it’s all in the planning.

Before starting the migration careful consideration should be given to the data that actually needs migrating, for example;

  • Does all the transactional data need to be migrated?
  • Is financial transaction data required in the new application or would opening balances suffice?
  • When/how will the migration take place?
  • Should you close the system down for trading and migrate over a weekend?
  • How will the migration be tested?
  • Should a parallel system on your new application be run? To run data through your migrations process.
  • Will access to reporting over your legacy data be required? If you are not migrating it to your new application.
ibmi data migration 768x480 - IBM i Data Migration

Common Problems when Migrating a DB2 database

DB2 on the IBM i dates back to the 1980s. A relational database, the database is created using DDS (data description specification) to specify the attributes and functions of fields within files.

DB2 restrictions mean that file names and field names are restricted to 10 characters. This means that without a data dictionary or schema of your application database, files and their field contents can appear meaningless – ABC001 is not obviously a file holding order transactions for example. 

DB2, in its original form, did not have date fields so dates and times were held in 6 or 8-long fields sometimes as numeric and sometimes alpha.

DB2 data is held in EBCDIC format so issues may arise when converting to ASCII, ANSI or to UTF character sets. 

Data Dictionary/Schema

If your DB2 application is bespoke and has been written over many years, then it is fairly unlikely that the database itself will be well documented. 

Time spent determining which files hold what data and carefully documenting the database will pay dividends before you start any migration and will often reveal nuances of the source system that will not have been apparent in normal everyday usage.

It will also help to avoid migrating duplicated data and will help identify historical data that is not required by the new system.

Formatting Issues

When converting date, time, or datetime fields where information has been stored as either numeric, or string date, routines will need to be written to convert the data to standard date, time, or datetime formats.  This will also allow your new system to work across multiple localities worldwide.

As DB2 is an EBCDIC database there will undoubtedly be characters within the database that will not transpose to the new database. In this instance, we would suggest a conversion/mapping table holding the character being mapped from DB2 and the corresponding character you would like to convert to.

Many applications and databases differentiate between a blank value, and no value at all, a null value. 

Within IBM i applications it is common to simply use blank values in all cases so, part of any data migration involves making sure the appropriate pattern is followed. 

Sometimes this will be a simple choice for every value in the database, however, each field should be analysed, and the decision of how to handle blank values made on a case-by-case basis.

ibmi data migration 2 768x480 - IBM i Data Migration

Moving to a New Application

If you are moving to a new application, you may well need to move your existing data into that application. You will need to move customers, suppliers, sales data, stock positions etc. This will all need to be carefully planned with your new system implementers to ensure all data is mapped correctly.

You may be able to create opening balances in the new application and start trading from that position. You could then move your historical financial data to another database that you can keep for regulatory purposes and have the ability to run reports over that data if required.

By starting with an opening balance in the new application and running a month’s work of transactions through the new system you can prove the month-end closing balance matches your existing system. This is a good safety check to ensure the new system and your data migrations are working as planned.

Migrating for Archive

If you intend to shut down your existing system and do not need any of the data in your new applications then you could consider migrating the transactional and financial transaction data to a new stand-alone SQL database. A simple suite of reporting programs can be produced to give access to the data if required for auditing purposes in the future.

At KFA we have extensive knowledge of IBM DB2 and have experience of converting a DB2 database to SQL on the IBM i. We have written numerous functions to extract data from the IBM i into SQL databases for use in other applications.

We also have experience of extracting entire databases to other platforms as applications come to end-of-life and experience of migrating data to new applications to replace the IBM i including SAP and Oracle.

Richard Austin

KFA Connect New Business Director

5th January 2023

Want to know more? Get in touch with our team today.

    Get in touch

    Request a call or ask us a question.

    We collect your details simply to respond to your enquiry - and that's all! We will not share your details with anyone else.

    Take a look at our privacy policy for how we protect and manage your data.