Data File Compare
Generate & Execute the Programs
  Table of Contents  v-18.09.15 - stgenp2v.htm 
  Introduction
  Objectives
  Requirements & Configuration
  Generate & Promote
  Compile & Deploy
  Execute & Review
  Execute the Compare Program
  Review the Results, Equal
  Review the Results, NOT Equal
  Technical Details
  Ancillary Functions
  Set the Environment
  Display and Log Messages
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

When data or business applications running in a single system environment are created or changed it is a requirement to have a data validation (or file compare) process during the acceptance or regression testing cycles. When data or business applications are "shared across" or "moved between" multiple systems the processing complexity of data validation technology increases. The variety of System architectures, the physical structure of the file formats and the properties of the record content add to the confusion.

This job will perform a logical compare instead of a physical compare of the records in the files. The logical compare process incorporates a technique that compares the symbol associated with the physical value prior to comparing the actual physical value. This technique will compare a file with ASC-encoded records to a file with EBC-encoded records.

This document will focus on the task of generating COBOL programs that will compare the content of data files on a record by record basis. The generation phase will require a Windows system. The generated source code may be compiled and executed on a system of choice.

Note: For explanation purposes this document will reference a default setup and configuration environment that is used by SimoTime.


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 Objectives

This example illustrates the following functions.

1. Describe and demonstrate a Logical Compare process.
1.1. Read the primary Record Sequential File.
1.1.1. The Records contain ASCII-encoded text data strings.
1.1.2. The Records contain Zoned-Decimal, Packed-Decimal and Binary Numeric Values.
1.2. Read the secondary Record Sequential File.
1.2.1. The Records contain EBCDIC-encoded text data strings.
1.2.2. The Records contain Zoned-Decimal, Packed-Decimal and Binary Numeric Values.
2. Describe and demonstrate the program generation process.
3. Describe and demonstrate the program compilation process.
4. Describe and demonstrate the program execution process.

Table of Contents Previous Section Next Section Requirements & Configuration

This suite of samples programs will run on the following platforms.

1. Requires Microsoft Windows/7 (or later) or Windows/Server.
2. Requires Micro Focus Enterprise Developer with a configuration for Mainframe Sub-system Support.
3. Requires the SimoTime Library to be installed (C:\SIMOLIBR).
4. Requires a user environment to be configured (C:\SIMOUSER).

For explanation purposes this document will assume a default setup and configuration of the SimoTime Technologies.

Link to Internet   Link to Server   Explore the SIMOUSER directory structure. The SIMOUSER Library is a directory and sub-directory structure that provides an environment for analyst, technical administrators, testing groups and support individuals to generate and execute programs that will be used to convert, verify or review the content and properties of non-relational data structures.

Table of Contents Previous Section Next Section Generate & Promote

The generation processing task is a "one-time" effort. Once it is completed the items (documents or programs) may be promoted to a shared environment and accessed based on user demand.

The following diagram shows the logic flow of a batch job that describes and demonstrates how to use a template to generate (or create) new COBOL programs that will be used to compare the content of two data files.

             
Job Script
cmd
Name is ADM_GENRONE_COMPARES
   
ENV1BASE
cmd
 
 
Environment
variables
Prepare the System Environment
   
USERCOMP
cmd
 
 
Environment
variables
Prepare the Job Environment
   
UTCOMPD1
Note-1
   
   
ZPCF2CMP
cmd
 
 
CBL Code
cbl
Read PCF File, create COBOL Source Code
   
   
User Model1
Note-2
   
   
   
Model or Template file.
   
EOJ
End-of-Job
 
Note-1: The UTCOMPD1 will be mapped to a user-defined Process Control File (PCF).
Note-2: This file is a model or template that will be used in the generation process. This file may be supplied by SimoTime or created by the user.
Compare Function, the Program Generation Logic Flow
 

Color Associations: The  light-green  boxes are unique to SIMOTIME Technologies using an IBM Mainframe System or Micro Focus Enterprise Developer. The  light-red  boxes are unique to the SIMOTIME Technologies using a Linux, UNIX or Windows System and COBOL Technologies such as Micro Focus. The  light-yellow  boxes are SIMOTIME Technologies, Third-party Technologies, decision points or program transitions in the processing logic or program generations. The  light-blue  boxes identify the input/output data structures such as Documents, Spreadsheets, Data Files, VSAM Data Sets, Partitioned Data Set Members (PDSM's) or Relational Tables. The  light-gray  boxes identify a system function or an informational item.

The working library for generating Data Comparison programs is the C:\SIMOUSER\DEVL\SIMOGENS\COMPARES folder.

Windows Explorer will be used to navigate between the folders and execute the programs within the SIMOUSER working environment. Use the Windows Start Button to open a Windows Explorer session

Note: The following assumes Windows Explorer is configured with the Navigation Pane displayed on the left side of the screen and the Preview Pane displayed on the right side of the screen.

1. From the Navigation Pane expand the C:\SIMOUSER\DEVL\SIMOGENS\COMPARES folder.
1.1. From the Preview Pane do a right-mouse button on NUMXVL07.pcf and open the member with a text editor of choice.
1.1.1. Review the content of the file.
1.1.2. Close the file.
1.2. From the Preview Pane do a double-click on SIMOTIME.LISTONE.COMPARES.lst.
1.2.1. Review the content of the file.
1.2.2. Close the file.
1.3. From the Preview Pane do a double-click on ADM_GENRONE_COMPARES.cmd
1.3.1. Double-clicking should cause the Job Script (CMD file) to execute.
1.3.2. The generated COBOL Code should be written to the GENS sub-directory.
1.3.3. Information about the Job Execution should be written to the C:\SIMOUSER\DEVL\LOGS folder.
2. From the Navigation Pane expand to the C:\SIMOUSER\DEVL\SIMOGENS\COMPARES\GENS folder.
2.1. The GENS sub-directory is where the generated programs are stored.
2.2. From the Preview Pane select the generated COBOL Members and copy them to the C:\SIMOUSER\DEVL\COBOLUT1 folder.

This completes the "Generate & Promote" process.

Table of Contents Previous Section Next Section Compile & Deploy

The working library for compiling COBOL propgrams is the C:\SIMOUSER\DEVL\ADM1 folder.

Windows Explorer will be used to navigate between the folders and execute the programs within the SIMOUSER working environment. Use the Windows Start Button to open a Windows Explorer session

Note: The following assumes Windows Explorer is configured with the Navigation Pane displayed on the left side of the screen and the Preview Pane displayed on the right side of the screen.

1. From the Navigation Pane select the C:\SIMOUSER\DEVL\SIMOGENS\ADM1 folder.
1.1. From the Preview Pane double-click on CBUT1AE1.cmd
1.1.1. Double-clicking should cause the Job Script (CMD file) to execute.
1.1.2. The compiled, executable member for the generated COBOL Code should be written to the C:\SIMOUSER\DEVL\HOLD\UT1A folder.
1.1.3. Information about the Job Execution should be written to the C:\SIMOUSER\DEVL\LOGS folder.
2. From the Navigation Pane expand to the C:\SIMOUSER\DEVL\HOLD\UT1A folder.
2.1. The HOLD\UT1A sub-directory is where the executable programs are stored.
2.2. From the Preview Pane select the compiled COBOL Members and copy them to the C:\SIMOUSER\DEVL\LOADLIB folder.

This completes the "Compile & Deploy" process.

Table of Contents Previous Section Next Section Execute & Review

The following diagram shows the logic flow of a batch job that describes and demonstrates how to do a logical compare of the content of two data files.

             
Job Script
cmd
Job Name is NUMXVLW7.cmd
   
ENV1BASE
cmd
 
 
Environment
variables
Prepare the System Environment
   
SYSUT1
Note-1
   
   
NUMXVLC7
cbl
   
   
SYSOUT
lseq
Primary Input, do Compare & post program output
   
   
   
SYSUT2
Note-2
   
   
   
   
   
SYSLUSER
Note-3
Secondary Input & Output for NE Condition
   
EOJ
End-of-Job
 
Note-1: SYSUT1 is mapped to the physical file name for the primary file used in the compare process.
Note-2: SYSUT2 is mapped to the physical file name for the secondary file used in the compare process.
Note-3: SYSLUSER is mapped to the physical file name where information is posted when a Not Equal condition is encountered.
Compare Function, the Program Execution Logic Flow
 

The working library for executing the programs is C:\SIMOUSER\DEVL\LOADLIB folder.

Windows Explorer will be used to navigate between the folders and execute the programs within the SIMOUSER working environment. Use the Windows Start Button to open a Windows Explorer session

Note: The following assumes Windows Explorer is configured with the Navigation Pane displayed on the left side of the screen and the Preview Pane displayed on the right side of the screen.

1. From the Navigation Pane select the C:\SIMOUSER\DEVL\LOADLIB folder.
1.1. From the Preview Pane double-click on NUMXVLW7.cmd
1.1.1. Double-clicking should cause the Job Script (CMD file) to execute.
1.1.2. Information about the Job Execution should be written to the C:\SIMOUSER\DEVL\LOGS folder.
2. From the Navigation Pane expand to the C:\SIMOUSER\DEVL\LOGS folder.
2.1. The LOGS sub-directory is where the Job and SYSOUT informatioon is stored.
2.2. From the Preview Pane select the SYSOUT Member for the Job just executed
2.2.1. The SYSOUT name is SYSOUT_NUHEXKW1.txt

This completes the "Execute" process.

Table of Contents Previous Section Next Section Execute the Compare Program

The following (NUMXVLW7.cmd) is the Job Script that is used to map the file names and execute the data file compare program. This job will map the file names and execute the program that will do the data file comparison.

@echo OFF
     set CmdName=NUMXVLW7
rem  * *******************************************************************
rem  *               NUMXVLW7.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   - Logical Compare of two Record Sequential (RSEQ) Files.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * Data COMPARE Function, Program Execution Logic Flow.
rem  *
rem  * The job will perform a logical compare instead of a physical
rem  * compare of the records in the files. The logical compare process
rem  * incorporates a technique that compares the symbol associated with
rem  * the physical value prior to comparing the actual physical value.
rem  * This technique will compare a file with ASC-encoded records to
rem  * a file with EBC-encoded records.
rem  *
rem  * 1.  Read the primary Record Sequential File.
rem  *     1.1.  The Records contain ASCII-encoded text data strings.
rem  *     1.2.  The Records contain Zoned-Decimal, Packed-Decimal
rem  *           and Binary Numeric Values.
rem  * 2.  Read the secondary Record Sequential File.
rem  *     2.1.  The Records contain EBCDIC-encoded text data strings.
rem  *     2.2.  The Records contain Zoned-Decimal, Packed-Decimal
rem  *           and Binary Numeric Values.
rem  *
rem  *
rem  *                     ************     ************
rem  *                     * NUMXVLW7 *-----*  SYSLOG  *
rem  *                     ********cmd*     ************
rem  *                          *
rem  *                     ************
rem  *                     * ENV1BASE *     Prepare the Sysem Environment
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  *--*--* NUMXVLC7 *--*--*  SYSOUT  *
rem  *    *******rseq*  *  ********cbl*  *  ************
rem  *                  *       *        *
rem  *    ************  *       *        *  ************
rem  *    *  SYSUT2  *--*       *        *--* SYSLUSER *
rem  *    *******rseq*          *           ************
rem  *                          *
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  * *******************************************************************
rem  * The positions within the records to be compared are determined by
rem  * the COMPARE statements in the Process Control File. This is done
rem  * when the compare program is generated.
rem  *
rem  * The results of the compare process is posted to the SIMOL32K File.
rem  *
rem  * The files being compared will produce an Equal result.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Prepare the environment...
rem  *
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set SYSOUT=%BaseLib1%\LOGS\SYSOUT_LSEQ_%CMDNAME%.txt
rem  *
     call SimoNOTE "************************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
rem  *
     call SimoNOTE "* Step 01 of 03 - Prepare the Job Environment"
     set SYSLUSER=%BaseLib1%\LOGS\SYSLUSER_%CMDNAME%.htm
     set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.NUMXRS1K.DAT
     set SYSUT2=%BaseLib1%\Data\EBC1\SIMOTIME.DATA.NUMXRS1K.DAT
rem  *
     call SimoNOTE "* Step 02 of 03 - Compare two Record Sequential (RSEQ) Files"
     call SimoNOTE "DataTake SYSUT1.....%SYSUT1%"
     call SimoNOTE "DataTake SYSUT2.....%SYSUT2%"
     run NUMXVLC7
     set ERRORLEVELTWO=%ERRORLEVEL%
     if not "%ERRORLEVELTWO%" == "0" set JobStatus=0010
     if "%ERRORLEVELTWO%" == "4" set JobStatus=0004
rem  *
     call SimoNOTE "* Step 03 of 03 - End of Job Processing"
:Eoj
     if  "%%" == "0"  goto :EojAok
     goto :EojNok
:EojAok
     call SimoNOTE "* DataMake SYSOUT.....%SYSOUT%"
     call SimoNOTE "* DataMake SYSLUSER...%SYSLUSER%"
     call SimoNOTE "* Finished CmdName %CmdName%, Job Status is %JobStatus% "
     goto :End
:EojNok
     call SimoNOTE "* DataMake SYSOUT.....%SYSOUT%"
     call SimoNOTE "* ABENDING CmdName %CmdName%, Job Status is %JobStatus% "
:End
rem  *
     call SimoNOTE "* Conclude Data Set Compare Status is  %ERRORLEVELTWO% "
     if not "SIMOGENS" == "BATCH" pause

Table of Contents Previous Section Next Section Review the Results, Equal

The following shows the output report that is posted when the content of the files are equal.

This is an example of the Data Compare when the content of the files are equal

* NUMXVLC7 Logical Comparison for NUMXVL01    v18.06.01   helpdesk@simotime.com
* NUMXVLC7 This Data File Compare Member was generated by SimoTime Technologies
* NUMXVLC7 Compiled for an ASCII environment...
* NUMXVLC7 Key control is NOT enabled...
* SIMOL32K SYSLOG-MODE is SIMOL32K and HTML
* SIMOL32K SYSOUT-MODE is ENABLED  and TEXT
* SIMOL32K SYSCON-MODE is ENABLED  and TEXT
* SIMOL32K *******************************************************************************
* SIMOL32K * NUMXVLC7 Logical Comparison for NUMXVL01    v18.06.01   helpdesk@simotime.com
* SIMOL32K * NUMXVLC7 This Data File Compare Member was generated by SimoTime Technologies
* SIMOL32K *******************************************************************************
* SIMOL32K Starting  - Logical Comparison for NUMXVL01             http://www.SimoTime.com
* SIMOL32K *******************************************************************************
* SIMOL32K Conclude  - Logical Comparison for NUMXVL01
* SIMOL32K 000000004 - Record count for SYSUT1
* SIMOL32K 000000004 - Record count for SYSUT2
* SIMOL32K 000000000 - NOT Equal count for compare is ZERO
* SIMOL32K 000000004 - Number of matching record pairs for Compare Task
* SIMOL32K Finished  - Logical Comparison for NUMXVL01             http://www.SimoTime.com
* NUMXVLC7 A Data File Compare Program generated by using SimoTime Technologies
* NUMXVLC7 Please send all comments or suggestions to the helpdesk@simotime.com

Table of Contents Previous Section Next Section Review the Results, NOT Equal

The following shows the output report that is posted when a NOT Equal condition is encountered.

This is an example of the Data Compare when a NOT Equal condition is encountered.

The following describes the content of each of the five lines of Hex-Dump information.
The 1st line is the possible ASCII character or symbol.
The 2nd line is the high-order nibble of the byte for the Hex-dump.
The 3rd line is the low-order nibble of the byte for the Hex-dump.
The 4th line is the possible EBCDIC character or symbol.
The 5th line is the EQUAL (=), NOT Equal (#) or Not Compared (-) indicator.

*******************************************************************************
* NUMXVLC7 Logical Comparison for NUMXVL01    v18.06.01   helpdesk@simotime.com
* NUMXVLC7 This Data File Compare Member was generated by SimoTime Technologies
*******************************************************************************
Starting  - Logical Comparison for NUMXVL01             http://www.SimoTime.com
*
....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80....:...90....:..100....:..110....:..120....:..130....:..140....:..150....:..160....:..170....:..180....:..190....:..200....:..210....:..220....:..230....:..240....:..250....:..260....:..270....:..280....:..290....:..300....:..310....:..320....:..330....:..340....:..350....:..360....:..370....:..380....:..390....:..400....:..410....:..420....:..430....:..440....:..450....:..460....:..470....:..480....:..490....:..500....:..510....:..520....:..530....:..540....:..550....:..560....:..570....:..580....:..590....:..600....:..610....:..620....:..630....:..640....:..650....:..660....:..670....:..680....:..690....:..700....:..710....:..720....:..730....:..740....:..750....:..760....:..770....:..780....:..790....:..800....:..810....:..820....:..830....:..840....:..850....:..860....:..870....:..880....:..890....:..900....:..910....:..920....:..930....:..940....:..950....:..960....:..970....:..980....:..990....:.1000....:.1010....:.1020....
SYSUT1....000000003(00001:00080) COMPARISON  LOGICAL
ZDU_5_0 00123ZDS_5_0 0012sPKU_5_0 ..?PKS_5_0 ..=BNU_5_0 ...{BNS_5_0 ÿÿÿ.FILLER                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
54553532333335455353233337545535320135455353201344553532000744553532FFF84444452222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
A45F5F0000123A43F5F00001230B5F5F0003F0B3F5F0002D2E5F5F00000B2E3F5F00FFF569CC520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
!àí¬.¬.€.....!àë¬.¬.€....Ë&.í¬.¬.€...&.ë¬.¬.€...â+í¬.¬.€...#â+ë¬.¬.€ŸŸŸeãñ<<áꀀ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
===================================#============================================--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SYSUT2....000000003(00001:00080) COMPARISON  LOGICAL
éÄämõm.@..ñòóéÄâmõm.@..ñòÓ.Òämõm.@..?.Òâmõm.@..=ÂÕämõm.@...{ÂÕâmõm.@ÿÿÿ.ÆÉÓÓÅÙ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ECE6F6F4FFFFFECE6F6F4FFFFDDDE6F6F4013DDE6F6F4013CDE6F6F40007CDE6F6F4FFF8CCDDCD4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
944D5D0000123942D5D0000123724D5D0002F722D5D0002D254D5D00000B252D5D00FFF56933590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
ZDU_5_0 00123ZDS_5_0 0012LPKU_5_0 ...PKS_5_0 ...BNU_5_0 ...#BNS_5_0 ŸŸŸeFILLER                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
===================================#============================================--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*******************************************************************************
Conclude  - Logical Comparison for NUMXVL01
000000004 - Record count for SYSUT1
000000004 - Record count for SYSUT2
000000001 - NOT Equal count for compare of existing records
000000003 - Number of matching record pairs for Compare Task
ABENDING  - Logical Comparison for NUMXVL01             http://www.SimoTime.com

Table of Contents Previous Section Next Section Technical Details

This section provides additional technical details about the modules that are included in the batch job example.

Table of Contents Previous Section Next Section Ancillary Functions

The following items are referenced by this set of programs. Their creation and support are described in the linked documents.

Table of Contents Previous Section Next Section Set the Environment

A command file (ENV1BASE.cmd) is called from other command files to set commonly used environment variables. This provides a single point of definition. The following is a listing of the contents of the command file.

@echo OFF
rem  * *******************************************************************
rem  *               ENV1BASE.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   - Provide a single point to set common environment variables.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * Set the commonly used environment variables. This is used to provide
rem  * a single point for managing the commonly used environment variables.
rem  *
     set SimoLIBR=c:\SimoLIBR
     set BASELIB1=c:\SIMOSAM1\DEVL
     set BASELIB8=c:\SimoSAM8
     set BaseWIP1=c:\SimoSAM1\WIP1
     set DATAZERO=c:\SIMODATA\DEVL\DATA\ZERO
     set BASEAPP=%BaseLib1%
     set BASESYS=%BaseLib1%\SYS1
     set BASECAT=%BaseLib1%\DATA
     set UMAPALIB=%BASECAT%\ASC1
     set UMAPELIB=%BASECAT%\EBC1
     set SYSLOG=%BASESYS%\LOGS\SYSLOG_USER.DAT
     set SYSOUT=%BASEAPP%\LOGS\SYSOUT_SIMSAM01.txt
     set SLZMSG=%BASEAPP%\LOGS\SLZMSG_USER.TXT
     set PostNOTE=%BASEAPP%\LOGS\JOBLOG_SIMONOTE.TXT
     set SimoNOTE=%BASEAPP%\LOGS\JOBLOG_SIMONOTE.txt
     call SIMONOTE "* SIMONOTE Job Log File is %SIMONOTE% "
rem  *
     set MQBASE=C:\Program Files\IBM\WebSphere MQ
rem  *
rem  * Set the location for the Apache-Tomcat Server...
     set CATALINA_HOME=C:\APACHETC\apache-tomcat-7.0.52
rem  *
rem  * Set the Environment for the Java Environment...
     set JAVABASE=C:\Program Files (x86)\Java\jdk1.8.0_112
     set JAVASDK="%JAVABASE%\bin"
     set JAVA_HOME=%JAVABASE%
     set JRE_HOME=%JAVABASE%
rem  *
rem  * Set the environment for the Micro Focus technology...
     set MIFOEDEV=C:\Program Files (x86)\Micro Focus\Enterprise Developer
     set MIFOVCBL=C:\Program Files (x86)\Micro Focus\Visual COBOL
     set MIFOESTU=C:\Program Files (x86)\Micro Focus\Studio Enterprise Edition 6.0
     set MIFOEMFE="C:\Program Files (x86)\Micro Focus\Mainframe Express"
rem  *
rem  * Large file support, performance tuning and record locking of the File Handler
     set EXTFH=%BASESYS%\CONFIG\EXTFHBIG.CFG
rem  *
rem  * For IMS Support
     set ES_IMSLIB=%BASEAPP%\IMSLIB
     set ES_ACBLIB=%BASEAPP%\IMSLIB
rem  *
rem  * EZASOKETS Check EZASOKETS Enabled box or set ES_EZASOKET_SUPPORT=YES
     set EZACONFG=BASESYS1\CONFIG\EZACONFG.dat
rem  *
rem  * Resource Allocation and Performance for SORT and non-Relational Data
rem  set MFJSENGINE=SYNCSORT
     set SORTSCHEME=1
     set SORTSPACE=750000000
     set TMP=C:\SORTWORK
rem  *
     set ES_ALLOC_OVERRIDE=%BASESYS%\CONFIG\CATMAPA1.cfg
rem  * For CORE_ON_ERROR function, ABEND Dump
rem  *     set COBCONFIG_=%BASESYS%\CONFIG\diagnose.cfg
rem  *
rem  * Consolidated Trace Facility (CTF)
rem  *     set MFTRACE_CONFIG=%BASESYS%\CONFIG\ctf.cfg
rem  *     set MFTRACE_LOGS=c:\ctflogs
rem  *
rem  * For Job Restart, ABEND Recovery
     set MF_UCC11=Y
     set ES_JES_RESTART=Y
rem  *
rem  * Set environment for MFBSI (Micro Focus Batch Scheduling Interface)
     set ES_EMP_EXIT_1=mfbsiemx
     set MFBSI_DIR=%BASESYS%\LOGS\%JESSERVERNAME%
     set MFBSIEOP_CMD=ENABLE
     set MFBSIEOP_CSV=ENABLE
     set MFBSIEOP_HTM=ENABLE
     set MFBSIEOP_XML=ENABLE
rem  *
rem  * Set Behavior and Trace Flags for GETJOBDD
rem  *   Position=12345678/12345678
     set JDDFLAGS=nnnWnnnn/YYnnnnnn
rem  *
     set MAINFRAME_FLOATING_POINT=true
     set COBIDY=%BASEAPP%\COBIDY
     set COBPATH=.;%BASEAPP%\LOADLIB;%BASESYS%\LOADLIB;%SimoLIBR%
     set LIBPATH=.;%BASEAPP%\LOADLIB;%BASESYS%\LOADLIB;%SimoLIBR%
     set TXDIR=%BASESYS%\LOADLIB;%MIFOBASE%
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%
rem  *
rem  * If not already set then set the PATH for Micro Focus Directories
     if "%SIMOPATH%" == "Y" goto JUMPPATH
     if "%MIFOSYS1%" == "EDEV" goto JUMPEDEV
     if "%MIFOSYS1%" == "VCBL" goto JUMPVCBL
     if "%MIFOSYS1%" == "ESTU" goto JUMPESTU
     if "%MIFOSYS1%" == "EMFE" goto JUMPEMFE
:JUMPEDEV
     set path=%BASESYS%\LOADLIB;%MIFOEDEV%\bin;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOEDEV%\CPYLIB
     set MIFOBASE=%MIFOEDEV%
     goto JUMPPATH
:JUMPVCBL
     set path=%MIFOVCBL%\bin;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set MIFOBASE=%MIFOVCBL%
     goto JUMPPATH
:JUMPESTU
     set MIFOBASE=%MIFOESTU%\Base
     set MIFOBIN=%MIFOBASE%\bin
     set path=%BASESYS%\LOADLIB;%MIFOBASE%;%MIFOBIN%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOBASE%\SOURCE
     goto JUMPPATH
:JUMPEMFE
     set MIFOBASE=%MIFOEMFE%\Base
     set MIFOBIN=%MIFOBASE%\bin
     set path=%BASESYS%\LOADLIB;%MIFOBASE%;%MIFOBIN%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOBASE%\SOURCE
     goto JUMPPATH
rem  *
:JUMPPATH
     set SIMOPATH=Y
rem  *
     set USERCLASS=%BASELIB1%\LOADLIB
     set CLASSPATH=.
     set CLASSPATH=%CLASSPATH%;%JAVABASE%
     set CLASSPATH=%CLASSPATH%;%JAVABASE%\lib
     set CLASSPATH=%CLASSPATH%;\%USERCLASS%\simpacks
     set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\simotcat\WEB-INF\classes
     set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\simotcat\WEB-INF\classes\simpacks
     if "%MIFOSYS1%" == "ESTU" set CLASSPATH=%CLASSPATH%;%MIFOBIN%
     if "%MIFOSYS1%" == "EDEV" set CLASSPATH=%CLASSPATH%;%MIFOEDEV%
     if "%MIFOSYS1%" == "VCBL" set CLASSPATH=%CLASSPATH%;%MIFOVCBL%
     if "%MIFOSYS1%" == "VCBL" set CLASSPATH=%CLASSPATH%;%MIFOVCBL%\mfcobol.jar
rem  *
     set JobStatus=0000
     call SimoNOTE "* Settings CmdName ENV1BASE.cmd, Version 18.09.15, %MIFOSYS1%"
     call SimoNOTE "* BaseAPP ..... %BASEAPP%"
rem *      call SimoNOTE "* MFBSIDIR .... %MFBSI_DIR% "
     call SimoNOTE "* MIFOSYS1 is %MIFOSYS1% "
     call SimoNOTE "* MIFOBASE is %MIFOBASE% "
     call SimoNOTE "* SIMOLIBR is %SIMOLIBR% "

Table of Contents Previous Section Next Section Display and Log Messages

The following (SIMONOTE.cmd) is a listing of the contents of the SIMONOTE.CMD command file. The command is used to provide a consistent process for logging and displaying messages.

@echo OFF
rem  * *******************************************************************
rem  *               SIMONOTE.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    - Display message on screen and write to a log file.
rem  * Author  - SimoTime Technologies
rem  *
rem  * This script may be called from other scripts and expects a single
rem  * parameter enclosed in double quotes. The double quotes will be
rem  * removed. Before writing to the log file a date and time stamp
rem  * will be inserted in front of the message text.
rem  *
rem  * Note: The tilde (~) removes leading/trailing double-quotes.
rem  *
if "%SimoNOTE%" == "" set SimoNOTE=c:\SimoLIBR\LOGS\SimoTime.LOG
echo %date% %time% %~1>> %SimoNOTE%
echo %~1

Table of Contents Previous Section Next Section Summary

This document will focus on the task of generating COBOL programs that will compare the content of two data files on a record by record basis. The generation phase will require a Windows system. The generated source code may be compiled and executed on a system of choice. This document may be used to assist as a tutorial for new assembler programmers or as a quick reference for experienced programmers. The samples focus on the coding techniques of the individual functions. As always, it is the programmer's responsibility to thoroughly test all programs.

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 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.

Link to Internet   Link to Server   Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.

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.

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 copyrighted and maintained by SimoTime Technologies.

If you have any questions, suggestions, comments or feedback please call at 1 415 827-7045 or send an e-mail to: helpdesk@simotime.com

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 at 1 415 827-7045 or send an e-mail to: helpdesk@simotime.com

Also, check the web site at http://www.simotime.com


Return-to-Top
Compare two Data Files
Copyright © 1987-2019
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com