Table of Contents Previous Next PDF


Oracle Tuxedo Application Rehosting Workbench Cataloger

Oracle Tuxedo Application Rehosting Workbench Cataloger
Overview
Purpose
This chapter aims to:
This guide includes information about the following:
Note:
Skills
Migration process and concepts
You should understand the processes, concepts and terminology used by the Rehosting Workbench Cataloger; know the inputs, outputs and configuration expected by the Cataloger and how it analyzes all the components separately and together to determine whether the asset is consistent and can be migrated.
The Oracle Tuxedo Application Rehosting Workbench Reference Guide describes precisely all features of the Cataloger. Read at least the three first sections of the Cataloger chapter for an introduction to the concepts, terminology, inputs and outputs, and configuration.
UNIX/Linux skills
UNIX/Linux skills are required to work correctly on the migration platform environment and perform certain actions accompanying the cataloguing process. You need to know:
z/OS skills
You should be able to identify and understand z/OS components and programming languages. General skills in z/OS environment (COBOL, files, DB2, CICS, JCL, utilities) are sufficient.
See also
For more information, see:
Organization
The Oracle Tuxedo Application Rehosting Workbench Cataloger is described in the following sections:
Requirements & Prerequisites
Preparing the migration platform
The migration platform is the platform on which the migration tools (the Rehosting Workbench) execute, including the Cataloger. This platform is based on Linux running on an Intel-compatible hardware platform.
Before performing any action, the Rehosting Workbench should be installed and configured according to specifications and requirements detailed in the Oracle Tuxedo Application Rehosting Workbench Installation Guide.
Overview of the Cataloger in the replatforming process
This section describes the inputs and outputs of the Cataloging step and dependencies with other migration steps in the replatforming process.
Simple Sample Application
In order to illustrate all of the migration activities performed and how to use the the Rehosting Workbench Cataloger to determine whether the asset is consistent and can be migrated to the target platform, the Simple Application STFILEORA will be used. STFILEORA is provided with the Rehosting Workbench set of tools.
Cataloging migration steps
Description of the cataloging operations shown in the graphic:
1.
2.
3.
4.
5.
The operations described above are explained in more detail in the next sections.
Cataloging steps
Building-up an asset
This step is a pre-requisite for the Cataloger and, as mentioned in the Oracle Tuxedo Application Process Guide that gives an overview of the whole migration process, it is up to the user of the Rehosting Workbench to gather these source files on the source platform, transfer them to the migration platform, install them in an appropriate file structure and prepare them for migration.
Building up the asset consists of several steps from getting sources to organizing them to be available as a valid input to the Cataloger tool:
1.
2.
a.
b.
3.
a.
b.
c.
d.
4.
Initialization and configuring the working environment
As the the Rehosting Workbench Cataloger is the first tool of the Oracle Tuxedo Application Workbench suite used in the migration process, a general configuration step for the whole project to be performed is explained here.
Configuration objectives
Recommended file structure
The more organized and standardized the working space, the more migration tasks will be easier and automated.
In the following sample we illustrate a typical organization and we recommend working with the same structure.
Listing 2‑1 The hierarchy of Sample Application
SampleApp
|-- CVS_DELIVRY
|-- Logs
|-- param
| `-- system.desc
|-- source
| `-- makefile
|-- tools
 
The contents of each directory are:
Contains all sources to be migrated and prepared as input for the Rehosting Workbench tools.
Workspace where all the Rehosting Workbench processes can find the source code.
Contains all configuration files (parameters and hints for use by the Rehosting Workbench tools).
Working directory where all the Rehosting Workbench tools are launched, all log files are generated
Directory to place specific tools developed by the user during the migration process
Setting environment and working variables
It is recommended that each time you work on a project using the Rehosting Workbench to set certain environment variables that will be useful later. The only environment variable that is mandatory is REFINEDISTRIB; others can be used for simplification reasons.
The following table explains the usage of proposed variables.
Table 2‑1  
Variable used by the Rehosting Workbench
In the Simple Application example project, we use a setting file named $PROJECT/.project that contains all initializations using an export Linux command. This file is to be executed each time a new Linux session is opened to work in the project
Listing 2‑2 Extract from Simple Application .project file:
echo "Wellcome to SampleApp"
export GROUP=refine
export PROJECT=${HOME}/SampleApp
export CVS_LIV=${PROJECT}/CVS_DELIVRY
export CVSROOT=${PROJECT}/CVS_DELIVRY
export LOGS=${PROJECT}/Logs
export SOURCE=${PROJECT}/source
export PARAM=${PROJECT}/param
export REFINEDIR=/product/art_wb11gR1/refine
export PHOENIX=${REFINEDIR}
export TMPPROJECT=${PROJECT}/tmp
export REFINEDISTRIB=Linux64
 
Project initialization summary
To initialize a new project, proceed as follow:
1.
2.
3.
4.
Create a file .project under $PROJECT and initialize it with variables listed in Setting environment and working variables. Variables in the file are to be exported each time you work on the project.
5.
6.
Configuration
You need to set at least two configuration files, additional configuration files are described in the advanced usage section.
The two configuration files needed by the Cataloger are:
System description file
The system description file is the main configuration file for the Rehosting Workbench tools.
For the Simple Application example:
global-options catalog = "../param/options-catalog.desc".
Listing 2‑3 system description for Simple Application
system SampleApp root "../source"
global-options
catalog="../param/options-catalog.desc",
no-END-Xxx.
DBMS-VERSION="8".
% Copies
directory "COPY" type Cobol-Library files "*.cpy".
% DDL
directory "DDL" type SQL-SCRIPT files "*.ddl".
% Batch
directory "BATCH" type Cobol-Batch files "*.cbl" libraries "COPY". %, "INCLUDE".
% Cics Cobol Tp
%
directory "CICS" type Cobol-TPR files "*.cbl" libraries "COPY". %, "INCLUDE".
 
 
Global options
The purpose of the Cataloger options file is to give the Cataloger additional information that will influence its behavior.
In the Simple Application example we use only three options, of course other options can be used; see the Oracle Tuxedo Application Rehosting Workbench Reference Guide for a full list of options.
Listing 2‑4 Global Options file for the Simple Application
%% Options for cataloging the system
job-card-optional.
 
Executing the Cataloger
One operation
You can launch the Cataloging with one command; all operations are performed sequentially.
The example command line syntax is:
${REFINEDIR}/refine r4z-catalog -s $PARAM/system.desc
Where:
In our sample the command will be:
From directory $LOGS/catalog execute the command:
${REFINEDIR}/refine r4z-catalog -s $PARAM/system.desc
The execution log is printed on the screen and at the same is redirected in log file under the directory from which you lunched the command.
Step by step
Parsing
Running this step is useful when you want to check specific programs without waiting for the whole cataloging to see the results.
Listing 2‑5 Parsing examples
# parse only one program
${REFINEDIR}/refine r4z-preparse-files -s $PARAM/system.desc CICS/PGMM000.cbl
 
# parse a list of programs
# build a list that contains programs with path from source (CICS/PGMM000.cbl)
${REFINEDIR}/refine r4z-preparse-files -s $PARAM/system.desc -f list-of-file
 
Analysis
The result of this step is the binary file named symtab-SampleApp.pob that represents inter-component information.
Listing 2‑6 Analysis example
cd $LOGDIR/catalog
${REFINEDIR}/refine r4z-analyze -s $PARAM/system.desc
 
Print reports
In this step information stored in binary files is collected and printed in CSV format reports.
Listing 2‑7 Print Reports example
cd $LOGDIR/catalog
$REFINEDIR/refine r4z-fast-final -v M2_L3_3 -s $PARAM/system.desc
 
In the Simple Application reports are generated in $PROJECT/source/Reports-SampleApp:
The different reports are described in the Oracle Tuxedo Application Rehosting Workbench Reference guide.
Result analysis and validation
Using the cataloging reports, you can perform different actions in order to create the exact asset set to be migrated and give launch the other the Rehosting Workbench steps: Cobol conversion, JCL translation and Data conversion.
Note:
Inventory
After cataloging each Program, Copy, Job, Include is given a status depending on its use.
Table 2‑2 Inventory status
Anomaly analysis
All the errors reported in the Anomalies Report must be analyzed:
The asset should be free from severe errors before proceeding to conversion.
Completion criteria
Cataloging can be considered complete once all expected outputs are generated (pob files and cataloging reports).
As a process, it depends on the context of the project, but generally cataloguing is considered as completed when:
Using the make utility
make is a UNIX utility intended to automate and optimize the construction of targets (files or actions).
We highly recommend using make to perform the different operations that compose the migration process because this enables you to:
You should have a descriptor file named makefile in the source directory in which all operations are implemented (a makefile is prepared in the source directory during the initialization of a project).
The following two sections describe the make configuration and how to use the Cataloger functions thru make.
Make configuration
Version.mk
The version.mk configuration file in $PARAM is used to set the variables and parameters required by the make utility.
In this file specify where each type of component is installed and their extensions, and the versions of the different tools to be used. This file also describes how the log files are organized.
Listing 2‑8 Extract from version.mj for Simple Application
Root = ${PROJECT}
#
# Define directory Projet
#
Find_Jcl = JCL
Find_Prg = BATCH
Find_Tpr = CICS
Find_Spg =
Find_Map = MAP
SCHEMAS = AV
#Logs organisation
#
LOGDIR := $(LOGS)
CATALDIR := $(LOGS)/catalog
PARSEDIR := $(LOGS)/parse
TRADJCLDIR := $(LOGS)/trans-jcl
TRADDIR := $(LOGS)/trans-cbl
DATADIR := $(LOGS)/data
 
Makefile
The contents of the makefile summarize the tasks to be performed:
The makefile provided with the Simple Application is auto-documented.
Parsing
Parsing all programs
From the $SOURCE directory execute the command:
> make pob
The log file is generated in $LOGS/parse
Check need to be parsed
> make pob VERIF=TRUE
Check : Parse of BATCH/PGMMB02.cbl Need Process .. To obtain BATCH/pob/PGMMB02.cbl.pob
Parsing of one program
Sample: parsing the program BATCH/PGMMB02.cbl
> make BATCH/pob/PGMMB02.cbl.pob
The log file is generated in $LOGS/parse
Cataloging
To launch cataloging use:
make catalog
The log file is generated in $LOGS/catalog
Advanced usage of make
To add or update a target
You can update the makefile to add some targets or to update existing ones.
For example, if you developed you own script (report.sh) to generate a customized report based on basic cataloguing reports, place your script in $TOOLS directory.
The makefile can be modified as follow:
Reporting:
@${TOOLS}/report.sh
catalog:
@$(REAL_CMD) ${REFINEDIR}/refine r4z-catalog -v $(CATALOG) -s $(SYSTEM) $(LOG_FILE_FLAGS_CAT)
@make reporting
Your customized report will be updated automatically after each catalog execution.
Debugging the make target
Sometimes a command thru make cannot work properly because of a lack of configuration.
Proceed as follow:
1.
2.
catalog:
@$(COMMENT) ${REFINEDIR}/refine r4z-catalog -v $(CATALOG) -s $(SYSTEM) $(LOG_FILE_FLAGS_CAT)
Using the command with option VERIF=TRUE
> make catalog VERIF=TRUE -f makefile.debug
The command to be executed is printed = after replacement of all variables.
 

Copyright © 1994, 2017, Oracle and/or its affiliates. All rights reserved.