# US 2020/0394164 A1 · System and method for migration of a legacy datastore

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394164 A1
- Document ID: US20200394164A1
- Status: Published application
- Kind: A1
- Application number: 16/900,290
- Filed: 2020-06-12
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Atos Syntel, Inc.
- Applicants: Atos Syntel, Inc.
- Inventors: Abhijit Anil Apte; Harikrishnan Sivadasan Nair; Akhila Chapalgaonkar; Sudhir Vyankatesh Karhadkar
- Web page: https://patentgrep.com/patent/US20200394164A1

## CPC

- G06F 16/214: {Database migration support}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/24532: {of parallel queries}
- G06F 16/24552: {Database cache management}
- G06F 16/284: {Relational databases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

System and method for migration of a legacy datastore include converting legacy datastore information from the legacy datastore to a target database system information. The target database system information belongs to a target database management system. A legacy datastore call is mapped to a data manipulation language (DML) statement. The legacy datastore call requests the legacy datastore information. Scripting language for the target database management system is generated using the DML statement.

## Claims

### Claim 1

A system configured for migration of a legacy datastore, the system comprising:
a processor; and
a memory storing a program for execution by the processor, the program including instructions for
converting legacy datastore information from a legacy datastore to target database system information, wherein the target database system information belongs to a target database management system,
mapping a legacy datastore call to at least one data manipulation language (DML) statement, the legacy datastore call requesting the legacy datastore information, and
generating scripting language for the target database management system using the at least one DML statement.

### Claim 2 (depends on 1)

The system of claim 1, wherein the target database management system is a NoSQL database.

### Claim 3 (depends on 1)

The system of claim 1, wherein the target database management system is a relational database management system (RDBMS) or a non-relational database management system.

### Claim 4 (depends on 1)

The system of claim 1, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of OCCURS clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table.

### Claim 5 (depends on 1)

The system of claim 1, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of REDEFINES clauses are present in the legacy datastore information, (i) creating a separate child table for each of the REDEFINES clauses and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table of each of the REDEFINES clauses.

### Claim 6 (depends on 1)

The system of claim 1, wherein the mapping of the legacy datastore call to the at least one DML statement includes
retrieving a qualified segment search argument (SSA), wherein the qualified SSA specifies the legacy datastore information, and wherein the legacy datastore information is a segment definition, and
constructing at least one DML statement from command code in the qualified SSA.

### Claim 7 (depends on 1)

The system of claim 1, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes replacing the legacy datastore call with the at least one DML statement, and
the at least one DML statement is equivalent to the legacy datastore call.

### Claim 8 (depends on 1)

The system of claim 1, wherein the generating of the scripting language for the target database management system using the at least one DML statement further includes
identifying steps containing legacy datastore program by reading at least one source statement in source scripting language,
replacing steps containing the legacy datastore program with skeleton data.

### Claim 9 (depends on 1)

The system of claim 1, wherein the generating of the scripting language for the target database management system using the at least one DML statement includes identifying legacy datastore programming steps in a scripting language (SL) procedure, and replacing the identified legacy datastore programming steps with a terminal monitor program in the SL procedure.

### Claim 10 (depends on 1)

The system of claim 1, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of multi-value (MU) or periodic group (PE) clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table.

### Claim 11 (depends on 1)

The system of claim 1, wherein the mapping of the legacy datastore call to the at least one DML statement includes
reading an integrated data dictionary (IDD) file to obtain a record structure, and
identifying at least one selected from relationships, keys and data types based on the record structure.

### Claim 12 (depends on 1)

The system of claim 1, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes generating a data extraction program that extracts the legacy datastore information from the legacy datastore, and
the scripting language runs the data extraction program and uploads the legacy datastore information into the target database management system.

### Claim 13 (depends on 1)

The system of claim 1, wherein the instructions further include at least one selected from storing in an in-memory database or using an in-memory data grid, using database parallel execution framework or parallel processing framework, and storing data in a cache.

### Claim 14

A method of migration of a legacy datastore, the method comprising:
converting legacy datastore information from the legacy datastore to target database system information, wherein the target database system information belongs to a target database management system,
mapping a legacy datastore call to at least one data manipulation language (DML) statement, the legacy datastore call requesting the legacy datastore information, and
generating scripting language for the target database management system using the at least one DML statement.

### Claim 15 (depends on 14)

The method of claim 14, wherein the target database management system is a NoSQL database.

### Claim 16 (depends on 14)

The method of claim 14, wherein the target database management system is a relational database management system (RDBMS) or a non-relational database management system.

### Claim 17 (depends on 14)

The method of claim 14, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of OCCURS clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table.

### Claim 18 (depends on 14)

The method of claim 14, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of REDEFINES clauses are present in the legacy datastore information, (i) creating a separate child table for each of the REDEFINES clauses and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table of each of the REDEFINES clauses.

### Claim 19 (depends on 14)

The method of claim 14, wherein the mapping of the legacy datastore call to the at least one DML statement includes
retrieving a qualified segment search argument (SSA), wherein the qualified SSA specifies the legacy datastore information, and wherein the legacy datastore information is a segment definition, and
constructing at least one DML statement from command code in the qualified SSA.

### Claim 20 (depends on 14)

The method of claim 14, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes replacing the legacy datastore call with the at least one DML statement, and
the at least one DML statement is equivalent to the legacy datastore call.

### Claim 21 (depends on 14)

The method of claim 14, wherein the generating of the scripting language for the target database management system using the at least one DML statement further includes
identifying steps containing legacy datastore program by reading at least one source statement in source scripting language,
replacing steps containing the legacy datastore program with skeleton data.

### Claim 22 (depends on 14)

The method of claim 14, wherein the generating of the scripting language for the target database management system using the at least one DML statement includes identifying legacy datastore programming steps in a scripting language (SL) procedure, and replacing the identified legacy datastore programming steps with a terminal monitor program in the SL procedure.

### Claim 23 (depends on 14)

The method of claim 14, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of multi-value (MU) or periodic group (PE) clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table.

### Claim 24 (depends on 14)

The method of claim 14, wherein the mapping of the legacy datastore call to the at least one DML statement includes
reading an integrated data dictionary (IDD) file to obtain a record structure, and
identifying at least one selected from relationships, keys and data types based on the record structure.

### Claim 25 (depends on 14)

The method of claim 14, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes generating a data extraction program that extracts the legacy datastore information from the legacy datastore, and
the scripting language runs the data extraction program and uploads the legacy datastore information into the target database management system.

### Claim 26 (depends on 14)

The method of claim 14, wherein the instructions further include at least one selected from storing in an in-memory database or using an in-memory data grid, using database parallel execution framework or parallel processing framework, and storing data in a cache.

### Claim 27

A non-transitory computer readable medium having instructions embodied thereon that, when executed by a processor, cause the processor to perform operations comprising:
converting legacy datastore information from a legacy datastore to target database system information, wherein the target database system information belongs to a target database management system,
mapping a legacy datastore call to at least one data manipulation language (DML) statement, the legacy datastore call requesting the legacy datastore information, and
generating scripting language for the target database management system using the at least one DML statement.

### Claim 28 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the target database management system is a NoSQL database.

### Claim 29 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the target database management system is a relational database management system (RDBMS) or a non-relational database management system.

### Claim 30 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of OCCURS clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table, and
if a predetermined number of REDEFINES clauses are present in the legacy datastore information, (i) creating a separate child table for each of the REDEFINES clauses and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table of each of the REDEFINES clauses.

### Claim 31 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the mapping of the legacy datastore call to the at least one DML statement includes
retrieving a qualified segment search argument (SSA), wherein the qualified SSA specifies the legacy datastore information, and wherein the legacy datastore information is a segment definition, and
constructing the at least one DML statement from command code in the qualified SSA.

### Claim 32 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes replacing the legacy datastore call with the at least one DML statement, and
the at least one DML statement is equivalent to the legacy datastore call.

### Claim 33 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the generating of the scripting language for the target database management system using the at least one DML statement further includes
identifying steps containing legacy datastore program by reading at least one source statement in source scripting language,
replacing steps containing the legacy datastore program with skeleton data.

### Claim 34 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the generating of the scripting language for the target database management system using the at least one DML statement includes identifying legacy datastore programming steps in a scripting language (SL) procedure, and replacing the identified legacy datastore programming steps with a terminal monitor program in the SL procedure.

### Claim 35 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the converting of the legacy datastore information includes,
reading the legacy datastore information from a corresponding copybook from the at least one legacy datastore, wherein the legacy datastore information is to be migrated from a source database management system, and
if a predetermined number of multi-value (MU) or periodic group (PE) clauses are present in the legacy datastore information, (i) creating a separate child table and (ii) adding a primary key of a parent table as a foreign key in the separate child table and a sequence number field as a key in the separate child table.

### Claim 36 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the mapping of the legacy datastore call to the at least one DML statement includes
reading an integrated data dictionary (IDD) file to obtain a record structure, and
identifying at least one selected from relationships, keys and data types based on the record structure.

### Claim 37 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein
the generating of the scripting language for the target database management system using the at least one DML statement includes generating a data extraction program that extracts the legacy datastore information from the legacy datastore, and
the scripting language runs the data extraction program and uploads the legacy datastore information into the target database management system.

### Claim 38 (depends on 27)

The non-transitory computer readable medium of claim 27, wherein the instructions further include at least one selected from storing in an in-memory database or using an in-memory data grid, using database parallel execution framework or parallel processing framework, and storing data in a cache.
