Data Structure for COPYFILE COBOL Copy File Analysis |
When technology complements business | Copyright © 1987-2017 SimoTime Enterprises All Rights Reserved |
The SimoTime Home Page |
This information in this document was generated from a COBOL copy file using the SimoTime Record Layout utility program. The primary intent of the following table is to provide additional information about a file record layout using a COBOL Copy File as input. For example, the position of a field within a record is not easily determined from the COBOL Data Structure. Also, the actual physical length for group items, packed fields, binary fields and tables must be calculated manually. This information is provided by the SimoTime COBOL Copy File Analysis program.
This section shows a sample COBOL copy file and the generated HTML document that is produced by the SimoTime Utility Program.
The following (CUSTCB01.cpy) is a simple example of a COBOL copy file.
***************************************************************** * Copy File for Customer Master File used by the Demo programs. * * This is a VSAM Keyed=Sequential-Data-Set or Key-Indexed File. * ***************************************************************** * Copyright (C) 1987-2013 SimoTime Enterprises * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Enterprises * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 CUST-RECORD. 05 CUST-NUMBER PIC X(12). 05 CUST-DATA. 10 CUST-STATUS PIC X. 10 CUST-NAME. 15 CUST-LAST-NAME PIC X(28). 15 CUST-FIRST-NAME PIC X(20). 15 CUST-MID-NAME PIC X(20). 10 CUST-ADDRESS-1 PIC X(48). 10 CUST-ADDRESS-2 PIC X(48). 10 CUST-CITY PIC X(28). 10 CUST-STATE PIC X(28). 10 CUST-POSTAL-CODE PIC X(12). 10 CUST-PHONE-HOME PIC X(18). 10 CUST-PHONE-WORK PIC X(18). 10 CUST-PHONE-CELL PIC X(18). 10 CUST-CREDIT-LIMIT PIC 9(7) COMP-3. 10 CUST-DISCOUNT OCCURS 3 TIMES. 15 CUST-DISCOUNT-CODE PIC S9(3) COMP. 15 CUST-DISCOUNT-RATE PIC S9(2)V999. 15 CUST-DISCOUNT-DATE PIC X(8). 10 CUST-LADATE PIC X(8). 10 CUST-LATIME PIC X(8). 10 CUST-TOKEN PIC 9(3). 10 FILLER PIC X(145). * CUSTCB01 - End-of-Copy File... * *****************************************************************
The intent of the following link is to provide additional information about a file record layout using a COBOL Copy File as input. For example, the position of a field within a record is not easily determined from the COBOL Data Structure. Also, the actual physical length for group items, packed fields, binary fields and tables must be calculated manually.
Explore the Record Structure for the Customer Master File by viewing a generated HTML document based on a User-Defined COBOL copyfile.
The purpose of this document is 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 suite of programs is provided as a COBOL programming example of one of the possible solutions to the problem of converting the EBCDIC encoded fields within a record to ASCII encoded fields within a record using a COBOL Copy File as input. This example will also maintain the integrity of the mainframe numeric encoded fields for PACKED and BINARY data.
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.
This section includes links to documents with additional information that are beyond the scope and purpose of this document. The following links will require an internet connection.
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.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
The following links will require an internet connect.
The SimoREC1 program, this documentation, the Installation Verification Procedures (IVP's) and examples are provided electronically or on machine-readable media with a predefined SETUP procedure. Additional information about acquiring SimoREC1 may be obtained by contacting the helpdesk@simotime.com or refer to the Product Availability and Pricing document.
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.
Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.
This document was created and is copyrighted and maintained by SimoTime Technologies.
If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com
We appreciate hearing from you.
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 |
COBOL Data Structures by SimoTime Enterprises |
Copyright © 1987-2017 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |