|
|
COBOL Data
Structures COBOL Copy File Analysis http://www.simotime.com |
| When technology complements business | Copyright © 1987-2010 SimoTime Enterprises All Rights Reserved |
|
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.
The physical length for the BINARY or COMP fields is calculated based on the format for an IBM Mainframe
| Level | Field/Redefines Name | Field Type | Relative Position |
Whole Numbers |
Decimal Positions |
Logical Size |
Physical Size |
Table Cell Size |
Table Minimum |
Table Maximum |
| 01 | ITEM-RECORD | Group Item | 1 | 0 | 0 | 0 | 512 | 0 | 0 | 0 |
| 05 | ITEM-NUMBER | Alphameric | 1 | 0 | 0 | 12 | 12 | 0 | 0 | 0 |
| 05 | ITEM-DATA | Group Item | 13 | 0 | 0 | 0 | 500 | 0 | 0 | 0 |
| 10 | ITEM-DESCRIPTION | Alphameric | 13 | 0 | 0 | 48 | 48 | 0 | 0 | 0 |
| 10 | ITEM-QTY-ONHAND | Numeric/Unsign BINARY |
61 | 7 | 0 | 7 | 4 | 0 | 0 | 0 |
| 10 | ITEM-QTY-ALLOCATED | Numeric/Unsign BINARY |
65 | 7 | 0 | 7 | 4 | 0 | 0 | 0 |
| 10 | ITEM-UNIT-OF-MEASURE | Alphameric | 69 | 0 | 0 | 16 | 16 | 0 | 0 | 0 |
| 10 | ITEM-COST | Numeric/Signed PACKED |
85 | 7 | 2 | 9 | 5 | 0 | 0 | 0 |
| 10 | ITEM-PRICE | Numeric/Signed PACKED |
90 | 7 | 2 | 9 | 5 | 0 | 0 | 0 |
| 10 | ITEM-LADATE | Alphameric | 95 | 0 | 0 | 8 | 8 | 0 | 0 | 0 |
| 10 | ITEM-LATIME | Alphameric | 103 | 0 | 0 | 8 | 8 | 0 | 0 | 0 |
| 10 | ITEM-TOKEN | Alphameric | 111 | 0 | 0 | 3 | 3 | 0 | 0 | 0 |
| 10 | ITEM-D-CODE-1 | Alphameric | 114 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 10 | ITEM-D-PERCENT-1 | Numeric/Signed | 115 | 3 | 4 | 7 | 7 | 0 | 0 | 0 |
| 10 | ITEM-D-CODE-2 | Alphameric | 122 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 10 | ITEM-D-PERCENT-2 | Numeric/Signed | 123 | 3 | 4 | 7 | 7 | 0 | 0 | 0 |
| 10 | ITEM-D-CODE-3 | Alphameric | 130 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
| 10 | ITEM-D-PERCENT-3 | Numeric/Signed | 131 | 3 | 4 | 7 | 7 | 0 | 0 | 0 |
| 10 | FILLER | Alphameric | 138 | 0 | 0 | 375 | 375 | 0 | 0 | 0 |
| Level | Field/Redefines Name | Field Type | Relative Position |
Whole Numbers |
Decimal Positions |
Logical Size |
Physical Size |
Table Cell Size |
Table Minimum |
Table Maximum |
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 determining the field position within a record using a COBOL Copy File as input. This example will also determine the physical length of PACKED and BINARY fields.
Permission to use, copy, modify and distribute this software for any commercial purpose requires a fee to be paid to SimoTime Enterprises. Once the fee is received by SimoTime the latest version of the software 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 Enterprises.
Permission to use, copy, modify and distribute this software for a non-commercial purpose and without fee is hereby granted, 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 Enterprises.
SimoTime Enterprises makes no warranty or representations about the suitability of the software for any purpose. It is provided "AS IS" without any express or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises 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.
If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com
Access to the Internet is required for the following links.
Check out
The COBOL Connection for more
examples of mainframe COBOL coding techniques and sample code.
Check out
The SimoTime Library for a
wide range of topics for Programmers, Project Managers and Software Developers.
To review all the information available on this site start at
The SimoTime Home Page .
Access to the Internet is required for the following links.
Check out The SimoTime Glossary for a list of terms and definitions used in the documents provided by SimoTime.
If you have any questions, suggestions or comments please call or send an e-mail to: helpdesk@simotime.com.
Founded in 1987, SimoTime Enterprises 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. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. 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 complimentary manner with existing corporate mainframe systems. 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 |
| Copyright © 1987-2010 SimoTime Enterprises All Rights Reserved |
| When technology complements business |
| http://www.simotime.com |