AND, OR and XOR Functions
Regression Test of Boolean Logic
  Table of Contents  v-18.09.15 - rtw00801.htm 
  Introduction
  Job Flow Diagram
  Job Flow Overview
  Job Script for Windows
  Function Testing
  Logical AND
  Logical OR
  Logical XOR
  Technical Details
  Ancillary Functionality
  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

This Job Script will describe and demonstrate Boolean Logic Functions using COBOL programs. The test cases are used to perform Logical AND, OR and XOR functions.


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 Job Flow Diagram

The following shows the sequencing of events and processing tasks that are used to describe and demonstrate Boolean Logic Functions using COBOL programs.

               
RTW008W1
* Primary Job Script
   
call
 
 
ENV1BASE
* Prepare the System Environment
   
 
 
FUNCTION
 
 
 
 
 
 
 
 
 
 
* System Preparation
* Function Test 01 (FT01)
   
* Boolean Logic for AND Function
call
 
 
   
   
   
   
   
   
   
   
LORANDW1
 
 
JOBLOG
simonote
* Execute Test Case for Logical AND
   
   
   
INSTREAM
 
 
LORANDC1
 
 
SYSOUT
asc_lseq
* Display results to SYSOUT
   
   
   
STANDPGM
* SimoTime Utility Program
   
   
   
   
 
 
FUNCTION
 
 
 
 
 
 
 
 
 
 
* Function Test 01 (FT01)
* Function Test 02 (FT02)
   
* Boolean Logic for OR Function
call
 
 
   
   
   
   
   
   
   
   
LORORRW1
 
 
JOBLOG
simonote
* Execute Test Case for Logical OR
   
   
   
INSTREAM
 
 
LORORRC1
 
 
SYSOUT
* Display Summary Totals to SYSOUT
   
   
   
STORRPGM
* SimoTime Utility Program
   
   
   
   
 
 
FUNCTION
 
 
 
 
 
 
 
 
 
 
* Function Test 02 (FT02)
* Function Test 03 (FT03)
   
* Boolean Logic for XOR Function
call
 
 
   
   
   
   
   
   
   
   
LORXORW0
 
 
JOBLOG
simonote
* Execute Test Case for Logical XOR
   
   
   
INSTREAM
 
 
LORXORC0
 
 
SYSOUT
* Display results to SYSOUT
   
   
   
AIXC00A1
* SimoTime Utility (HLASM)
   
   
   
   
 
 
FUNCTION
 
 
 
 
 
 
 
 
 
 
* Function Test 03 (FT03)
* Function Test 04 (FT04)
   
* Boolean Logic for XOR Function
call
 
 
   
   
   
   
   
   
   
   
LORXORW1
 
 
JOBLOG
simonote
* Execute Test Case for Logical XOR
   
   
   
INSTREAM
 
 
LORXORC1
 
 
SYSOUT
* Display results to SYSOUT
   
   
   
STXORPGM
* SimoTime Utility Program
   
   
   
   
 
 
FUNCTION
 
 
 
 
 
 
 
 
 
 
* Function Test 04 (FT04)
* End of Job Processing
   
EOJ
* End of Job
 
Objective: This Job Script will execute a series of job steps that perform Boolean Logic Functions using COBOL Programs.
Test Cases for Logical AND, OR and XOR Functions

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.

Table of Contents Previous Section Next Section Job Flow Overview

The following describes the Job Scripts and Programs that are used to generate, transfer and compile a suite of programs that will accumulate Summary Totals and perform various types of numeric integrity checking and make optional adjustments to numeric values that are stored in a Packed-Decimal format.

1. Call a Job Script (ENV1BASE.cmd) to set the System Environment Variable.
2. Execute Function 01, Logical AND function.
2.1. Call a Job Script (LORANDW1.cmd) that will execute a unit test for the Logical AND function.
2.1.1. Run LORANDC1.gnt that is a COBOL driver program.
2.1.1.1. Call STANDPGM.gnt that is a COBOL program that performs the AND function.
2.1.2. Test data is created within the test program.
2.1.3. The results are posted to the SYSOUT device.
3. Execute Function 02, Logical OR function.
3.1. Call a Job Script (LORORRW1.cmd) that will execute a unit test for the Logical OR function.
3.1.1. Run LORORRC1.gnt that is a COBOL driver program.
3.1.1.1. Call STORRPGM.gnt that is a COBOL program that performs the OR function.
3.1.2. Test data is created within the test program.
3.1.3. The results are posted to the SYSOUT device.
4. Execute Function 03, Logical XOR function.
4.1. Call a Job Script (LORXORW0.cmd) that will execute a unit test for the Logical XOR function.
4.1.1. Run LORXORC0.gnt that is a COBOL driver program.
4.1.1.1. Call AIXC00A1.390 that is an HLASM (IBM Mainframe Assembler) program that performs the XOR function.
4.1.2. Test data is created within the test program.
4.1.3. The results are posted to the SYSOUT device.
5. Execute Function 04, Logical XOR function.
5.1. Call a Job Script (LORXORW1.cmd) that will execute a unit test for the Logical XOR function.
5.1.1. Run LORXORC1.gnt that is a COBOL driver program.
5.1.1.1. Call STORRPGM.gnt that is a COBOL program that performs the XOR function.
5.1.2. Test data is created within the test program.
5.1.3. The results are posted to the SYSOUT device.
6. Execute End of Job Processing.

Table of Contents Previous Section Next Section Job Script for Windows

The following (RTW008W1.cmd) is the Windows CMD that is used to test the Boolean Logic Functions.

@echo OFF
     set RtwName=RTW008W1
rem  * *******************************************************************
rem  *               RTW008W1.cmd - a Windows Command File               *
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   - Regression Test of Boolean Logic using COBOL
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * Windows Job Script to execute unit test for Boolean Logic
rem  *
rem  * 1.   Logical AND function.
rem  * 2.   Logical OR function
rem  * 3.   Logical XOR function.
rem  * 4.   Logical XOR function.
rem  *
rem  * *******************************************************************
rem  *
rem  * Prepare the System Environment.
     call ..\ENV1BASE %RtwName%
     set SYSOUT_RESTORE=%SYSOUT%
     set JobStatus=0000
     set NOJS=06
     set NBRUTASK=06
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set SIMOMODE=BATCH
     set AOK_Count=0
     set NOK_Count=0
rem  *
     call SIMONOTE "*********************************************************************%RtwName%"
     call SIMONOTE "* Regression Test Cases of Boolean Logic using COBOL Programs       *"
rem  *
     call SIMONOTE "* ----------------------------------------------------------------- *PREPARE"
     call SIMONOTE "* Call the Job Script for the Logical AND function ---------------- *FT01.01"
     call LORANDW1 nopause
     IF %ERRORLEVEL% EQU 0 (set /A AOK_Count=%AOK_Count% + 1) ELSE (set /A NOK_Count=%NOK_Count% + 1)
     call SIMONOTE "* AOKcount Generate Count for AOK is %AOK_Count% "
     call SIMONOTE "* NOKcount Generate Count for NOK is %NOK_Count% "
rem  *
     call SIMONOTE "* ----------------------------------------------------------------- *EXECUTE"
     call SIMONOTE "* Call the Job Script for the Logical OR function ----------------- *FT02.01"
     call LORORRW1 nopause
     IF %ERRORLEVEL% EQU 0 (set /A AOK_Count=%AOK_Count% + 1) ELSE (set /A NOK_Count=%NOK_Count% + 1)
     call SIMONOTE "* AOKcount Generate Count for AOK is %AOK_Count% "
     call SIMONOTE "* NOKcount Generate Count for NOK is %NOK_Count% "
rem  *
     call SIMONOTE "* ----------------------------------------------------------------- *EXECUTE"
     call SIMONOTE "* Call the Job Script for a Logical XOR function ------------------ *FT03.01"
     call LORXORW0 nopause
     IF %ERRORLEVEL% EQU 0 (set /A AOK_Count=%AOK_Count% + 1) ELSE (set /A NOK_Count=%NOK_Count% + 1)
     call SIMONOTE "* AOKcount Generate Count for AOK is %AOK_Count% "
     call SIMONOTE "* NOKcount Generate Count for NOK is %NOK_Count% "
rem  *
     call SIMONOTE "* ----------------------------------------------------------------- *EXECUTE"
     call SIMONOTE "* Call the Job Script for a Logical XOR function ------------------ *FT04.01"
     call LORXORW1 nopause
     IF %ERRORLEVEL% EQU 0 (set /A AOK_Count=%AOK_Count% + 1) ELSE (set /A NOK_Count=%NOK_Count% + 1)
     set SYSOUT=%SYSOUT_RESTORE%
     call SIMONOTE "* AOKcount Generate Count for AOK is %AOK_Count% "
     call SIMONOTE "* NOKcount Generate Count for NOK is %NOK_Count% "
rem  *
:Eoj
     call SIMONOTE "* ----------------------------------------------------------------- *"
     call SIMONOTE "* End of Job Processing "
     if "%NOK_Count%" == "0" goto EojAok
     goto EojNok
:EojAok
     call SIMONOTE "* Finished %RtwName%, Exit Status is 0 "
     goto :End
:EojNok
     call SIMONOTE "* ABENDING %RtwName%, Exit Status is 16 "
:End
     pause

Table of Contents Previous Section Next Section Function Testing

The following is an overview of the function tests that are performed by this Job Script.

1. Call a Job Script (LORANDW1.cmd) that will execute a unit test for the Logical AND function.
2. Call a Job Script (LORORRW1.cmd) that will execute a unit test for the Logical OR function.
3. Call a Job Script (LORXORW1.cmd) that will execute a unit test for the Logical XOR function.

Note: The following links will describe a suite of job scripts that may be used for Unit Testing and may be executed on demand.

Table of Contents Previous Section Next Section Logical AND

Call a Job Script (LORANDW1.cmd) that will execute a unit test for the Logical And function.

@echo OFF
rem  * *******************************************************************
rem  *               LORANDW1.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   - Test Case for AND Logical Operator Routine.
rem  * Author - SimoTime Technologies
rem  * Date   - December 15, 2016
rem  *
rem  * This set of programs illustrates the use a COBOL program to do
rem  * a logical AND function.
rem  *
rem  *   ************
rem  *   * LORANDW1 *
rem  *   ********cmd*
rem  *        *
rem  *        *
rem  *   ************      ************
rem  *   * LORANDC1 *------*  SYSOUT  *
rem  *   ********cbl*      ************
rem  *        *   *
rem  *        *   *        ************
rem  *        *   *--call--* STANDPGM *
rem  *        *            ********cbl*
rem  *        *
rem  *   ************
rem  *   *   EOJ    *
rem  *   ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Prepare the Environment...
rem  *
     set CmdName=LORANDW1
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2, Execute the Test Program for a logical AND...
     call SimoNOTE "Continue JobName %CmdName% Execute the AND Test Program"
     run LORANDC1
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End-of-Job Processing...
: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

Table of Contents Previous Section Next Section Logical OR

Call a Job Script (LORORRW1.cmd) that will execute a unit test for the Logical or function.

@echo OFF
rem  * *******************************************************************
rem  *               LORORRW1.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   - Test Case for OR Logical Operator Routine.
rem  * Author - SimoTime Technologies
rem  * Date   - December 15, 2016
rem  *
rem  * This set of programs illustrates the use a COBOL program to do
rem  * a logical AND function.
rem  *
rem  *   ************
rem  *   * LORORRW1 *
rem  *   ********cmd*
rem  *        *
rem  *        *
rem  *   ************      ************
rem  *   * LORORRC1 *------*  SYSOUT  *
rem  *   ********cbl*      ************
rem  *        *   *
rem  *        *   *        ************
rem  *        *   *--call--* STORRPGM *
rem  *        *            ********cbl*
rem  *        *
rem  *   ************
rem  *   *   EOJ    *
rem  *   ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Prepare the Environment...
rem  *
     set CmdName=LORORRW1
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2, Execute the Test Program for a logical OR...
     call SimoNOTE "Continue JobName %CmdName% Execute the OR Test Program"
     run LORORRC1
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End-of-Job Processing...
: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

Table of Contents Previous Section Next Section Logical XOR

Call a Job Script (LORXORW1.cmd) that will execute a unit test for the Logical xor function.

@echo OFF
rem  * *******************************************************************
rem  *               LORXORW1.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   - Test Case for XOR Logical Operator Routine.
rem  * Author - SimoTime Technologies
rem  * Date   - December 15, 2016
rem  *
rem  * This set of programs illustrates the use a COBOL program to do
rem  * an Exclusive OR (XOR) function.
rem  *
rem  *   ************
rem  *   * LORXORW1 *
rem  *   ********cmd*
rem  *        *
rem  *        *
rem  *   ************      ************
rem  *   * LORXORC1 *------*  SYSOUT  *
rem  *   ********cbl*      ************
rem  *        *   *
rem  *        *   *        ************
rem  *        *   *--call--* STXORPGM *
rem  *        *            ********cbl*
rem  *        *
rem  *   ************
rem  *   *   EOJ    *
rem  *   ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Prepare the Environment...
rem  *
     set CmdName=LORXORW1
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2, Execute the XOR Test Program...
     call SimoNOTE "Continue JobName %CmdName% Execute the XOR Test Program"
     set SYSOUT=%BASELIB1%\LOGS\SYSOUT_%CmdName%.txt
     run LORXORC1
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End-of-Job Processing...
: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

Table of Contents Previous Section Next Section Technical Details

The following provides an in-depth look at the Job Scripts used by this suite of test cases.

Table of Contents Previous Section Next Section Ancillary Functionality

This section provides additional detail about the CMD files and programs that are used to support this set of sample programs.

Link to Internet   Link to Server   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.

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

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

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.

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

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.

Link to Internet   Link to Server   Explore How to do Regression Testing for Batch Processing on a Windows System. This document will describe and demonstrate how to prepare test data, execute a regression test and review the results.

Link to Internet   Link to Server   Explore how to process non-Numeric Values stored in a Packed-Decimal format. This document will use examples to show how to manage a situation where non-numeric values (such as Space Characters) are placed in a Packed-Decimal field and then managed to avoid a S0C7 or RTS 163 error message and an abnormal termination of the program.

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

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection

Explore The Micro Focus Web Site for more information about products 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 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.

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 or check the web site at http://www.simotime.com


Return-to-Top
Execute Boolean Logic
Copyright © 1987-2019
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com