Hex-Dump of VSAM/KSDS
Item Master File
  Table of Contents  v-24.01.01 - itdump01.htm 
  Introduction
  The Item Master File
  Overview and Flow Chart
  Program Objectives
  Program Requirements
  Program Input and Output
  CMD, Command File
  ITDUMPW3, Dump Specific Records
  The COBOL Members
  Copy File for Record Structure
  The Mainline Program
  The Called Dump Routine
  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
  Contact or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

This is an example of a Batch COBOL program that does File Access to an Item Master File and writes the content of a selected record from the VSAM, KSDS in Hex-format (Dump) to a user-defined log file.


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-2024
SimoTime Technologies and Services
All Rights Reserved

Table of Contents Previous Section Next Section The Item Master File

The Item Master File is a VSAM, Key-Sequenced-Data-Set (KSDS). The length of the records in the data set is 512 bytes. The key field starts in position one (1) and is 12 bytes in length.

Table of Contents Previous Section Next Section Overview and Flow Chart

This utility uses a Set of Windows Command Files and COBOL programs to provide detailed information in Hex-Dump format for records in an Item Master file.

1. Initialize the Environment
2. Prepare the Dump and Control Files
2.1. Delete a previously created dump file
2.2. Create a new control file with one record
3. Read Control File, process the VSAM/KSDS and produce a HEX-Dump output
3.1. Call the Hex-Dump Routine (SIMOHEX4)
3.2. Write to the Hex-Dump File
4. End of Job Processing

 

 

             
ITDUMPW3
cmd
1 - Start, Initialize the Environment
   
IF Exist
statement
2.1 - Delete previously created output files
   
ECHO
statement
 
 
SYSUT3
lseq
2.2 - Create the Control File
   
SYSUT1
ksds
   
   
KSBDMPC3
cbl
   
   
call
return
3 - Read Item Master and call Dump routine
   
   
   
   
SYSUT3
lseq
   
   
   
   
SIMOHEX4
cbl
3.1 - Control File and Callable Dump Routine
   
   
   
   
   
SYSUT2
rseq
3.2 - Write to Hex-Dump File
   
EOJ
4 - End-Of-Job
 
SYSUT1: This is the Item Master File. It is a VSAM, KSDS with 512 byte records. The key starts in Position 1 and is 12 bytes.
SYSUT2: This is the log file, this is an ASCII/Text file and contains the Hex-Dump Information.
SYSUT3: This is an ASCII/Text file and contains a list of items numbers. This file is used to determine the records that will be processed from the Item Master file.
Overview of Hex Dump for Item Master File

Table of Contents Previous Section Next Section Program Objectives

Provide an individual with the ability to view a record or groups of records from a VSAM/KSDS. The output will be in a Hexadecimal-Dump format.

1. Read a control file containing a list of item numbers. Use the control file to select the user-specified records.
2. Read the Item Master file and produce output in hex-dump format.

 

Table of Contents Previous Section Next Section Program Requirements

The following is the minimum system requirements.

1 Windows/7, Windows/8 or Windows Server
2 1 gig of memory
3 30 gig disk space
4 Internet Explorer 70 or other browsers (used to review the documentation)
5 Micro Focus Studio 5.1 or later.
  Minimum System Requirements

The following is a typical system configuration for running the SimoTime Programs with Micro Focus technologies.

1 Windows/7, Windows/8 or Windows Server
2 2 gig of memory
3 100 gig disk space
4 Internet Explorer 70 or other browsers (used to review the documentation)
5 Micro Focus Studio 5.1 or later.
  Typical System Configuration

Table of Contents Previous Section Next Section Program Input and Output

This utility requires two inputs and create an output file. The 1st input file is an ASCII/Text file with each record containing a single item number (12 digits) that will be used as the primary key to access the Item File. The 2nd input is an Item Master file that is a VSAM/KSDS.

The output file is an ASCII/Text file that contains Hex-Dump information. This file may be viewed with a text editor such as NotePAD. The following is an example of the HEX-Dump information that is produced.

********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
* KSBDMPC3 KSD/512 input to Hex Dump Output   v12.04.05   helpdesk@simotime.com
* KSBDMPC3 This Hexadecimal Dump Program was generated by SimoTime Technologies
Starting, KSD/512 input to Hex Dump Output   http://www.SimoTime.com
********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
000000000091Head Light                                      ........Each            ....\...G.2013010212080340000
33333333333346662466672222222222222222222222222222222222222200010000466622222222222200085000493333333333333333333222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
00000000009185140C9784000000000000000000000000000000000000000002000051380000000000000001C0017C2013010212080340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
............../..<.................................................../.................a*.......................................................................................................................................................................................................................................................................................................................................................................................................................................
*

Table of Contents Previous Section Next Section CMD, Command File

This section will describe the Windows command files included in this suite of programs.

Table of Contents Previous Section Next Section ITDUMPW3, Dump Specific Records

The following member (ITDUMPW3.cmd) is the Windows Command File that will read specific records from the Item Master file and write hexadecimal dump information to a log file.

@echo OFF
rem  * *******************************************************************
rem  *               ITDUMPW3.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  * This is a multiple-step job.
rem  * Step 1 of 4 - Initialize the environment
rem  * Step 2 of 4 - Create the Control File
rem  * Step 3 of 4 - Read the VSAM, KSDS and Produce a HEX-Dump output
rem  * Step 4 of 4 - End of Job Processing
rem  *
rem  * *************************************************************1 of 4
rem  * Step 1 of 4,
rem  * Initialize the environment.
     set CmdName=ITDUMPW3
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     call SimoNOTE "Continue Step 1 of 4, Initialize the environment."
     set SYSUT1=%BASELIB1%\DATA\APPL\SIMOTIME.DATA.ITEMMAST.dat
     set SYSUT2=%BASELIB1%\DATA\TXT1\SIMOTIME.DATA.ITDUMP03.txt
     set SYSUT3=%BASELIB1%\DATA\TXT1\SIMOTIME.DATA.ITCNTL03.txt
rem  *
rem  * *************************************************************2 of 4
     call SimoNOTE "Continue Step 2 of 4, Prepare Dump and Control Files."
     if exist %SYSUT2% del %SYSUT2%
     echo 000000000091>%SYSUT3%
     call SimoNOTE "DataTAKE is %SYSUT1%"
     call SimoNOTE "DataDUMP is %SYSUT2%"
     call SimoNOTE "DataCNTL is %SYSUT3%"
rem  *
rem  * *************************************************************3 of 4
rem  * Step 3 of 3,
rem  * Dump the File.
     call SimoNOTE "Continue Step 3 of 4, Dump the File."
     run KSBDMPC3
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto :EOJNOK
     goto EOJAOK
rem  *
rem  * *************************************************************4 of 4
rem  * Step 4 of 4,
rem  * End of Job Processing.
:EOJNOK
     call SimoNOTE "ABENDING JobName %CmdName%, JobStatus %JobStatus%"
     call SimoNOTE "ABENDING Message JobStatus %JobStatus%"
     goto :EOJ
:EOJAOK
     if exist %SYSUT2% START NOTEPAD %SYSUT2%
     call SimoNOTE "Finished JobName %CmdName%"
:EOJ
     pause

Table of Contents Previous Section Next Section The COBOL Members

This section will describe the COBOL members (copy files and programs) included in this suite of programs.

Table of Contents Previous Section Next Section Copy File for Record Structure

The following member (ITEMCB02.cpy) is the COBOL copy file that defines the record structure for the Item Master File. This file is a VSAM, Key-Sequenced-Data-Set (KSDS). The length of the records in the data set is 512 bytes. The key field starts in position one (1) and is 12 bytes in length.

      *****************************************************************
      *   Copy File for Item Master File used by the Demo programs.   *
      * This is a VSAM Keyed=Sequential-Data-Set or Key-Indexed File. *
      *****************************************************************
      *         Copyright (C) 1987-2019 SimoTime Technologies         *
      *                     All Rights Reserved                       *
      *****************************************************************
      *              Provided by SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *****************************************************************
       01  ITEM-RECORD.
           05  ITEM-NUMBER              PIC X(12).
           05  ITEM-DATA.
               10  ITEM-DESCRIPTION     PIC X(48).
               10  ITEM-QTY-ONHAND      PIC 9(7)            COMP.
               10  ITEM-QTY-ALLOCATED   PIC 9(7)            COMP.
               10  ITEM-UNIT-OF-MEASURE PIC X(16).
               10  ITEM-COST            PIC S9(7)V9(2)      COMP-3.
               10  ITEM-PRICE           PIC S9(7)V9(2)      COMP-3.
               10  ITEM-LADATE          PIC X(8).
               10  ITEM-LATIME          PIC X(8).
               10  ITEM-TOKEN           PIC X(3).
               10  ITEM-D-TABLE         OCCURS 3 times.
                   15  ITEM-D-CODE      PIC X.
                   15  ITEM-D-PERCENT   PIC S9(3)V9(4).
               10  FILLER               PIC X(375).
      *!   ITEMCB02 - End-of-Copy File...

Table of Contents Previous Section Next Section The Mainline Program

The following member (KSBDMPC3.cbl) is the COBOL program that reads the control file and the item master file and creates a log file of hexadecimal dump information.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    KSBDMPC3.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2013-10-13  Generation Time: 22:29:30:01    *
      *                                                               *
      *                                   Record    Record     Key    *
      *  Function  Name     Organization  Format    Max-Min  Pos-Len  *
      *  PRIMARY   SYSUT1   INDEXED       VARIABLE   00512    00001   *
      *                                                       00012   *
      *  SECONDARY SYSUT2 ASCII/CRLF      FIXED      00512            *
      *  CONTROL   SYSUT3 ASCII/CRLF      FIXED      00080            *
      *                                                               *
      *                                                               *
      *****************************************************************
       ENVIRONMENT DIVISION.
       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT SYSUT1-FILE ASSIGN TO         SYSUT1
                  ORGANIZATION  IS INDEXED
                  ACCESS MODE   IS RANDOM
                  RECORD KEY    IS SYSUT1-PKEY-00001-00012
                  FILE STATUS   IS SYSUT1-STATUS.
           SELECT SYSUT2-FILE ASSIGN TO         SYSUT2
                  ORGANIZATION  IS LINE SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT2-STATUS.
           SELECT SYSUT3-FILE   ASSIGN TO       SYSUT3
                  ORGANIZATION  IS LINE SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT3-STATUS.

      *****************************************************************
       DATA DIVISION.
       FILE SECTION.
       FD  SYSUT1-FILE
           DATA RECORD    IS SYSUT1-REC
           .
       01  SYSUT1-REC.
           05  SYSUT1-PKEY-00001-00012        PIC X(00012).
           05  SYSUT1-DATA-00013-00500        PIC X(00500).

       FD  SYSUT2-FILE
           DATA RECORD    IS SYSUT2-REC
           .
       01  SYSUT2-REC.
           05  SYSUT2-DATA-01 PIC X(00512).

       FD  SYSUT3-FILE
           DATA RECORD    IS SYSUT3-REC
           .
       01  SYSUT3-REC.
           05  SYSUT3-DATA-01 PIC X(80).

      *****************************************************************
      * This program was created with the SYSMASK3.TXT file as the    *
      * template for the File I/O. It is intended for use with the    *
      * TransCALL facility that makes a call to a routine that does   *
      * the actual conversion between EBCDIC and ASCII. For more      *
      * information or questions contact SimoTime Technologies.       *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      * The SYSMASK3 provides for the sequential reading of the input *
      * file and the sequential writing of the output file.           *
      *                                                               *
      * This program mask is used with a callable subroutine that     *
      * will do ASCII/EBCDIC Conversion based on a COBOL Copy File.   *
      *                                                               *
      * If the output file is indexed then the input file must be in  *
      * sequence by the field that will be used to provide the key    *
      * for the output file.                                          *
      *                                                               *
      * If the key field is not in sequence then refer to SYSMASK4    *
      * to provide for a random add or update of the indexed file.    *
      *****************************************************************
       WORKING-STORAGE SECTION.
       01  SIM-TITLE.
           05  T1 pic X(11) value '* KSBDMPC3 '.
           05  T2 pic X(34) value 'KSD/512 input to Hex Dump Output  '.
           05  T3 pic X(10) value ' v12.04.05'.
           05  T4 pic X(24) value '   helpdesk@simotime.com'.
       01  SIM-COPYRIGHT.
           05  C1 pic X(11) value '* KSBDMPC3 '.
           05  C2 pic X(32) value 'This Hexadecimal Dump Program wa'.
           05  C3 pic X(32) value 's generated by SimoTime Technolo'.
           05  C4 pic X(04) value 'gies'.

       01  SYSUT1-STATUS.
           05  SYSUT1-STATUS-L     pic X.
           05  SYSUT1-STATUS-R     pic X.
       01  SYSUT1-EOF              pic X       value 'N'.
       01  SYSUT1-OPEN-FLAG        pic X       value 'C'.

       01  SYSUT2-STATUS.
           05  SYSUT2-STATUS-L     pic X.
           05  SYSUT2-STATUS-R     pic X.
       01  SYSUT2-EOF              pic X       value 'N'.
       01  SYSUT2-OPEN-FLAG        pic X       value 'C'.

       01  SYSUT3-STATUS.
           05  SYSUT3-STATUS-L     pic X.
           05  SYSUT3-STATUS-R     pic X.
       01  SYSUT3-EOF              pic X         value 'N'.
       01  SYSUT3-OPEN-FLAG        pic X         value 'C'.

       01  SYSUT1-LRECL          pic 9(5)      value 00512.
       01  SYSUT2-LRECL          pic 9(5)      value 00512.
       01  KEY-LEN                 pic 9(3)      value 12.

      *****************************************************************
      * The following buffers are used to create a four-byte status   *
      * code that may be displayed.                                   *
      *****************************************************************
       01  IO-STATUS.
           05  IO-STAT1            pic X.
           05  IO-STAT2            pic X.
       01  IO-STATUS-04.
           05  IO-STATUS-0401      pic 9     value 0.
           05  IO-STATUS-0403      pic 999   value 0.
       01  TWO-BYTES-BINARY        pic 9(4)  BINARY.
       01  TWO-BYTES-ALPHA         redefines TWO-BYTES-BINARY.
           05  TWO-BYTES-LEFT      pic X.
           05  TWO-BYTES-RIGHT     pic X.

      *****************************************************************
      * Message Buffer used by the Z-DISPLAY-MESSAGE-TEXT routine.    *
      *****************************************************************
       01  MESSAGE-BUFFER.
           05  MESSAGE-HEADER      pic X(011)  value '* KSBDMPC3 '.
           05  MESSAGE-TEXT.
               10  MESSAGE-TEXT-1  pic X(109)  value SPACES.
               10  MESSAGE-TEXT-2  pic X(147)  value SPACES.

      *****************************************************************
       01  PROGRAM-NAME            pic X(8)     value 'KSBDMPC3'.

       01  INFO-STATEMENT.
           05  INFO-SHORT.
               10  INFO-ID pic X(8)    value 'Starting'.
               10  filler  pic X(2)    value ', '.
               10  filler  pic X(34)
                   value   'KSD/512 input to Hex Dump Output  '.
           05  filler      pic X(24)
               value ' http://www.SimoTime.com'.

       01  APPL-RESULT             pic S9(9)    comp.
           88  APPL-AOK            value 0.
           88  APPL-EOF            value 16.

       01  SYSUT1-TOTAL.
           05  SYSUT1-RDR  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT1'.
       01  SYSUT2-TOTAL.
           05  SYSUT2-ADD  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT2'.
      *****************************************************************
      *    User defined working storage...
      *    USERDATA       HEX4WSUI.inc
      *    -----------------------------------------------------------*
      *    User INCLUDE member for WORKING STORAGE. Define the
      *    Pass Area for calling SIMOHEX4.
       01  USER-1ST        pic X       value 'N'.
       COPY PASSHEX4.
      *    -----------------------------------------------------------*

      *****************************************************************
       PROCEDURE DIVISION.
           move SPACES to MESSAGE-TEXT
           move all '*' to MESSAGE-TEXT-1
           perform Z-DISPLAY-TWICE-WITH-ERASE
           move INFO-STATEMENT to MESSAGE-TEXT-1
           perform Z-DISPLAY-TWICE-WITH-ERASE
           move all '*' to MESSAGE-TEXT-1
           perform Z-DISPLAY-TWICE-WITH-ERASE
           perform Z-POST-COPYRIGHT
           perform SYSUT2-OPEN

           move all '*' to SYSUT2-REC
           perform SYSUT2-WRITE
           move SIM-TITLE to SYSUT2-REC
           perform SYSUT2-WRITE
           move SIM-COPYRIGHT to SYSUT2-REC
           perform SYSUT2-WRITE
           move INFO-STATEMENT to SYSUT2-REC
           perform SYSUT2-WRITE
           move all '*' to SYSUT2-REC
           perform SYSUT2-WRITE

           perform SYSUT3-OPEN
           perform SYSUT1-OPEN

           perform until SYSUT3-STATUS not = '00'
             perform SYSUT3-READ
               if  SYSUT3-STATUS = '00'
                   move SYSUT3-DATA-01(1:KEY-LEN)
                     to SYSUT1-PKEY-00001-00012
                   perform SYSUT1-READ
                   if  SYSUT1-STATUS = '00'
                       add 1 to SYSUT1-RDR
                       perform BUILD-OUTPUT-RECORD
                       perform SYSUT2-WRITE
                       if  SYSUT2-STATUS = '00'
                           add 1 to SYSUT2-ADD
                       end-if
                   else
                       move 'Record not found - ' to SYSUT2-REC
                       move SYSUT3-DATA-01(1:KEY-LEN)
                         to SYSUT2-REC(20:KEY-LEN)
                       perform SYSUT2-WRITE
                   end-if
               end-if
           end-perform

           move SYSUT1-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-TWICE-WITH-ERASE

           move SYSUT2-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-TWICE-WITH-ERASE

           if  APPL-EOF
               move 'Complete' to INFO-ID
           else
               move 'ABENDING' to INFO-ID
           end-if
           move INFO-STATEMENT to MESSAGE-TEXT(1:79)
           perform Z-DISPLAY-TWICE-WITH-ERASE

           perform SYSUT2-CLOSE
           perform SYSUT1-CLOSE
           perform SYSUT3-CLOSE
           GOBACK.

      *****************************************************************
       BUILD-OUTPUT-RECORD.
      *    TransCALL *INC KSBDMPUI.inc
      *
      *    -----------------------------------------------------------* KSBDMPUI
      *    User Interface to SIMOHEX4 to provide HEX Dump Information.
           if  USER-1ST not = 'Y'
               move 'DUMP' to PASSHEX4-REQUEST
               move 'Y' to USER-1ST
               add 512 to ZERO giving PASSHEX4-LENGTH
           end-if
           move SYSUT1-REC to PASSHEX4-SOURCE
           CALL 'SIMOHEX4' USING PASSHEX4-PASS-AREA
           move PASSHEX4-ASCII(1:PASSHEX4-LENGTH) to SYSUT2-REC
           perform SYSUT2-WRITE
           move PASSHEX4-UPPER(1:PASSHEX4-LENGTH) to SYSUT2-REC
           perform SYSUT2-WRITE
           move PASSHEX4-LOWER(1:PASSHEX4-LENGTH) to SYSUT2-REC
           perform SYSUT2-WRITE
           move PASSHEX4-EBCDIC(1:PASSHEX4-LENGTH) to SYSUT2-REC
           perform SYSUT2-WRITE
           move '*' to SYSUT2-REC
      *    -----------------------------------------------------------* KSBDMPUI
           exit.

      *****************************************************************
      * I/O Routines for the INPUT File...                            *
      *****************************************************************
       SYSUT1-CLOSE.
           add 8 to ZERO giving APPL-RESULT.
           close SYSUT1-FILE
           if  SYSUT1-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'CLOSE Failure with SYSUT1' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT1-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT1-READ.
           read SYSUT1-FILE
           if  SYSUT1-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
           else
               if  SYSUT1-STATUS = '10'
                   add 16 to ZERO giving APPL-RESULT
               else
                   add 12 to ZERO giving APPL-RESULT
               end-if
           end-if
           if  APPL-AOK
               CONTINUE
           else
               if  APPL-EOF
                   move 'Y' to SYSUT1-EOF
               else
                   move 'READ Failure with SYSUT1' to MESSAGE-TEXT
                   perform Z-DISPLAY-TWICE-WITH-ERASE
                   move SYSUT1-STATUS to IO-STATUS
                   perform Z-DISPLAY-IO-STATUS
                   perform Z-ABEND-PROGRAM
               end-if
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT1-OPEN.
           add 8 to ZERO giving APPL-RESULT.
           open input SYSUT1-FILE
           if  SYSUT1-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
               move 'O' to SYSUT1-OPEN-FLAG
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'OPEN Failure with SYSUT1' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT1-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.

      *****************************************************************
      * I/O Routines for the OUTPUT File...                           *
      *****************************************************************
       SYSUT2-WRITE.
           if  SYSUT2-OPEN-FLAG = 'C'
               perform SYSUT2-OPEN
           end-if
           write SYSUT2-REC
           if  SYSUT2-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
           else
               if  SYSUT2-STATUS = '10'
                   add 16 to ZERO giving APPL-RESULT
               else
                   add 12 to ZERO giving APPL-RESULT
               end-if
           end-if.
           if  APPL-AOK
               CONTINUE
           else
               move 'WRITE Failure with SYSUT2' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT2-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT2-OPEN.
           add 8 to ZERO giving APPL-RESULT.
           open OUTPUT SYSUT2-FILE
           if  SYSUT2-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
               move 'O' to SYSUT2-OPEN-FLAG
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'OPEN Failure with SYSUT2' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT2-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT2-CLOSE.
           add 8 to ZERO giving APPL-RESULT.
           close SYSUT2-FILE
           if  SYSUT2-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
               move 'C' to SYSUT2-OPEN-FLAG
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'CLOSE Failure with SYSUT2' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT2-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.

      *****************************************************************
      * I/O Routines for the Control File...                          *
      *****************************************************************
       SYSUT3-CLOSE.
           add 8 to ZERO giving APPL-RESULT.
           close SYSUT3-FILE
           if  SYSUT3-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'CLOSE Failure with SYSUT3' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT3-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT3-READ.
           read SYSUT3-FILE
           if  SYSUT3-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
           else
               if  SYSUT3-STATUS = '10'
                   add 16 to ZERO giving APPL-RESULT
               else
                   add 12 to ZERO giving APPL-RESULT
               end-if
           end-if
           if  APPL-AOK
               CONTINUE
           else
               if  APPL-EOF
                   move 'Y' to SYSUT3-EOF
               else
                   move 'READ Failure with SYSUT3' to MESSAGE-TEXT
                   perform Z-DISPLAY-TWICE-WITH-ERASE
                   move SYSUT3-STATUS to IO-STATUS
                   perform Z-DISPLAY-IO-STATUS
                   perform Z-ABEND-PROGRAM
               end-if
           end-if
           exit.
      *---------------------------------------------------------------*
       SYSUT3-OPEN.
           add 8 to ZERO giving APPL-RESULT.
           open input SYSUT3-FILE
           if  SYSUT3-STATUS = '00'
               subtract APPL-RESULT from APPL-RESULT
               move 'O' to SYSUT3-OPEN-FLAG
           else
               add 12 to ZERO giving APPL-RESULT
           end-if
           if  APPL-AOK
               CONTINUE
           else
               move 'OPEN Failure with SYSUT3' to MESSAGE-TEXT
               perform Z-DISPLAY-TWICE-WITH-ERASE
               move SYSUT3-STATUS to IO-STATUS
               perform Z-DISPLAY-IO-STATUS
               perform Z-ABEND-PROGRAM
           end-if
           exit.

      *****************************************************************
      * The following Z-ROUTINES provide administrative functions     *
      * for this program.                                             *
      *****************************************************************
      * ABEND the program, post a message to the console and issue    *
      * a STOP RUN.                                                   *
      *****************************************************************
       Z-ABEND-PROGRAM.
           if  MESSAGE-TEXT not = SPACES
               perform Z-DISPLAY-TWICE-WITH-ERASE
           end-if
           move 'PROGRAM-IS-ABENDING...'  to MESSAGE-TEXT
           perform Z-DISPLAY-TWICE-WITH-ERASE
           add 12 to ZERO giving RETURN-CODE
           STOP RUN.
      *    exit.


      *****************************************************************
      * Display SYSOUT messages...                                   *
      *****************************************************************
       Z-DISPLAY-TWICE-WITH-ERASE.
           perform Z-DISPLAY-MESSAGE-TO-SYSOUT
           perform Z-DISPLAY-MESSAGE-TO-CONSOLE
           move all SPACES to MESSAGE-TEXT
           exit.

      *****************************************************************
      * Display SYSOUT messages...                                   *
      *****************************************************************
       Z-DISPLAY-MESSAGE-TO-SYSOUT.
           if MESSAGE-TEXT-2 = SPACES
               display MESSAGE-BUFFER(1:120)
           else
               display MESSAGE-BUFFER
           end-if
           exit.

      *****************************************************************
      * Display CONSOLE messages...                                   *
      *****************************************************************
       Z-DISPLAY-MESSAGE-TO-CONSOLE.
           if MESSAGE-TEXT-2 = SPACES
               display MESSAGE-BUFFER(1:120) upon console
           else
               display MESSAGE-BUFFER upon console
           end-if
           exit.

      *****************************************************************
      * Display the file status bytes. This routine will display as   *
      * four digits. If the full two byte file status is numeric it   *
      * will display as 00nn. If the 1st byte is a numeric nine (9)   *
      * the second byte will be treated as a binary number and will   *
      * display as 9nnn.                                              *
      *****************************************************************
       Z-DISPLAY-IO-STATUS.
           if  IO-STATUS not NUMERIC
           or  IO-STAT1 = '9'
               move IO-STAT1 to IO-STATUS-04(1:1)
               subtract TWO-BYTES-BINARY from TWO-BYTES-BINARY
               move IO-STAT2 to TWO-BYTES-RIGHT
               add TWO-BYTES-BINARY to ZERO giving IO-STATUS-0403
               move 'File Status is: nnnn' to MESSAGE-TEXT
               move IO-STATUS-04 to MESSAGE-TEXT(17:4)
               perform Z-DISPLAY-TWICE-WITH-ERASE
           else
               move '0000' to IO-STATUS-04
               move IO-STATUS to IO-STATUS-04(3:2)
               move 'File Status is: nnnn' to MESSAGE-TEXT
               move IO-STATUS-04 to MESSAGE-TEXT(17:4)
               perform Z-DISPLAY-TWICE-WITH-ERASE
           end-if
           exit.

      *****************************************************************
       Z-POST-COPYRIGHT.
           move SIM-TITLE(1:79) to MESSAGE-TEXT
           perform Z-DISPLAY-TWICE-WITH-ERASE
           move SIM-COPYRIGHT(1:79) to MESSAGE-TEXT
           perform Z-DISPLAY-TWICE-WITH-ERASE
           exit.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2013-10-13  Generation Time: 22:29:30:05    *
      *****************************************************************

Table of Contents Previous Section Next Section The Called Dump Routine

The following member (SIMOHEX4.cbl) is the COBOL program that creates a set of data strings containing hexadecimal dump information.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    SIMOHEX4.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      * Copyright (C) 1987-2019 SimoTime Technologies.                *
      *                                                               *
      * All rights reserved.  Unpublished, all rights reserved under  *
      * copyright law and international treaty.  Use of a copyright   *
      * notice is precautionary only and does not imply publication   *
      * or disclosure.                                                *
      *                                                               *
      * Permission to use, copy, modify and distribute this software  *
      * for any commercial purpose requires a fee to be paid to       *
      * SimoTime Technologies. Once the fee is received by SimoTime   *
      * the latest version of the software 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.                                                 *
      *                                                               *
      * Permission to use, copy and modify this software for any      *
      * non-commercial purpose and without fee is hereby granted,     *
      * 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 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                                  *
      *                                                               *
      * SimoTime Technologies                                         *
      * 15 Carnoustie Drive                                           *
      * Novato, CA 94949-5849                                         *
      * 415.883.6565                                                  *
      *                                                               *
      * RESTRICTED RIGHTS LEGEND                                      *
      * Use, duplication, or disclosure by the Government is subject  *
      * to restrictions as set forth in subparagraph (c)(1)(ii) of    *
      * the Rights in Technical Data and Computer Software clause at  *
      * DFARS 52.227-7013 or subparagraphs (c)(1) and (2) of          *
      * Commercial  Computer Software - Restricted Rights  at 48      *
      * CFR 52.227-19, as applicable.  Contact SimoTime Technologies, *
      * 15 Carnoustie Drive, Novato, CA 94949-5849.                   *
      *                                                               *
      *****************************************************************
      *      This program is provided by SimoTime Technologies        *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *****************************************************************
      *
      *****************************************************************
      * Source Member: SIMOHEX4.CBL
      * Copy Files:    HEXTABLE.CPY
      *                PASSHEX4.CPY
      *****************************************************************
      *
      * PASSHEX4 - Create Hexadecimal Dump information.
      *
      *
      * DESCRIPTION
      * -----------
      * This program will scan the source buffer and create
      * HEX-Dump information plus ASCII and EBCDIC display info.
      *
      *           ************            ************
      *           * TXTHEXJ1 *            * TXTHEXE1 *
      *           ********jcl*            ********cmd*
      *                *                       *
      *                *                       *
      *           ************            ************
      *           * IEFBR14  *            * SIMOEXEC *
      *           ********utl*            ********cbl*
      *                *                       *
      *                *************************
      *                          *
      *                          *
      *    ************     ************     ************
      *    * TEXT0512 *-----* TXTHEXC1 *-----* QSAMHEXW *
      *    *******crlf*     ********cbl*     *******crlf*
      *                          *
      *                          *           ************
      *                          *------call-* SIMOHEX4 *
      *                          *           ********cbl*
      *                          *
      *                     ************
      *                     *   EOJ    *
      *                     ************
      *
      *****************************************************************
      *
      * MAINTENANCE
      * -----------
      * 1996/03/15 Simmons, Created program.
      * 1996/03/15 Simmons, No changes to date.
      *
      *****************************************************************
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  FIVE-BYTES              pic X(5).

       01  IDX-1                   pic 9(3)    BINARY.
       01  IDX-1R                  REDEFINES IDX-1.
           05  IDX-1R-01           pic X.
           05  IDX-1R-02           pic X.
       01  IDX-2                   pic 9(3)    BINARY.

       COPY HEXTABLE.

      *****************************************************************
       LINKAGE SECTION.
       COPY PASSHEX4.

      *****************************************************************
       PROCEDURE DIVISION using PASSHEX4-PASS-AREA.

           add 8 to ZERO giving PASSHEX4-RESULT

           if  PASSHEX4-LENGTH not NUMERIC
               add 128 to ZERO giving PASSHEX4-LENGTH
           end-if

           if  PASSHEX4-LENGTH > 1024
               add 128 to ZERO giving PASSHEX4-LENGTH
           end-if

           if  PASSHEX4-REQUEST = 'DUMP'
               perform DUMP-PROCESSING
           else
               add 16 to ZERO giving PASSHEX4-RESULT
           end-if

           GOBACK.

      *****************************************************************
      * The following routines are in alphabetical sequence.          *
      *****************************************************************
       DUMP-PROCESSING.
           move all SPACES to PASSHEX4-DUMP-INFO
           perform varying IDX-2 from 1 by 1
               until IDX-2 > PASSHEX4-LENGTH
               add 1 to ZERO giving IDX-1
               move PASSHEX4-SOURCE(IDX-2:1) to IDX-1R-02
               add 1 to IDX-1
               move TAB-X1(IDX-1) to FIVE-BYTES
               move FIVE-BYTES(1:1) to PASSHEX4-UPPER(IDX-2:1)
               move FIVE-BYTES(2:1) to PASSHEX4-LOWER(IDX-2:1)
               move FIVE-BYTES(3:1) to PASSHEX4-EBCDIC(IDX-2:1)
               move FIVE-BYTES(4:1) to PASSHEX4-ASCII(IDX-2:1)
           end-perform
           exit.

      *****************************************************************
      *      This example is provided by SimoTime Technologies        *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *****************************************************************

Note:  This member is part of the SIMOMODS package that is available from SimoTime.

Link to Internet   Link to Server   Explore a complete list of the SimoTime Callable Routines or Utility Programs. This includes the callable routines and utility programs for the Micro Focus environment.

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.

Table of Contents Previous Section Next Section Set the Environment

A Windows 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"


Table of Contents Previous Section Next Section Display and Log Messages

The following (SIMONOTE.cmd) is a listing of the contents of the SimoNOTE.CMD command file.

@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 suite of programs is to provide examples that use batch COBOL programs to access VSAM, Key-Sequenced-Data-Sets (KSDS) and write information to a user-defined log file in a hexadecimal dump format. This document may be used as a tutorial for new programmers or as a quick reference for experienced programmers.

In the world of programming there are many ways to solve a problem. This documentation and software were developed and tested on systems that are configured for a SIMOTIME environment based on the hardware, operating systems, user requirements and security requirements. Therefore, adjustments may be needed to execute the jobs and programs when transferred to a system of a different architecture or configuration.

SIMOTIME Services has experience in moving or sharing data or application processing across a variety of systems. For additional information about SIMOTIME Services or Technologies please contact us using the information in the  Contact or Feedback  section of this document.

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.

SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

Table of Contents Previous Section Next Section Downloads and Links

This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.

Note: A SimoTime License is required for the items to be made available on a local system or server.

Table of Contents Previous Section Next Section Current Server or Internet Access

The following links may be to the current server or to the Internet.

Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the Link to Internet 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 Link to Server icon.

Link to Internet   Link to Server   Explore How to Produce a Hex-Dump of a VSAM, KSDS. The Hex-Dump information will be written to an ASCII/Text File and may be easily viewed using a text editor such as NotePAD.

Link to Internet   Link to Server   Explore the non-Relational Data Connection for more examples of accessing methodologies and coding techniques for Data Files and VSAM Data Sets.

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

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

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 that are used to interpret the results of accessing VSAM data sets and/or QSAM files.

Table of Contents Previous Section Next Section Internet Access Required

The following links will require an internet connect.

This suite of programs and documentation is available to download for review and evaluation purposes. Other uses will require a SimoTime Software License. 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 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.

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 Contact 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
Hex-Dump of VSAM/KSDS, Item Master File
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com