Data File Convert
View COBOL Source Code
  Table of Contents  v-14.03.28 - datagvit.htm 
  Introduction
  View the Generated Source Code
  View the HTML Document
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview

Table of Contents Previous Section Next Section Introduction

This document describes how to view and validate the generation of the COBOL source code for two programs. The first program will read an EBCDIC encoded file and write an ASCII encoded file. The data conversion will be performed by a second COBOL program that is called by the first COBOL program. Since the COBOL source code is COBOL/2 compliant it may be compiled and executed on an IBM Mainframe (z/OS or VSE), a Wintel platform (Windows and Micro Focus) or a UNIX platform (with Micro Focus).

This example illustrates the following functions.

1. View the generated COBOL source code created by the Generation process.
2. View the HTML document created during the generation process.
3. Create the file of specifications to generate the I/O program.
4. Create and execute a command file to automate and document the process.

Note: This module is part of The SimoPATH Series of training and reference materials. For more information refer to The Internet Home Page for The SimoPATH Series.


We have made a significant effort to ensure the documents and software technologies are correct and accurate. We reserve the right to make changes without notice at any time. The function delivered in this version is based upon the enhancement requests from a specific group of users. The intent is to provide changes as the need arises and in a timeframe that is dependent upon the availability of resources.

Copyright © 1987-2019
SimoTime Technologies and Services
All Rights Reserved

Table of Contents Previous Section Next Section View the Generated Source Code

Generating the COBOL source code to do the data file conversion is a two step process. The first step is to create the callable conversion program using the copy file as input. The second step is to create the I/O program using the specifications file as input.

The following source member (ITME2AR1.cpy) should be displayed using Notepad.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    ITME2AR1.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      *           This routine was generated by SimoREC1              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *  Generation Date: 2007/07/27  Generation Time: 09:41:28:37    *
      *****************************************************************
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  IX-1  PIC 9(5) VALUE 0.
       01  RM-1  PIC 9(5) VALUE 0.
       01  RO-1  PIC 9(5) VALUE 0.
       01  IX-2  PIC 9(5) VALUE 0.
       01  RM-2  PIC 9(5) VALUE 0.
       01  RO-2  PIC 9(5) VALUE 0.

       COPY ASCEBCB1.
       COPY ASCEBCB2.

      *****************************************************************
       LINKAGE SECTION.
       COPY ITEMCB01.

      *****************************************************************
       PROCEDURE DIVISION using ITEM-RECORD.
           inspect ITEM-NUMBER              converting E-INFO to A-INFO
           inspect ITEM-DESCRIPTION         converting E-INFO to A-INFO
      *    Binary  ITEM-QTY-ONHAND
      *    Binary  ITEM-QTY-ALLOCATED
           inspect ITEM-UNIT-OF-MEASURE     converting E-INFO to A-INFO
      *    Packed  ITEM-COST
      *    Packed  ITEM-PRICE
           inspect ITEM-LADATE              converting E-INFO to A-INFO
           inspect ITEM-LATIME              converting E-INFO to A-INFO
           inspect ITEM-TOKEN               converting E-INFO to A-INFO
      *    Group10 ITEM-DISCOUNT                     occurs 00003 times
      *    Group  00008
      *    Table   ITEM-D-CODE
           perform varying IX-1 from 1 by 1 until IX-1 > 00003
             inspect ITEM-D-CODE(IX-1)      converting E-INFO to A-INFO
           end-perform
      *    Table   ITEM-D-PERCENT
           add 0000115 to ZERO giving RM-1
           add 0000008 to ZERO giving RO-1
           perform 00003 times
             inspect ITEM-RECORD(RM-1:00007)
                                            converting E-NUMB to A-NUMB
             add RO-1 to RM-1
           end-perform
      *    Group10                                          End-Group10
      *    Filler  A Non-Unique Reference to a Data Item
           inspect ITEM-RECORD(138:375)     converting E-INFO to A-INFO
           GOBACK.

Table of Contents Previous Section Next Section View the HTML Document

Start Windows explorer and perform the following steps.

From Windows Explorer perform the following steps.

1. From the left pane select the c:\DataMig1\HTML directory.
2. From the right pane double-click on ItemCB01.HTM.

Table of Contents Previous Section Next Section Summary

The purpose of this session is to describe how to generate the COBOL source code that will convert a data file from EBCDIC encoding to ASCII encoding.

This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers. In the world of programming there are many ways to solve a problem. This document and the links to other documents are intended to provide a choice of alternatives.

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.

SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

Table of Contents Previous Section Next Section Downloads and Links

This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.

Note: A SimoTime License is required for the items to be made available on a local system or server.

Table of Contents Previous Section Next Section Current Server or Internet Access

The following links may be to the current server or to the Internet.

Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the Link to Internet icon. If a user has a SimoTime Enterprise License the Documents and Program Suites may be available on a local server and accessed using the Link to Server icon.

Link to Internet   Link to Server   Explore The SIMOPATH Series starting at the home page to view information about training sessions and learning materials available from SimoTime Enterprises.

Link to Internet   Link to Server   Explore the capabilities of the SimoZAPS Utility Program. This includes generating a COBOL program that will do the conversion of sequential and VSAM (KSDS) files between EBCDIC and ASCII while maintaining mainframe (or COBOL) numeric formats and integrity. SimoZAPS can also read a sequential file in EBCDIC format and create an ASCII/CRLF file or VSAM KSDS file in ASCII format. The conversion tables may be viewed or modified to meet unique requirements. The Hexcess/2 function provides the capability of viewing, finding or patching the contents of a file in hexadecimal.

Link to Internet   Link to Server   Explore How to Document Record Layouts or other Data Structures using a COBOL copy file. For reference or documentation purposes SimoREC1 creates an ASCII/Text file and an HTML document from a COBOL copy file. The utility provides the length of a field and the position of the start of the field within a record. Also, the actual physical length for group items, packed fields, binary fields and tables will be calculated.

Link to Internet   Link to Server   Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.

Link to Internet   Link to Server   Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and/or QSAM files.

Link to Internet   Link to Server   Explore An Enterprise System Model that describes and demonstrates how Applications that were running on a Mainframe System and non-relational data that was located on the Mainframe System were copied and deployed in a Microsoft Windows environment with Micro Focus Enterprise Server.

Table of Contents Previous Section Next Section Internet Access Required

The following links will require an internet connect.

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection

Explore The Micro Focus Web Site for more information about products and services available from Micro Focus. This link requires an Internet Connection.

Table of Contents Previous Section Next Section Glossary of Terms

Link to Internet   Link to Server   Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.

Table of Contents Previous Section Next Section Comments or Feedback

This document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.

1. Send an e-mail to our helpdesk.
1.1. helpdesk@simotime.com.
2. Our telephone numbers are as follows.
2.1. 1 415 763-9430 office-helpdesk
2.2. 1 415 827-7045 mobile

We appreciate hearing from you.

Table of Contents Previous Section Next Section Company Overview

SimoTime Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.

Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.

Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SimoTime has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.

Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
View & Validate the Generation of the Conversion Programs for the Item Master File
Copyright © 1987-2019
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com