Data File Compare Report Files with 133 Byte Records |
![]() |
The SimoTime Home Page |
The 1st section Primary Functions of this document will focus on doing an actual compare of two sequential files containing report information is a print-oriented format. The 2nd section Secondary Functions will focus on the preparation tasks required prior to doing file compare. The 3rd section Ancillary Functions will describe some of the supporting tasks (such as creating test files) that are required.
This example will use IEBGENER or the Windows "echo" function to create the sequential files to be used for testing. The files will be used to demonstrate the capabilities of the data file compare processes and some of the requirements that are unique to print-oriented files. The first two files contain the same record content and produce an equal compare result. A third file has a record with different content and the compare process will identify the difference.
This example includes JCL Members, Windows CMD Files and COBOL programs. In the world of programming there are many ways to solve a problem. This suite of programs is provided as one of the many possible solutions for comparing data files. The files used in this suite of sample programs use fixed length records of eighty-bytes. When the files are compared and if a difference is found the COBOL compare program will call SIMOHEX4.CBL and SIMOLOGS.CBL. These programs and their associated copy files are part of the SIMOLIBR package. Refer to the Downloads and Links to Similar Pages section of this document for additional information.
Many companies are looking for ways to compare data files using a mainframe system and a distibuted system (i.e. Linux, UNIX and/or Windows or "LUW") running Micro Focus sub-systems. This utility program (UTCOMPRT) is intended to assist in these efforts. The UTCOMPRT program runs in the Windows environment and generates comparision programs (COBOL Source Code) that may be compiled and executed on a distributed LUW platform with Micro Focus.
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-2016
SimoTime Technologies
All Rights Reserved
This section will focus on the items (process and procedures) that do the actual data file comparison. A second group of items will be used to generate the comparison program and prepare the environment for the compare tasks. These secondary command files and programs will be described in the Secondary Functions section of this document.
The file compare processes will use a set of data files that have a report-oriented structure. The test files contain two record types. The first record type contains page header information with a date and time stamp. The second record type contains user information.
This section will focus on the JCL Members that execute the file compare processes. The first JCL Member will compare two files that are logically identical. The second JCL Member will compare two files that have a difference embedded within the files. The Data File Compare program will find the difference and produce a NOT-Equal result. The third JCL Member will compare two files that have different record counts. The Data File Compare program will identify the difference and produce a NOT-Equal result with record counts.
This JCL Member (R133BPJ1.jcl) will compare two sequential files that are identical. The job execution will result in a zero return code and display the record counts to the SYSOUT device.
//R133BPJ1 JOB (SIMOTIME),'DATA FILE COMPARE',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* R133BPJ1.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Compare two data files. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Technologies. //* //* ************ //* * R133BPJ1 * //* ********jcl* //* * //* ************ ************ ************ //* * REPORT01 *-----* R133BPC1 *-----* SYSOUT * //* ********dat* * ********cbl* * ************ //* * * * //* ************ * * * ************ //* * REPORT02 *--* * *--* SYSLOG * //* ********dat* * *******vseq* //* * //* ************ //* * EOJ * //* ************ //* //* ******************************************************************* //* Step 1 of 1, Compare two data files, expect an EQUAL result... //* //COMPARE1 EXEC PGM=R133BPC1 //STEPLIB DD DSN=SIMOTIME.PDS.LOADLIB,DISP=SHR //REPORT01 DD DSN=SIMOTIME.DATA.RPT133D1,DISP=SHR //REPORT02 DD DSN=SIMOTIME.DATA.RPT133D2,DISP=SHR //SYSLOG DD DSN=SIMOTIME.SYSLOG.COMPARE,DISP=SHR //SYSOUT DD SYSOUT=* //
This JCL Member (R133BPJ2.jcl) will compare two files that have a difference embedded within the files. The Data File Compare programs will find the difference and produce a NOT-Equal result. The record counts and the difference will be displayed to the SYSOUT device.
//R133BPJ2 JOB (SIMOTIME),'DATA FILE COMPARE',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* R133BPJ2.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Compare two data files. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Technologies. //* //* ************ //* * R133BPJ2 * //* ********jcl* //* * //* ************ ************ ************ //* * REPORT01 *-----* R133BPC1 *-----* SYSOUT * //* ********dat* * ********cbl* * ************ //* * * * //* ************ * * * ************ //* * REPORT02 *--* * *--* SYSLOG * //* ********dat* * *******vseq* //* * //* ************ //* * EOJ * //* ************ //* //* ******************************************************************* //* Step 1 of 1, Compare two data files, expect an EQUAL result... //* //COMPARE1 EXEC PGM=R133BPC1 //STEPLIB DD DSN=SIMOTIME.PDS.LOADLIB,DISP=SHR //REPORT01 DD DSN=SIMOTIME.DATA.RPT133D1,DISP=SHR //REPORT02 DD DSN=SIMOTIME.DATA.RPT133D4,DISP=SHR //SYSLOG DD DSN=SIMOTIME.SYSLOG.COMPARE,DISP=SHR //SYSOUT DD SYSOUT=* //
This JCL Member File (R133BPJ3.jcl) will compare two sequential files that have different record counts. The Data File Compare program will identify the difference in record counts and produce a NOT-Equal or non-Zero result. The record counts and the difference will be displayed to the SYSOUT device.
//R133BPJ3 JOB (SIMOTIME),'DATA FILE COMPARE',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* R133BPJ3.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Compare two data files. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Technologies. //* //* ************ //* * R133BPJ3 * //* ********jcl* //* * //* ************ ************ ************ //* * REPORT01 *-----* R133BPC1 *-----* SYSOUT * //* ********dat* * ********cbl* * ************ //* * * * //* ************ * * * ************ //* * REPORT02 *--* * *--* SYSLOG * //* ********dat* * *******vseq* //* * //* ************ //* * EOJ * //* ************ //* //* ******************************************************************* //* Step 1 of 1, Compare two data files, expect an EQUAL result... //* //COMPARE1 EXEC PGM=R133BPC1 //STEPLIB DD DSN=SIMOTIME.PDS.LOADLIB,DISP=SHR //REPORT01 DD DSN=SIMOTIME.DATA.RPT133D1,DISP=SHR //REPORT02 DD DSN=SIMOTIME.DATA.RPT133D3,DISP=SHR //SYSLOG DD DSN=SIMOTIME.SYSLOG.COMPARE,DISP=SHR //SYSOUT DD SYSOUT=* //
This section will focus on three CMD Files that execute a simple file compare process. The first CMD File will compare to files that are logically identical. The second CMD File will compare two files that have a difference embedded within the files. The Data File Compare program will find the difference and produce a NOT-Equal result. The third CMD File will compare two files that have different record counts. The Data File Compare program will identify the difference and produce a NOT-Equal result with record counts.
This CMD File (R133BPW1.cmd) will compare two sequential files. The user data is identical. The date and time stamps in the header records are not equal in value. The compare program uses the OMIT/Bypass functions to bypass comparing the header records. The job execution will result in a zero return code and display the record counts to the SYSOUT device.
@echo OFF rem * ******************************************************************* rem * R133BPW1.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Compare two sequential files rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * This set of programs will compare two record sequential (RSEQ) rem * files using the conditional bypass of records to be compared. rem * The RSEQ files is identical. rem * Therefore, an Equal status will be posted with a normal EOJ. rem * rem * ************ rem * * R133BPW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ ************ rem * * RPT133D1 *-----* R133BPC1 *-----* SYSLOG * rem * *******rseq* * ********cbl* ************ rem * * * rem * ************ * * rem * * RPT133D2 *--* * rem * *******rseq* * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Step 1 Delete any previously created file... rem * set CmdName=R133BPW1 call ..\Env1BASE %CmdName% set JobStatus=0000 if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" :PrepareQSAM call SimoNOTE "StepInfo Prepare the File Name Mapping" set REPORT01=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D1.DAT set REPORT02=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D2.DAT call SimoNOTE "SYSUT1 is %REPORT01%" call SimoNOTE "SYSUT2 is %REPORT02%" rem * rem * ******************************************************************* rem * Step 2 Compare the two files... rem * :ExecuteCompareRoutine call SimoNOTE "StepInfo Execute the Compare Program" run R133BPC1 if not "%ERRORLEVEL%" == "0" set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "Compare-One is %REPORT01%" call SimoNOTE "Compare-Two is %REPORT02%" rem * rem * rem * ******************************************************************* :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 "SIMOGENS" == "BATCH" call SYSLOGW1 if not "SIMOGENS" == "BATCH" pause
This CMD File (R133BPW2.cmd) will compare two sequential files that have a difference embedded within the files. The Data File Compare program will find the difference and produce a NOT-Equal or non-Zero result. The record counts and the difference will be displayed to the SYSOUT device.
@echo OFF rem * ******************************************************************* rem * R133BPW2.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Compare two sequential files rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * This set of programs will compare two record sequential (RSEQ) rem * files using the conditional bypass of records to be compared. rem * One of the record sets in the RSEQ files is different. rem * Therefore, a NOT-Equal status will be posted with an ABEND. rem * rem * ************ rem * * R133BPW2 * rem * ********cmd* rem * * rem * * rem * ************ ************ ************ rem * * RPT133D1 *-----* R133BPC1 *-----* SYSLOG * rem * *******rseq* * ********cbl* ************ rem * * * rem * ************ * * rem * * RPT133D2 *--* * rem * *******rseq* * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Step 1 Delete any previously created file... rem * set CmdName=R133BPW2 call ..\Env1BASE %CmdName% set JobStatus=0000 if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" :PrepareQSAM call SimoNOTE "StepInfo Prepare the File Name Mapping" set REPORT01=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D1.DAT set REPORT02=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D4.DAT call SimoNOTE "SYSUT1 is %REPORT01%" call SimoNOTE "SYSUT2 is %REPORT02%" rem * rem * ******************************************************************* rem * Step 2 Compare the two files... rem * :ExecuteCompareRoutine call SimoNOTE "StepInfo Execute the Compare Program" run R133BPC1 if not "%ERRORLEVEL%" == "0" set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "Compare-One is %REPORT01%" call SimoNOTE "Compare-Two is %REPORT02%" rem * rem * rem * ******************************************************************* :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 "SIMOGENS" == "BATCH" call SYSLOGW1 if not "SIMOGENS" == "BATCH" pause
This CMD File (R133BPW3.cmd) will compare two sequential files that have different record counts. The Data File Compare program will identify the difference in record counts and produce a NOT-Equal or non-Zero result. The record counts and the difference will be displayed to the SYSOUT device.
@echo OFF rem * ******************************************************************* rem * R133BPW3.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Compare two sequential files rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * This set of programs will compare two record sequential (RSEQ) rem * files using the conditional bypass of records to be compared. rem * One of the RSEQ files is truncated (i.e. contains fewer records). rem * Therefore, a NOT-Equal status will be posted with an ABEND. rem * rem * ************ rem * * R133BPW3 * rem * ********cmd* rem * * rem * * rem * ************ ************ ************ rem * * REPORT01 *--*--* R133BPC1 *--*--* SYSLOG * rem * *******rseq* * ********cbl* * ************ rem * * * * rem * ************ * * * ************ rem * * REPORT02 *--* * *--* SYSOUT * rem * *******rseq* * ************ rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Step 1 Delete any previously created file... rem * set CmdName=R133BPW3 call ..\Env1BASE %CmdName% set JobStatus=0000 if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" :PrepareQSAM call SimoNOTE "StepInfo Prepare the File Name Mapping" set REPORT01=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D1.DAT set REPORT02=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D3.DAT call SimoNOTE "SYSUT1 is %REPORT01%" call SimoNOTE "SYSUT2 is %REPORT02%" rem * rem * ******************************************************************* rem * Step 2 Compare the two files... rem * :ExecuteCompareRoutine call SimoNOTE "StepInfo Execute the Compare Program" run R133BPC1 if not "%ERRORLEVEL%" == "0" set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "Compare-One is %REPORT01%" call SimoNOTE "Compare-Two is %REPORT02%" rem * rem * rem * ******************************************************************* :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 "SIMOGENS" == "BATCH" call SYSLOGW1 if not "SIMOGENS" == "BATCH" pause
WIP2
This section will focus on the items (process and programs) that do the generation and compilation of a data file compare programs.
The SimoTime Utility Program for Data File Comparison runs on a Windows System with Micro Focus and will generate the COBOL source code for a program that will do a compare of two data files. The generation of the COBOL source code requires a Windows System with Micro Focus Studio or Micro Focus Server, version 6.0 or later. The generated COBOL source code may be compiled and executed on the following systems and will do the actual comparison of the two data files.
| ||||||||||
System Possibilities for Generated Data File Comparison Programs |
Explore How to Generate a Data File Compare, Validate or Hex-Dump Program using simple specification statements in a Process Control File (PCF). This link to the User Guide includes the information necessary to create a Process Control File and generate the COBOL programs that will do a data file compare, accumulate summary totals with a record count or produce a Hex-Dump of records in a VSAM, KSDS based on a list of user-defined keys. The User Guide contains a list of the PCF statements that are used for the data file compare, validate or dump process.
The following is the Process Control File (CPR13301.pcf) that will define the process and parameters required for generating a COBOL program that will compare two record sequential file (RSEQ) containing 133-byte, fixed length records.
*********************************************************************** * R133BP01.pcf - a Process Control File * * SimoTime Program Generation Technologies * * (C) Copyright 1987-2016 All Rights Reserved * * Web Site URL: http://www.simotime.com * * e-mail: helpdesk@simotime.com * *********************************************************************** * Generate a file compare program for 133 byte print reports. * &SIMOPREP call ../Env1BASE &USERPREP call USERCOMP &FUNCTION COMPARE &CONFORM IBM *HEAD34 ....:....1....:....2....:....3.... &HEAD34 Compare-133, 2-133 and OMIT-Bypass &progid R133BPC1 &SYSUT1 name=REPORT01 org=Sequential recfm=FIXED rlen=133 &SYSUT2 name=REPORT02 org=Sequential recfm=FIXED rlen=133 * &UT1OMIT if pos 2 len 132 EQ SPACES &UT1OMIT if pos 1 len 1 EQ '1' bypass record +1 &UT2OMIT if pos 2 len 132 EQ SPACES &UT2OMIT if pos 1 len 1 EQ '1' bypass record +1 &COMPARE SYSUT1 pos 2 len 132 SYSUT2 pos 2 len 132 * &DELTAMAX 2 EOF &IFNECODE 0016 &DFORMAT ASC HEX EBC &DISPLAY SYSOUT &SYSLOG ENABLE * &END
If a NOT-Equal condition occurs during the compare process the out may be written to SYSOUT or a User-Defined log file. If the SYSLOG function is enabled then a SYSLOG file must exist prior to starting the compare process. The following two sub-sections of this document will describe and demonstrate the process to create (i.e. Delete and Define) a new SYSLOG file. The following is the Process Control File (CPR13301.pcf) that will define the process and parameters required for generating a COBOL program that will compare two record sequential file (RSEQ) containing 133-byte, fixed length records.
This JCL Member (SYSLOGV8.jcl) will Delete and Define a new SYSLOG file for a compare process that has the SYSLOG function enabled.
//SYSLOGV8 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1 //* ******************************************************************* //* SYSLOGV8.jcl - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Create a new SYSLOG file. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* ******************************************************************* //* Delete and Define a New SYSLOG file... //* // SET DDSYSLOG=SIMOTIME.SYSLOG.COMPARE //CRTLOGS1 EXEC SYSLOGP8 //
This JCL Procedure (SYSLOGP8.jcl) is used to do the actual Delete and Define of a new SYSLOG file for a compare process that has the SYSLOG function enabled.
//* ******************************************************************* //* SYSLOGP8.prc - a JCL Procedure Batch Job Processing * //* This JCL Procedure is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Subject: Create a Sequential File with Variable Length Records //* Author: SimoTime Technologies //* Date: January 1,1998 //* //* This PROC needs the &DDSYSLOG defined by the calling JCL member... //* // SET DDSYSLOG=AAAA.BBBB.CCCC //* // EXEC SYSLOGP8 //* //* The 1st job step (DELETES1) will delete a previously created //* file. //* The 2nd job step (NEWCATS1) will create a new file. //* //* Note: The LRECL is four (4) bytes bigger than the logical record //* that is defined in the program that writes to SYSLOG. This //* allows for the four (4) byte Record Descriptor Word (RDW) //* that is appended to the front of each record. The program //* defines the records as varying in size from 64 to 1,051. //* Note: It is necessary to pre-allocate the SYSLOG file. The program //* that does the actual file compare will do an "OPEN EXTEND". //* If the file is not pre-allocated, an open error will be //* posted and the program will execute but will only display //* truncated information to SYSOUT. //* //********************************************************************* //SYSLOGP8 PROC //* //* ******************************************************************* //* Step 1 of 2, Delete a previously created log file //* //JOBSETUP EXEC PGM=IEFBR14 //SYSUT2 DD DSN=&DDSYSLOG,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=V,LRECL=1055,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Create a new RSEQ file with variable length records //* //NEWCATS1 EXEC PGM=IEFBR14 //SYSOUT DD SYSOUT=* //SYSUT2 DD DSN=&DDSYSLOG, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=V,LRECL=1055,DSORG=PS) //* // PEND //*
This Windows CMD file (SYSLOGW8.cmd) is used to do the actual Delete and Define of a new SYSLOG file for a compare process that has the SYSLOG function enabled.
@echo OFF rem * ******************************************************************* rem * SYSLOGW8.cmd - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Delete and Define a New SYSLOG File. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * This set of programs will run in a Micro Focus Environment rem * rem * ************ rem * * SYSLOGW8 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SYSLOGC8 ******* SYSLOG * rem * ********cbl* *******vrec* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Step 1 of 2, Delete any previously created file... rem * set TskName=SYSLOGW8 call ..\ENV1BASE if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%TskName%" call SimoNOTE "Starting TskName %TskName%" :DeleteQSAM call SimoNOTE "StepInfo Delete previously created file" if exist %SYSLOG% del %SYSLOG% rem * rem * ******************************************************************* rem * Step 2 of 2, Define a New SYSLOG File... rem * call SimoNOTE "SYSLOG is %SYSLOG%" run SYSLOGC8 rem * if exist %SYSLOG% goto :EojAok set JobStatus=0020 goto :EojNok :EojAok call SimoNOTE "Finished JobName %TskName%" goto :End :EojNok call SimoNOTE "ABENDING JobName %TskName%" :End
This section provides additional detail about the CMD files and programs that are used to support this set of sample programs.
Explore How to use Common or Shared Routines that perform repetitive tasks in a consistent manner. This link will provide information about setting common environment variables and many other utilitarian tasks.
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-2015 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 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 Log File is %SIMONOTE% " rem * set CATALINA_HOME=C:\APACHETC\apache-tomcat-7.0.52 set JAVABASE=C:\Program Files (x86)\Java\jdk1.7.0_51 set JAVASDK="%JAVABASE%\bin" set JAVA_HOME=%JAVABASE% set JRE_HOME=%JAVABASE% rem * set MIFOEDEV=C:\Program Files (x86)\Micro Focus\Enterprise Developer\bin set MIFOBASE=C:\Program Files (x86)\Micro Focus\Studio Enterprise Edition 6.0\Base set MIFOBIN=%MIFOBASE%\bin set MIFOVCBL=C:\Program Files (x86)\Micro Focus\Visual COBOL\bin rem * Large file support, performance tuning and record locking of the File Handler set EXTFH=%BASESYS%\CONFIG\EXTFHBIG.CFG rem * For IMS Support set ES_IMSLIB=%BASEAPP%\IMSLIB set ES_ACBLIB=%BASEAPP%\IMSLIB 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%;%MIFOBASE%\SOURCE rem * if "%SIMOPATH%" == "Y" goto JUMPPATH if "%MIFOSYS1%" == "ESTU" set path=%BASESYS%\LOADLIB;%MIFOBASE%;%MIFOBIN%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%; if "%MIFOSYS1%" == "EDEV" set path=%BASESYS%\LOADLIB;%MIFOEDEV%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%; if "%MIFOSYS1%" == "VCBL" set path=%MIFOVCBL%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%; :JUMPPATH set SIMOPATH=Y rem * set USERCLASS=%BASELIB1%\LOADLIB set APACHEST=C:\Program Files (x86)\Apache Group\Apache2 set CLASSPATH=. set CLASSPATH=%CLASSPATH%;%JAVABASE% set CLASSPATH=%CLASSPATH%;%JAVABASE%\lib set CLASSPATH=%CLASSPATH%;\%USERCLASS% set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\ap01jv01\WEB-INF\classes set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\ap01jv01\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 14.03.28, %MIFOSYS1%" call SimoNOTE "* BaseAPP ..... %BASEAPP%" rem * call SimoNOTE "* MFBSIDIR .... %MFBSI_DIR% " call SimoNOTE "* MFTRACE_LOGS Folder is %MFTRACE_LOGS% "
A command file (SIMONOTE.cmd) is called from other command files to display and write messages to a log file. The following is a listing of the contents of the command file.
@echo OFF rem * ******************************************************************* rem * SIMONOTE.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 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
This example uses three data files to demonstrate the basic functions of the data file compare process. the first two files are sequential files containing three records of identical content. The third file is different from the first two files and is used to shows the results when a NOT-Equal condition occurs.
This JCL Member (CPRS80J8.jcl) will create four tet files that will be used by the Data File Compare program that was generated.
//CPRS80J8 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1 //* ******************************************************************* //* CPRS80J8.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2016 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Create Sequential Data Sets on disk using IEBGENER. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The first job step (QSAMDELT) will delete any previously created //* file. The second job step (QCRTDIN1) will create a new file. //* //* The Steps 2-4 will create new sequential files. //* //* The last step will create a SYSLOG file. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Mainframe Express. //* //* ******************************************************************* //* Step 1 of 5, Delete any previously created files... //* //QSAMDELT EXEC PGM=IEFBR14 //CRTRS801 DD DSN=SIMOTIME.DATA.RS80TT01,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //CRTRS802 DD DSN=SIMOTIME.DATA.RS80TT02,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //CRTRS803 DD DSN=SIMOTIME.DATA.RS80TT03,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSLOG DD DSN=SIMOTIME.SYSLOG.CPRS80D1,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 5, Create and populate a new QSAM file... //* This step will create a sequential file with three records. The //* length of the records is 80 bytes. //* //CRTRS801 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * Record 001, Text String 001... Record 002, Text String 002... Record 003, Text String 003... /* //SYSUT2 DD DSN=SIMOTIME.DATA.RS80TT01, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 3 of 5, Create and populate a new QSAM file... //* This step will create a sequential file with three records. The //* length of the records is 80 bytes. //* This file contains the same records as the file created in the //* preceding job step. //* //CRTRS802 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * Record 001, Text String 001... Record 002, Text String 002... Record 003, Text String 003... /* //SYSUT2 DD DSN=SIMOTIME.DATA.RS80TT02, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 4 of 5, Create and populate a new QSAM file... //* This step will create a sequential file with three records. The //* length of the records is 80 bytes. //* This file contains similar records as the file created in the //* preceding job step. However, the content of the second record //* contains additional text. //* //CRTRS803 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * Record 001, Text String 001... Record 002, Text String 002... Catch me... Record 003, Text String 003... /* //SYSUT2 DD DSN=SIMOTIME.DATA.RS80TT03, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 5 of 5, Create a new RSEQ file with variable length records //* //QCRTDIN1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * /* //SYSUT2 DD DSN=SIMOTIME.SYSLOG.CPRS80D1, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=V,LRECL=1055,DSORG=PS) //
This Windows CMD file (CRT133W8.cmd) will call four command files to create the test files.
@echo OFF rem * ******************************************************************* rem * CRT133W8.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Create 133 byte print files for testing. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will create the test files containing report-oriented data. rem * The test files will be used to show some of the advanced functions rem * of the SimoTime Compare technology. rem * rem * ******************************************************************* rem * Prepare the environment... set JobName=CRT133W8 call ..\Env1BASE %JobName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG set SIMOGENS=BATCH rem * call SimoNOTE "*******************************************************%JobName%" call SimoNOTE "Starting JobName %JobName% Date and Time stamps are different" call SimoNOTE "Continue JobName %JobName% Create a Baseline test file" call CRT133W1 call SimoNOTE "Continue JobName %JobName% Create a copy of the Baseline file" call CRT133W2 call SimoNOTE "Continue JobName %JobName% Create a truncated copy of the Baseline file" call CRT133W3 call SimoNOTE "Continue JobName %JobName% Create a modified copy of the Baseline file" call CRT133W4 call SimoNOTE "Finished JobName %JobName% %JobName%" :End pause
This Windows CMD file (CRT133W1.cmd) will use the Windows ECHO Command to create the baseline ASCII/Text (or Line Sequential) file. The ASCII/Text file will then be converted to a sequential file that will be used to test the Data File Compare program that was generated.
@echo OFF rem * ******************************************************************* rem * CRT133W1.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Create 133 byte print files for testing. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains REPORT rem * information. rem * rem * The job will create three (3) test files containing REPORT-oriented rem * information. rem * rem * ************ rem * * CRT133W1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * echo ******* RPT080T1 * rem * ********win* *******lseq* rem * * rem * ************ ************ ************ rem * * GETLS080 ******* CV80ALAR ******* PUTRS080 * See Note-1 rem * *******lseq* ********cbl* *******rseq* rem * * rem * ************ ************ ************ rem * * RPT080D1 ******* RPT133C8 ******* RPT133D1 * See Note-2 rem * *******lseq* ********cbl* *******rseq* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * Note-1: RPT080T1 will be mapped to GETLS080 rem * Note-1: GETLS080 will be mapped to RPT080D1 rem * rem * ******************************************************************* rem * Prepare the environment... set CmdName=CRT133W1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" rem * rem * ******************************************************************* set RPT080T1=%BaseLib1%\DATA\TXT1\RPT080T1.TXT call SimoNOTE "DataMake %RPT080T1% " rem * ....:....1....:....2....:....3....:....4....:....5....:....6. echo 1Report Identifier Primary Header 2010/01/05>%RPT080T1% echo Page: 0001 Sub-Title Info 12:05:22pm>>%RPT080T1% echo Left Data-01 Center Data 01 Right Data 01>>%RPT080T1% echo Left Data-02 Center Data 02 Right Data 02>>%RPT080T1% echo Left Data-03 Center Data 03 Right Data 03>>%RPT080T1% echo Left Data-04 Center Data 04 Right Data 04>>%RPT080T1% echo Left Data-05 Center Data 05 Right Data 05>>%RPT080T1% echo 1Report Identifier Primary Header 2010/01/05>>%RPT080T1% echo Page: 0002 Sub-Title Info 12:05:22pm>>%RPT080T1% echo Left Data-21 Center Data 21 Right Data 21>>%RPT080T1% echo Left Data-22 Center Data 22 Right Data 22>>%RPT080T1% echo Left Data-23 Center Data 23 Right Data 23>>%RPT080T1% echo Left Data-24 Center Data 24 Right Data 24>>%RPT080T1% echo Left Data-25 Center Data 25 Right Data 25>>%RPT080T1% rem * rem * ******************************************************************* call SimoNOTE "Continue Convert LSEQ to RSEQ 80 Bytes" set GETLS080=%RPT080T1% set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT080D1.DAT call SimoNOTE "DataTake %GETLS080% " call SimoNOTE "DataMake %PUTRS080% " if exist %PUTRS080% del %PUTRS080% run CV80ALAR if not exist %PUTRS080% set JobStatus=0003 if not "%JobStatus%" == "0000" goto EojNok rem * rem * ******************************************************************* call SimoNOTE "Convert RSEQ 80 Bytes to RSEQ 133 bytes report file" set RPT080D1=%PUTRS080% set RPT133D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D1.DAT call SimoNOTE "DataTake %RPT080D1% " call SimoNOTE "DataMake %RPT133D1% " if exist %RPT133D1% del %RPT133D1% run RPT133C8 if exist %RPT133D1% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%" :End if not "%SIMOGENS%" == "BATCH" pause
This Windows CMD file (CRT133W2.cmd) will use the Windows ECHO Command to create the logical copy of the baseline file. The user data will be identical. The date and time stamp in the header records will be different. The ASCII/Text file will then be converted to a sequential file that will be used to test the Data File Compare program that was generated.
@echo OFF rem * ******************************************************************* rem * CRT133W2.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Create 133 byte print files for testing. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will create three (3) test files containing REPORT-oriented rem * information. rem * rem * ************ rem * * CRT133W2 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * echo ******* RPT080T1 * rem * ********win* *******lseq* rem * * rem * ************ ************ ************ rem * * GETLS080 ******* CV80ALAR ******* PUTRS080 * See Note-1 rem * *******lseq* ********cbl* *******rseq* rem * * rem * ************ ************ ************ rem * * RPT080D1 ******* RPT133C8 ******* RPT133D1 * See Note-2 rem * *******lseq* ********cbl* *******rseq* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * Note-1: RPT080T1 will be mapped to GETLS080 rem * Note-1: GETLS080 will be mapped to RPT080D1 rem * rem * ******************************************************************* rem * Prepare the environment... set CmdName=CRT133W2 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" rem * rem * ******************************************************************* set RPT080T1=%BaseLib1%\DATA\TXT1\RPT080T2.TXT call SimoNOTE "DataMake %RPT080T2% " rem * ....:....1....:....2....:....3....:....4....:....5....:....6. echo 1Report Identifier Primary Header 2010/02/14>%RPT080T1% echo Page: 0001 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-01 Center Data 01 Right Data 01>>%RPT080T1% echo Left Data-02 Center Data 02 Right Data 02>>%RPT080T1% echo Left Data-03 Center Data 03 Right Data 03>>%RPT080T1% echo Left Data-04 Center Data 04 Right Data 04>>%RPT080T1% echo Left Data-05 Center Data 05 Right Data 05>>%RPT080T1% echo 1Report Identifier Primary Header 2010/02/14>>%RPT080T1% echo Page: 0002 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-21 Center Data 21 Right Data 21>>%RPT080T1% echo Left Data-22 Center Data 22 Right Data 22>>%RPT080T1% echo Left Data-23 Center Data 23 Right Data 23>>%RPT080T1% echo Left Data-24 Center Data 24 Right Data 24>>%RPT080T1% echo Left Data-25 Center Data 25 Right Data 25>>%RPT080T1% rem * rem * ******************************************************************* call SimoNOTE "Continue Convert LSEQ to RSEQ 80 Bytes" set GETLS080=%RPT080T1% set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT080D2.DAT call SimoNOTE "DataTake %GETLS080% " call SimoNOTE "DataMake %PUTRS080% " if exist %PUTRS080% del %PUTRS080% run CV80ALAR if not exist %PUTRS080% set JobStatus=0003 if not "%JobStatus%" == "0000" goto EojNok rem * rem * ******************************************************************* call SimoNOTE "Convert RSEQ 80 Bytes to RSEQ 133 bytes report file" set RPT080D1=%PUTRS080% set RPT133D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D2.DAT call SimoNOTE "DataTake %RPT080D1% " call SimoNOTE "DataMake %RPT133D1% " if exist %RPT133D1% del %RPT133D1% run RPT133C8 if exist %RPT133D1% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%" :End if not "%SIMOGENS%" == "BATCH" pause
This Windows CMD file (CRT133W3.cmd) will use the Windows ECHO Command to create the truncated copy of the baseline file. The user data in the included dta will be identical. The date and time stamp in the header records will be different. The ASCII/Text file will then be converted to a sequential file that will be used to test the Data File Compare program that was generated.
@echo OFF rem * ******************************************************************* rem * CRT133W3.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Create 133 byte print files for testing. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains REPORT rem * information. rem * rem * The job will create three (3) test files containing REPORT-oriented rem * information. rem * rem * ************ rem * * CRT133W3 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * echo ******* RPT080T1 * rem * ********win* *******lseq* rem * * rem * ************ ************ ************ rem * * GETLS080 ******* CV80ALAR ******* PUTRS080 * See Note-1 rem * *******lseq* ********cbl* *******rseq* rem * * rem * ************ ************ ************ rem * * RPT080D1 ******* RPT133C8 ******* RPT133D1 * See Note-2 rem * *******lseq* ********cbl* *******rseq* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * Note-1: RPT080T1 will be mapped to GETLS080 rem * Note-1: GETLS080 will be mapped to RPT080D1 rem * rem * ******************************************************************* rem * Prepare the environment... set CmdName=CRT133W3 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" rem * rem * ******************************************************************* set RPT080T1=%BaseLib1%\DATA\TXT1\RPT080T3.TXT call SimoNOTE "DataMake %RPT080T1% " rem * ....:....1....:....2....:....3....:....4....:....5....:....6. echo 1Report Identifier Primary Header 2010/02/14>%RPT080T1% echo Page: 0001 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-01 Center Data 01 Right Data 01>>%RPT080T1% echo Left Data-02 Center Data 02 Right Data 02>>%RPT080T1% echo Left Data-03 Center Data 03 Right Data 03>>%RPT080T1% echo Left Data-04 Center Data 04 Right Data 04>>%RPT080T1% echo Left Data-05 Center Data 05 Right Data 05>>%RPT080T1% echo 1Report Identifier Primary Header 2010/02/14>>%RPT080T1% echo Page: 0002 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-21 Center Data 21 Right Data 21>>%RPT080T1% rem * rem * ******************************************************************* call SimoNOTE "Continue Convert LSEQ to RSEQ 80 Bytes" set GETLS080=%RPT080T1% set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT080D3.DAT call SimoNOTE "DataTake %GETLS080% " call SimoNOTE "DataMake %PUTRS080% " if exist %PUTRS080% del %PUTRS080% run CV80ALAR if not exist %PUTRS080% set JobStatus=0003 if not "%JobStatus%" == "0000" goto EojNok rem * rem * ******************************************************************* call SimoNOTE "Convert RSEQ 80 Bytes to RSEQ 133 bytes report file" set RPT080D1=%PUTRS080% set RPT133D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D3.DAT call SimoNOTE "DataTake %RPT080D1% " call SimoNOTE "DataMake %RPT133D1% " if exist %RPT133D1% del %RPT133D1% run RPT133C8 if exist %RPT133D1% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%" :End if not "%SIMOGENS%" == "BATCH" pause
This Windows CMD file (CRT133W4.cmd) will use the Windows ECHO Command to modified copy of the baseline file. The record content will have an embeded difference. The date and time stamp in the header records will be different. The ASCII/Text file will then be converted to a sequential file that will be used to test the Data File Compare program that was generated.
@echo OFF rem * ******************************************************************* rem * CRT133W4.CMD - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2016 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Create 133 byte print files for testing. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will create three (3) test files containing REPORT-oriented rem * information. rem * rem * ************ rem * * CRT133W4 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * echo ******* RPT080T1 * rem * ********win* *******lseq* rem * * rem * ************ ************ ************ rem * * GETLS080 ******* CV80ALAR ******* PUTRS080 * See Note-1 rem * *******lseq* ********cbl* *******rseq* rem * * rem * ************ ************ ************ rem * * RPT080D1 ******* RPT133C8 ******* RPT133D1 * See Note-2 rem * *******lseq* ********cbl* *******rseq* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * Note-1: RPT080T1 will be mapped to GETLS080 rem * Note-1: GETLS080 will be mapped to RPT080D1 rem * rem * ******************************************************************* rem * Prepare the environment... set CmdName=CRT133W4 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" rem * rem * ******************************************************************* set RPT080T1=%BaseLib1%\DATA\TXT1\RPT080T4.TXT call SimoNOTE "DataMake %RPT080T1% " rem * ....:....1....:....2....:....3....:....4....:....5....:....6. echo 1Report Identifier Primary Header 2010/02/14>%RPT080T1% echo Page: 0001 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-01 Center Data 0l Right Data 01>>%RPT080T1% echo Left Data-02 Center Data 02 Right Data 02>>%RPT080T1% echo Left Data-03 Center Data 03 Right Data 03>>%RPT080T1% echo Left Data-04 Center Data 04 Right Data 04>>%RPT080T1% echo Left Data-05 Center Data 05 Right Data 05>>%RPT080T1% echo 1Report Identifier Primary Header 2010/02/14>>%RPT080T1% echo Page: 0002 Sub-Title Info 16:14:44pm>>%RPT080T1% echo Left Data-21 Center Data 21 Right Data 21>>%RPT080T1% echo Left Data-22 Center Data 22 Right Data 22>>%RPT080T1% echo Left Data-23 Center Data 23 Right Data 23>>%RPT080T1% echo Left Data-24 Center Data 24 Right Data 24>>%RPT080T1% echo Left Data-25 Center Data 25 Right Data 25>>%RPT080T1% rem * rem * ******************************************************************* call SimoNOTE "Continue Convert LSEQ to RSEQ 80 Bytes" set GETLS080=%RPT080T1% set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT080D4.DAT call SimoNOTE "DataTake %GETLS080% " call SimoNOTE "DataMake %PUTRS080% " if exist %PUTRS080% del %PUTRS080% run CV80ALAR if not exist %PUTRS080% set JobStatus=0003 if not "%JobStatus%" == "0000" goto EojNok rem * rem * ******************************************************************* call SimoNOTE "Convert RSEQ 80 Bytes to RSEQ 133 bytes report file" set RPT080D1=%PUTRS080% set RPT133D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.RPT133D4.DAT call SimoNOTE "DataTake %RPT080D1% " call SimoNOTE "DataMake %RPT133D1% " if exist %RPT133D1% del %RPT133D1% run RPT133C8 if exist %RPT133D1% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%" :End if not "%SIMOGENS%" == "BATCH" pause
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 document and the links to other documents are intended to provide a choice of alternatives.
Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Enterprises. 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 Enterprises.
SimoTime Enterprises 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 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, 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 the Principles of Data File Validation. This link includes guidelines for defining requirements and determining the scope of effort for a data validation effort. This effort includes a data file compare process, a technique for accumulating summary totals with a record count and a technique for reading a VSAM, KSDS and producing a hex-dump output based on a list of user-defined keys.
Explore How to Generate a Data File Compare, Validate or Hex-Dump Program using simple specification statements in a Process Control File (PCF). This link to the User Guide includes the information necessary to create a Process Control File and generate the COBOL programs that will do a data file compare, accumulate summary totals with a record count or produce a Hex-Dump of records in a VSAM, KSDS based on a list of user-defined keys. The User Guide contains a list of the PCF statements that are used for the data file compare, validate or dump process.
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 an Extended List of Software Technologies that are available for review and evaluation. The software technologies (or Z-Packs) provide individual programming examples, documentation and test data files in a single package. The Z-Packs are usually in zip format to reduce the amount of time to download.
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 to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connection.
This suite of programs and documentation is available for download. Link to an Evaluation zPAK Option that includes the program members, documentation and control files.
A good place to start is The SimoTime Home Page via Internet Connect for access to white papers, program examples and product information.
Explore The Micro Focus Web Site via Internet Connect for more information about products and services available from Micro Focus.
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.
Founded in 1987, SimoTime Technologies 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 complementary 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 |
Data File Compare of Two Report Files of 133 Byte Records |
Copyright © 1987-2016 SimoTime Technologies All Rights Reserved |
When technology complements business |
http://www.simotime.com |