Lattwein z/OS zVSE/VSEn

CPG2 Modernization Guide

CICSCASE/Code Generation

CPG2 is a cics product by Lattwein. Explore technical details, modernization strategies, and migration paths below.

Product Overview

CPG2 is a code generation tool designed for mainframe environments running CICS and Assembler.

The typical workflow involves writing code in a free-form language, then using the CPG2 pre-compiler to translate it into CPG1.

Modernization Strategies

Rehost

Timeline:
6-12 months

Lift-and-shift to cloud infrastructure with minimal code changes. Fast migration with lower risk.

Refactor (Recommended)

Timeline:
18-24 months

Optimize application architecture for cloud while preserving business logic. Best ROI long-term.

Replatform

Timeline:
3-5 years

Complete rewrite to cloud-native architecture with microservices and modern tech stack.

Frequently Asked Questions

General

What does CPG2 do?

CPG2 is a code generation tool that translates free-form code into CICS/Assembler code. It uses a pre-compiler to convert CPG2 structures into CPG1, which then generates the final CICS/Assembler code.

Is this a system, application, or tool?

CPG2 is primarily a tool set designed to automate the generation of CICS/Assembler code. It simplifies the development process by allowing developers to work with free-form code, which is then translated into the required CICS/Assembler format.

What types of organizations use this?

Organizations that rely on CICS and Assembler for their mainframe applications can benefit from CPG2. This includes enterprises in industries such as banking, finance, and insurance that have legacy systems built on these technologies.

When should we consider CPG2?

A company should consider using CPG2 when they need to maintain or extend existing CICS/Assembler applications but want to improve developer productivity. It is particularly useful when modernizing legacy systems or integrating them with newer technologies.

What are the alternatives to CPG2?

Alternatives to CPG2 include other code generation tools and manual coding. Some organizations may choose to rewrite their applications in a different language or use a different framework altogether. However, CPG2 allows continued use of existing CICS/Assembler skills.

Technical

What infrastructure is required?

CPG2 requires a mainframe environment running z/OS or zVSE/VSEn. It integrates with CICS and generates Assembler code, so these subsystems must be present and configured correctly.

For mainframe products: Does this run in an LPAR?

CPG2 runs within an LPAR on z/OS or zVSE/VSEn. It is dependent on the specific versions of CICS and Assembler installed on the system. Ensure compatibility between CPG2 and the underlying system software.

Business Value

How does CPG2 provide business value?

CPG2 can reduce development time and costs by automating the generation of CICS/Assembler code. It allows developers to focus on the business logic rather than the low-level details of the CICS and Assembler environments.

How does CPG2 improve application quality?

By automating code generation, CPG2 reduces the risk of manual coding errors. This leads to more reliable and stable CICS/Assembler applications, which can improve business operations.

Security

How does CPG2 ensure security?

CPG2 leverages the security features of the underlying CICS and z/OS or zVSE/VSEn environments. Access to CPG2 functions and generated code is controlled through standard mainframe security mechanisms.

What security systems does CPG2 integrate with?

CPG2 integrates with existing mainframe security systems such as RACF, ACF2, or Top Secret. These systems control access to CPG2 resources and the generated CICS/Assembler code.

Operations

What are the ongoing operational requirements for CPG2?

CPG2 requires ongoing monitoring to ensure that the code generation process is running smoothly. Regular maintenance is needed to apply updates and address any compatibility issues with the underlying CICS and Assembler environments.

What are common implementation challenges?

Implementing CPG2 can be challenging due to the complexity of the CICS and Assembler environments. It requires expertise in both CPG2 and the underlying mainframe technologies. Thorough testing is essential to ensure the generated code functions correctly.

Ready to Start Your Migration?

Download our comprehensive migration guide for CPG2 or calculate your ROI.

Calculate ROI