xmlconverter

Top  Previous  Next

This tool produces conversion routines from the XML data structure description, created by cpy2xml utility.

It may generate several converter types:

COBOL programs for data conversion
C language routines for XCICS Online Dynamic Conversion System (ODCS)
COBOL programs for H2R data conversion
SQL statements to load H2R fields

COBOL programs for data conversion

This is the default output type of xmlconverter. By default the converter will handle a fixed record length file. If file has variable record length, you need to run xmlconverter with -V option: The input and output file will be managed as variable size file.

C language routines for XCICS Online Conversion System

With option -C, xmlconverter produces a C language function source, to be used with the XCICS Online Conversion System.

To create conversion program for DL/I data download, you have to use -H option. DL/I data are organized with 16 bytes at

COBOL programs for H2R data conversion

To create conversion program for DL/I data download, you have to use -H option. DL/I data are organized with 16 bytes at the beginning of each record, where DBD and PSB name are stored. The DBD name is normally equal for all records because each DBD is downloaded by a single program into the same file.

The PSB name is variable and the segment name define a particular record description used to translate the record. You have as many record descriptions as DL/I segments.

The segment name is before translated and then tested to identify the right record description to convert the area.

SQL statements to load H2R fields

With option -d, it generates a SQL script to load the H2R system tables, with the data structure information

Syntax

xmlconverter [-options] <file>

Parameters

-v, --version

show version

-a, --ascii-to-ebcdic        

changes conversion direction from ASCII  to EBCDIC

-o, --output <filename>

redirects standard output to filename

-t, --write-template <template>

writes a template for the rules coding

-c, --include-copy <copy>

includes copy before testing record type field

-p, --test-packed

enables test numeric validation on packed fields

-n, --test-numeric

enables test numeric validation on numeric fields

-l, --test-lenght        

disables check on variable file length size (valid only with -var option)

-R, --handle-critical-redefines

includes critical redefines handling code

-V, --variable, -var

generates program for variable record files

-N, --net-express

generates a COBOL source suitable for Microfocus NetExpress for Windows

-C, --c-area

generates c conversion routine (for XCICS Online Conversion System)

-H, --h2r-converter, -h2r

generates standard H2R conversion program

-d, --h2r-fields, -db        

creates file to load H2R fields info into RDBMS

-S, --mssql-loader

generates C# data loader program for MS SQL Server

-s, --mssql-schema <schema>

set sql schema name into mssql loader (mssql loader only)

-T, --mssql-time2char

set conversion of TIME data type to char instead of DATETIME (mssql loader only)

-E, --mssql-vse

set data origin to VSE operating system (mssql loader only)

-h, --help

shows help