Calculate Summary Totals Generate & Execute the Programs |
The SimoTime Home Page |
Generating Summary Totals for numeric values that are stored in data files is a typical requirement for a business application running in a production environment. This capability may be extended to the development and testing environments and used as a tool for diagnostic purposes and to validate the integrity of numeric values (especially currency amounts).
This document will focus on the task of generating COBOL programs that will read data files or VSAM Data Sets and accumulate summary totals. The generation phase will require a Windows system. The generated source code may be compiled and executed on a system of choice.
This test case uses a file that contains numeric values that are signed or unsigned and stored in a Zoned-Decimal, Packed-Decimal or Binary format.
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-2025
SimoTime Technologies and Services
All Rights Reserved
This example illustrates the following functions.
1. | Describe and demonstrate a process to validate the integrity of 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. |
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.
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.
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 for a batch job that describes and demonstrates how to use a template to create new COBOL programs that will be used to create Summary Totals.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-1: The UTCOMPD1 will be mapped to a user-defined Process Control File (PCF). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-2: This is a user-defined COBOL Copy File. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-3: 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. |
Summary Totals, the Program Generation Logic Flow |
Color Associations: The
The programs that accumulate summary totals are categorized as Data Validation programs. The working library for generating Data Validation programs is C:\SIMOUSER\DEVL\SIMOGENS\COGITATE 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\COGITATE folder |
1.1. | From the Preview Pane do a right-mouse button on NUMXST01.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.TOTALS.lst. |
1.3. | From the Preview Pane do a double-click on ADM_GENRONE_TOTALS.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\COGITATE\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.
The working library for compiling COBOL propgrams is C:\SIMOUSER\DEVL\SIMOGENS\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 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 directory |
2.1. | The HOLD\UT1A sub-directory is where the generated 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.
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 accumulate summary totals for the numeric values as defined in a COBOL Copy File.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-1: SYSUT1 will be mapped to the physical file name of a user-defined Sequential File. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-2: SYSOUT will be mapped to the physical file name for the SYSOUT Device |
Summary Totals, the Program Excecution 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 NUMXSTW1.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_NUMXSTW1.txt |
This completes the "Execute" process.
The following (NUMXSTW1.cmd) is a listing of the contents of the file. This job will map the file names and execute the program that accumulates summary totals.
@echo OFF set CmdName=NUMXSTW1 rem * ******************************************************************* rem * This Job Script is provided by SimoTime Technologies * rem * (C) Copyright 1987-2019 All Rights Reserved * rem * Web Site URL: http://www.simotime.com * rem * e-mail: helpdesk@simotime.com * rem * ******************************************************************* rem * rem * Text - Read a file, Calculate record Count and numeric totals. rem * Author - SimoTime Technologies rem * Date - January 24, 1988 rem * rem * The job will execute the programs that reads a file of 1024-byte rem * records. The records in the file contain numeric fields of various rem * formats such as Zoned-Decimal, Packed-Decimal and Binary. rem * A Summary Total will be accumulated for each numeric field. The rem * Summary Totals will be posted to the SYSOUT device. rem * rem * ************ rem * * NUMXSTW1 * rem * ********cmd* rem * * rem * * rem * ************ rem * ************ * NUMXSTT1 * ************ rem * * SYSUT1 ******* --call-- ******* SYSOUT * rem * *******rseq* * NUMXSTN1 * *******lseq* rem * ********cbl* rem * * rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Prepare the System Environment. rem * call ..\ENV1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "************************************************************%CmdName%.cmd" call SimoNOTE "* Starting Job Steps for %CmdName%" rem * call SimoNOTE "* Step 01 of 03, Prepare the Job Environment." set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.NUMXRS1K.dat set SYSOUT=%BaseLib1%\LOGS\SYSOUT_%CmdName%.txt if exist %SYSOUT% erase %SYSOUT% call SimoNOTE "* DataTake %SYSUT1%" call SimoNOTE "* DataMake %SYSOUT%" rem * call SimoNOTE "* Step 02 of 03, Generate the Programs." run NUMXSTT1 if not "%ERRORLEVEL%" == "0" set JobStatus=0010 :Eoj call SimoNOTE "* Step 03 of 03, End of Job Processing." if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "* Validate the Content of SYSOUT, it should be displayed in a separate winwow..." if exist %SYSOUT% start NOTEPAD %SYSOUT% goto :EojAok :EojAok call SimoNOTE "* Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "* ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following shows the output report that is posted to the SYSOUT device. For this job the SYSOUT device is defined as a sequential file.
* NUMXSTT1 Accumulate Totals, Numeric Fields v18.06.01 helpdesk@simotime.com * NUMXSTT1 A Program to Calculate Totals was generated by SimoTime Technologies * NUMXSTT1 * HEX20 parameter is DISABLE * NUMXSTT1 * HEX40 parameter is DISABLE * NUMXSTT1 * HEXTR parameter is DISABLE * NUMXSTT1 * NUMCHK parameter is DISABLE * NUMXSTT1 ************************************************************************************************************ * NUMXSTT1 Field Name Summary.Total HEX40 HEX20 NUMCHK TYPE * NUMXSTT1 NUMXDS-FLD-ZDU-5-0 861 ZD * NUMXSTT1 NUMXDS-FLD-ZDS-5-0 615- ZDS * NUMXSTT1 NUMXDS-FLD-PKU-5-0 861 PK * NUMXSTT1 NUMXDS-FLD-PKS-5-0 615- PKS * NUMXSTT1 NUMXDS-FLD-BNU-5-0 861 BN * NUMXSTT1 NUMXDS-FLD-BNS-5-0 615- BNS * NUMXSTT1 Record count for SYSUT1 000000004 * NUMXSTT1 Field Name Summary.Total HEX40 HEX20 NUMCHK TYPE * NUMXSTT1 ************************************************************************************************************ * NUMXSTT1 Program to Calculate Totals generated by using SimoTime Technologies * NUMXSTT1 Please send all comments or suggestions to the helpdesk@simotime.com
This section provides additional technical details about the modules that are included in the batch job example.
A COBOL Copy File (NUMXDSB1.cpy) is used to identify the numeric values and their associated format.
***************************************************************** * NUMXDSB1.cpy - a COBOL Copy File * * A Variety of Numeric Formats * * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** * The USAGE clause specifies the format of a data item in * computer memory or in a record within a file. * * If a USAGE clause is missing the default format is DISPLAY. * * An abbreviated form of the USAGE clause may be used. For * example, USAGE IS COMPUTATIONAL-3 may be specified as * COMP-3 without the USAGE IS verbage. * * USAGE Numeric Type Notes * -------- --------------- -------------------------------- * DISPLAY Zoned-Decimal Sensitive to ASC/EBC Encoding, * Logical Size is User Defined, * Physical Size = Logical Size. * COMP-3 Packed-Decimal Exempt from ASC/EBC Encoding, * Logical Size is User Defined, * Physical Size is Calculated * during program compilation. * COMP Binary Exempt from ASC/EBC Encoding, * Logical Size is User Defined, * Physical Size is Calculated * during program compilation and * may be determined by the System * Architecture or Compiler * Directives. * * The notation in columns 73-80 is for documentation purposes * only and identifies the column that would be used for the * field content if a spreadsheet software package were used * to create test data. * * .1....:....2....:....3....:....4....:....5....:....6....:....7....:....8 * 01 NUMXDS-RECORD. 05 NUMXDS-FLD-TXT-ZDU-5-0 pic X(8). COL-A 05 NUMXDS-FLD-ZDU-5-0 pic 9(5) usage is DISPLAY. COL-B 05 NUMXDS-FLD-TXT-ZDS-5-0 pic X(8). COL-C 05 NUMXDS-FLD-ZDS-5-0 pic S9(5) usage is DISPLAY. COL-D 05 NUMXDS-FLD-TXT-PKU-5-0 pic X(8). COL-E 05 NUMXDS-FLD-PKU-5-0 pic 9(5) usage is COMP-3. COL-F 05 NUMXDS-FLD-TXT-PKS-5-0 pic X(8). COL-G 05 NUMXDS-FLD-PKS-5-0 pic S9(5) usage is COMP-3. COL-H 05 NUMXDS-FLD-TXT-BNU-5-0 pic X(8). COL-I 05 NUMXDS-FLD-BNU-5-0 pic 9(5) usage is COMP. COL-J 05 NUMXDS-FLD-TXT-BNS-5-0 pic X(8). COL-K 05 NUMXDS-FLD-BNS-5-0 pic S9(5) usage is COMP. COL-L 05 NUMXDS-FLD-TEXT pic X(6). COL-M 05 NUMXDS-FLD-FILLER pic X(946). * *** NUMXDSB1 - End-of-Copy File - - - - - - - - - - - NUMXDSB1 * ***************************************************************** *
The following items are referenced by this set of programs. Their creation and support are described in the linked documents.
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-2021 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 set USERPOST=%BASEAPP%\LOGS\ASSIGNED_USER_POST_FILE.txt if [%1]==[] goto NO_POST set SYSOUT=%BaseLib1%\LOGS\SYSOUT_%1.txt call SIMONOTE "+ ENV1BASE *" call SIMONOTE "+ ENV1BASE ********************************************************************%1" call SIMONOTE "+ ENV1BASE is preparing the System Environment..." call SIMONOTE "+ SIMOLIBR is %SIMOLIBR%" call SIMONOTE "+ MIFOSYS1 is %MIFOSYS1%" call SIMONOTE "+ BASELIB1 is %BASELIB1%" :NO_POST 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 set CATALINA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_112 rem * rem * Set the Environment for the Java Environment... rem set JAVABASE=C:\APACHETC\apache-tomcat-7.0.52 set JAVABASE=C:\Program Files (x86)\Java\jdk1.8.0_112 set JAVASDK="%JAVABASE%\bin" set JAVA_HOME=%JAVABASE% set JRE_HOME=%JAVABASE% set SIMOTCAT=%CATALINA_HOME%\webapps\simotcat set SIMPACKS=%CATALINA_HOME%\webapps\simotcat\WEB-INF\classes\simpacks 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 Build Tools 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 * 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;%MIFOVCBL%;%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 MAINFRAME_FLOATING_POINT=true set COBIDY=%BASEAPP%\COBIDY set COBPATH=.;%BASEAPP%\LOADLIB;%BASEAPP%\LOADLIB\GNTS;%BASESYS%\LOADLIB;%SimoLIBR% set LIBPATH=.;%BASEAPP%\LOADLIB;%BASEAPP%\LOADLIB\GNTS;%BASESYS%\LOADLIB;%SimoLIBR% set TXDIR=%BASESYS%\LOADLIB;%MIFOBASE% set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR% 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 rem * 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%\bin\mfcobol.jar rem * set JobStatus=0000 call SIMONOTE "+ ENV1BASE is returning to caller"
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
This document will focus on the task of generating COBOL programs that will read data files or VSAM Data Sets and accumulate summary totals. 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.
Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.
SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.
This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.
Note: A SimoTime License is required for the items to be made available on a local system or server.
The following links may be to the current server or to the Internet.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.
Explore The File Status Return Codes that are used to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet 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 (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection.
Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.
This document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.
1. | Send an e-mail to our helpdesk. |
1.1. | helpdesk@simotime.com. |
2. | Our telephone numbers are as follows. |
2.1. | 1 415 763-9430 office-helpdesk |
2.2. | 1 415 827-7045 mobile |
We appreciate hearing from you.
SimoTime Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.
Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.
Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SimoTime has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.
Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com
Return-to-Top |
Summary Totals Processing |
Copyright © 1987-2025 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |