Numeric Data Integrity Totals for Currencies & Record Counts |
The SimoTime Home Page |
The primary objective of this test case is to describe and demonstrate how to validate the integrity of the numeric values in a non-relational data file.
A secondary objective is to describe and demonstrate how the programs that do the various file format and record content conversions are generated.
1. | Define the Requirements and a Proposed Solution. |
1.1. | Data File Sharing |
1.2. | Data File Transfer between Systems of Different Architectures |
1.3. | Data File Conversion |
1.4. | Data Validation with a focus on numeric values, summary totals for currency fields is critical. |
2. | Describe and Demonstrate how to generate a Program that provides Record Counts and Summary Totals. |
2.1. | Program Generation |
2.2. | User Input to the Generation Process |
3. | Describe and Demonstrate how to Deploy and Execute the Programs that do Numeric Data Validation. |
3.1. | A Mainframe System |
3.2. | A Linux, UNIX or Windows System |
3.3. | Micro Focus Enterprise Server |
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-2025
SimoTime Technologies and Services
All Rights Reserved
The need to share data within companies and between companies is becoming critical to the success of many businesses. Individuals within companies and customers of companies need access to information that may be stored on a variety of systems of differing architectures. To further complicate the task at hand departments within companies have deployed their own systems (or servers) and individuals use a variety of devices to access and process the data.
The process of preparing, validating and delivering information to this wide audience of diverse users is the challenge. This test case will focus on the techniques of validating the integrity of numeric values (currency fields included).
WIP2
WIP1
The following JCL Member (TC06DVJ1.jcl) will read a Record Sequential file with records that contain various numeric formats. Numeric totals will be accumulated for user-defined fields based on the numeric structure defined in a COBOL copy file. A record count will be provided in the final output to SYSOUT.
//TC06DVJ1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1 //* ******************************************************************* //* TC06DVJ1.jcl - a Job Control Language Member * //* This program is provided by SimoTime Technologies * //* (C) Copyright 1987-2019 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Subject: Accumulate totals for user-defined numeric values //* Author: SimoTime Technologies //* Date: January 24, 1996 //* //* ******************************************************************* //* Step 1 of 2, Delete previously created files, //* use IEFBR14 with a DD Statement //* //JOBSETUP EXEC PGM=IEFBR14 //TC05DMP1 DD DSN=SIMOTIME.DATA.TC05DMPX,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=F,LRECL=512,DSORG=PS) //* //********************************************************************* //* Step 2 of 2, Dump all the records in the ASCII-encoded file //* //ASCDUMP EXEC PGM=TC06DVC1 //SYSUT1 DD DSN=SIMOTIME.DATA.TC05RSA1,DISP=SHR //SYSOUT DD SYSOUT=* //*
The following CMD file (TC06DVW1.cmd) will set the environment then read a Record Sequential file with records that contain various numeric formats. Numeric totals will be accumulated for user-defined fields based on the numeric structure defined in a COBOL copy file. A record count will be provided in the final output to SYSOUT.
@echo OFF rem * ******************************************************************* rem * TC06NTW1.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2019 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Read a file, Calculate record Count and numeric totals. rem * Author - SimoTime Technologies rem * Date - January 24, 1988 rem * rem * The job will read a file of 80-byte records that contains numeric rem * fields within the records. rem * The programs will read the file and calculate a record count and rem * summary totals for user-defined numeric fields. rem * rem * ************ rem * * TC06DVW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ ************ rem * * SYSUT1 ******* TC06DVC1 ******* SYSOUT * rem * *******rseq* ********cbl* *******lseq* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Read a File, Calculate Record Counts and Summary Totals... rem * set CmdName=TC06DVW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "StepInfo Execute the Program to Calculate Totals" set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.TC05RSA1.dat set SYSOUT=%BaseLib1%\DATA\SPOOL\SYSOUT_%CmdName%.TXT if exist %SYSOUT% erase %SYSOUT% call SimoNOTE "DataTake %SYSUT1%" call SimoNOTE "DataMake %SYSOUT%" run TC06DVC1 if not "%ERRORLEVEL%" == "0" set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok if exist %SYSOUT% type %SYSOUT% goto :EojAok :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following shows an example of the reporting information produced as a result of executing this test case.
* TC06DVC1 Accumulate Totals for Numeric Data v13.11.21 helpdesk@simotime.com * TC06DVC1 A Program to Calculate Totals was generated by SimoTime Technologies * TC06DVC1 * Compiled for an ASCII environment... * TC06DVC1 TC05-ZDT-NBR 11,973 * TC06DVC1 TC05-ZDU-NBR 13,947 * TC06DVC1 TC05-ZDS-NBR 11,973 * TC06DVC1 TC05-BNU-NBR 13,947 * TC06DVC1 TC05-BNS-NBR 11,973 * TC06DVC1 TC05-PDU-NBR 13,947 * TC06DVC1 TC05-PDS-NBR 11,973 * TC06DVC1 Record count for SYSUT1 000000003 * TC06DVC1 Program to Calculate Totals generated by using SimoTime Technologies * TC06DVC1 Please send all inquires or suggestions to the helpdesk@simotime.com
The program that reads the test file, does the record count and accumulates summary totals for user-defined numeric fields is generated using SimoTime Technologies.
The following (TC05DV01.pcf) is the Process Control File that contains the user-defined specifications to generate a program to accumulate summary totals.
*********************************************************************** * TC06DV01.pcf - a Process Control File * * SimoTime Program Generation Technologies * * (C) Copyright 1987-2019 All Rights Reserved * * Web Site URL: http://www.simotime.com * * e-mail: helpdesk@simotime.com * *********************************************************************** * SYSUT1 is the Sequential File with 80-byte records. *********************************************************************** * This Process Control File will be used to generate a set of COBOL * programs that will accumulate totals for user-defined numeric fields * and provide a record count. * Refer to the utconv01.htm document for additional detail. * * The following group of statements will define the high level * functions and processes to be performed. * &SIMOPREP call ..\Env1BASE &USERPREP call UserCOMP &CONFORM IBM ©FILE TC05RSB1.cpy &HTMLFILE tc05rsb1.htm * * The following group of statements will define the behavioral * characteristics and environment variable for the file I/O Program * to be generated. * *HEAD34 ....:....1....:....2....:....3.... &HEAD34 Accumulate Totals for Numeric Data &PROGID TC06DVC1 &SYSUT1 org=Sequential recfm=FIXED rmax=80 * * The following group of statements will define the behavioral * characteristics and environment variables for the record content * conversion program to be generated. * The following defines the name of the callable routine for special * numeric processing. * &NUMCALL TC06DVR1 &NUMREC TC05RS80-RECORD * * The following group of statements will define the type of processing * and the name of the numeric fields. * &UT1TOTAL TC05-ZDT-NBR &UT1TOTAL TC05-ZDU-NBR &UT1TOTAL TC05-ZDS-NBR &UT1TOTAL TC05-BNU-NBR &UT1TOTAL TC05-BNS-NBR &UT1TOTAL TC05-PDU-NBR &UT1TOTAL TC05-PDS-NBR * &END
Mainframe, Linux, UNIX or Windows… WIP…
WIP1
The following (TC05RSB1.cpy) is the COBOL Copy File that defines the record structure for the test file.
***************************************************************** * TC05RSB1.CPY is a COBOL Copy File * * Copy File for an 80-byte, fixed-length record. * * This is a VSAM Keyed=Sequential-Data-Set or Key-Indexed File. * * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** * Each of the field names is created using three words. * 1st Word - TC05 identifies a field as part of the TC05RS80 * record. * 2nd Word - TAG a record TAG or identifier. * ZDT Zoned-Decimal-Trailing Sign * ZDU Zoned-Decimal-Unsigned * ZDS Zoned-Decimal-Signed * BNU BiNary-Unsigned * BNS BiNary-Signed * PDU Packed-Decimal-Unsigned * PDS Packed-Decimal-Signed * 3rd Word - TXT the field contains text data * LIT the field contains a literal value used * as an eye-catcher between fields * NBR the field contains a numeric value * END the field contains a literal value that * indicates the end of the record * 01 TC05RS80-RECORD. 05 TC05-BASE. 10 TC05-TAG-TXT PIC X(6). 10 TC05-TAG-LIT PIC X. 10 TC05-ZDT-NBR PIC S9(7) SIGN TRAILING SEPARATE. 05 TC05-GENR. 10 TC05-ZDU-LIT PIC X(5). 10 TC05-ZDU-NBR PIC 9(7). 10 TC05-ZDS-LIT PIC X(5). 10 TC05-ZDS-NBR PIC S9(7). * 10 TC05-BNU-LIT PIC X(5). 10 TC05-BNU-NBR PIC 9(9) COMP. 10 TC05-BNS-LIT PIC X(5). 10 TC05-BNS-NBR PIC S9(9) COMP. * 10 TC05-PDU-LIT PIC X(5). 10 TC05-PDU-NBR PIC 9(7) COMP-3. 10 TC05-PDS-LIT PIC X(5). 10 TC05-PDS-NBR PIC S9(7) COMP-3. * 10 TC05-TAG-END PIC X(5). * *** TC05RSB1 - End-of-Copy File - - - - - - - - - - - TC05RSB1 * ***************************************************************** *
The primary objective of this test case is to describe and demonstrate how to validate the integrity of the numeric values in a non-relational data file. This document may be used 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 documentation and software were developed and tested on systems that are configured for a SIMOTIME environment based on the hardware, operating systems, user requirements and security requirements. Therefore, adjustments may be needed to execute the jobs and programs when transferred to a system of a different architecture or configuration.
SIMOTIME Services has experience in moving or sharing data or application processing across a variety of systems. For additional information about SIMOTIME Services or Technologies please contact us using the information in the Contact or Feedback section of this document.
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.
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.
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 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 icon.
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.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
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.
Explore The File Status Return Codes that are used to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connection.
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 (including Micro Focus COBOL) 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 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.
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 |
Validate Numeric Data Integrity, Accumulate Totals for Numeric Values, Currencies and Record Counts |
Copyright © 1987-2025 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |