Hexadecimal Dump
Generate & Execute the Programs
  Table of Contents  v-24.01.01 - stgenp2x.htm 
  Introduction
  Objectives
  Requirements & Configuration
  Generate & Promote
  Compile & Deploy
  Execute & Review
  Sample Job Script
  Review the Results
  Technical Details
  Ancillary Functions
  Set the Environment
  Display and Log Messages
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

When Data Files or VSAM Data Sets contain binary data the ability to view the records in a Hex-Dump format is quite useful. When the unexpected occurs in a test or production environment this ability becomes a requirement. For example, when a system error message such as a "S0C7" or "non-numeric in numeric field" message is encountered the ability to view the content of a Packed-Decimal (COMP-3) numeric field can quickly validate the source of the problem.

This document will focus on the task of generating COBOL programs that will read data files or VSAM Data Sets and produce Hexadecimal Dump information of selected records based on a user request. The generation phase will require a Windows system. The generated source code may be compiled and executed on a system of choice.

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


We have made a significant effort to ensure the documents and software technologies are correct and accurate. We reserve the right to make changes without notice at any time. The function delivered in this version is based upon the enhancement requests from a specific group of users. The intent is to provide changes as the need arises and in a timeframe that is dependent upon the availability of resources.

Copyright © 1987-2025
SimoTime Technologies and Services
All Rights Reserved

Table of Contents Previous Section Next Section Objectives

This example illustrates the following functions.

1. Describe and demonstrate how to generate, compile and execute a program that will read a file and produce a Hex-Dump presentation of records in the file.
2. Describe and demonstrate the program generation process.
3. Describe and demonstrate the program compilation process.
4. Describe and demonstrate the program execution process.

 

Table of Contents Previous Section Next Section Requirements & Configuration

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

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

 

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

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

Table of Contents Previous Section Next Section Generate & Promote

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

The following diagram shows the logic flow for a batch job that describes and demonstrates how to use a template to create new COBOL programs that will be used to produce Hexadecimal Dump information.

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

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

The programs that produce Hexadecimal Dump information are categorized as Data Validation programs. The working library for generating Data Validation programs is C:\SIMOUSER\DEVL\SIMOGENS\COGITATE.

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

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

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

 

This completes the "Generate & Promote" process.

Table of Contents Previous Section Next Section Compile & Deploy

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

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

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

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

 

This completes the "Compile & Deploy" process.

Table of Contents Previous Section Next Section Execute & Review

The following diagram shows the logic flow for a batch job that will be used to produce Hexadecimal Dump information.

             
Job Script
cmd
Job Name is CUHEXKW3.cmd
   
ENV1BASE
cmd
 
 
Environment
variables
Prepare the System Environment
   
SYSUT1
Note-1
   
   
CUHEXKC3
cbl
 
 
SYSUT2
Note-2
Read VSAM/KSDS, write Hex-Dump to Sequential
   
   
SYSUT3
Note-3
   
   
   
Model or Template file.
   
EOJ
End-of-Job
 
Note-1: SYSUT1 is mapped to the physical file name for the VSAM/KSDS.
Note-2: SYSUT2 is mapped to the physical file name of a Sequential Output File that will contain the Hex Dump information.
Note-3: SYSUT3 is mapped to the physical file name of a Sequential Input File that will contain a list of keys for accessing the VSAM/.KSDS.
Hex-Dump Function, Program Execution Logic Flow
 

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

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

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

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

 

This completes the "Execute" process.

Table of Contents Previous Section Next Section Sample Job Script

The following (CUHEXKW3.cmd) is a listing of the contents of the file. This job will map the file names and execute the program that produces Hexadecimal Dump information.

@echo OFF
     set CmdName=CUHEXKW3
rem  * *******************************************************************
rem  *               CUHEXKW3.cmd - a Windows Command File               *
rem  *       This Job Scriptis provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read KSDS, write HEX-Dump RSEQ.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read a VSAM, KSDS and write
rem  * to a new Hex-Dump record sequential file.
rem  *
rem  *    ************
rem  *    * CUHEXKW3 *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    * ENV1BASE *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    * SimoNOTE *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    *   RUN    *---------------------------*
rem  *    ********rts*                           *
rem  *         *           ************     ************     ************
rem  *         *           *  SYSUT1  *--*--* CUHEXKC3 *-----*  SYSUT2  *
rem  *         *           *******ksds*  *  ********cbl*     *******rseq*
rem  *         *                         *
rem  *         *           ************  *
rem  *         *           *  SYSUT3  *--*
rem  *         *           *******rseq*
rem  *    ************
rem  *    *   EOJ    *
rem  *    ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Set Environment Variables
rem  *         Delete any previously created work  filef...
rem  *
     call ..\ENV1BASE
     set SYSOUT=%BaseLib1%\LOGS\SYSOUT_%CmdName%.txt
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     call SimoNOTE "Identify JobStep Step-1, Housekeeping tasks"
     set SYSUT1=%BaseLib1%\DATA\WRK1\SIMOTIME.DATA.CUSKA512.dat
     set SYSUT2=%BaseLib1%\DATA\WRK1\SIMOTIME.HEXDUMP.CUSKA512.dat
     set SYSUT3=%BaseLib1%\DATA\WRK1\SIMOTIME.HEXDUMP.USERKEYS.dat
rem  *
rem  * *******************************************************************
rem  * Step 2, Create a file that is a list of Customer Numbers...
rem  *
     call SimoNOTE "Identify JobStep Step-2, Create a list of keys"
     set SYSWORK=%BaseLib1%\DATA\TXT1\SIMOTIME.HEXDUMP.USERKEYS.txt
     if exist %SYSWORK% del %SYSWORK%
rem  * ..:....1....:....2....:....3....:....4....:....5....:....6....
echo /USERKEY   000000000010>%SYSWORK%
echo /USERKEY   123456789012>>%SYSWORK%
echo /USERKEY   000000000225>>%SYSWORK%
echo /USERKEY   000000000194>>%SYSWORK%
echo /USERKEY   000000000020>>%SYSWORK%
     call SimoNOTE "StepInfo Convert Line Sequential to Record Sequential"
     set GETLS080=%SYSWORK%
     set PUTRS080=%SYSUT3%
     if exist %PUTRS080% del %PUTRS080%
     run CV80ALAR
     if not ERRORLEVEL = 0 set JobStatus=0030
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, Read KSDS, create a new Hex-Dump RSEQ File
rem  *
     call SimoNOTE "Identify JobStep Step-3, Execute Hex-Dump Program"
     call SimoNOTE "DataTake KSA SYSUT1=%SYSUT1%"
     call SimoNOTE "DataDump RSA SYSUT2=%SYSUT2%"
     call SimoNOTE "DataKeys RSA SYSUT3=%SYSUT3%"
     run CUHEXKC3
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto EojNOK
rem  *
rem  * *******************************************************************
rem  * Step 4, End-of-Job processing...
rem  *
:EojAOK
     call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNOK
     call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus%"
     echo %DATE% - %TIME% Starting User ABEND Processing...>>%SYSLOG%
     set >>%SYSLOG%
     echo %DATE% - %TIME% Complete User ABEND Processing...>>%SYSLOG%
     goto :End
:End
     call SimoNOTE "Conclude SYSOUT is %SYSOUT%"
     if not "%1" == "nopause" pause
     exit /B %JobStatus%

Table of Contents Previous Section Next Section Review the Results

The following shows the output report that is posted to a sequential file. This file should have the same record length as the input file.

This is the Hex-Dump of the records in the Customer Master File. The records were selected by using a control file that contained a list of primary keys.

The 1st line is the record position indicator.
The 2nd line is the possible EBCDIC character or symbol.
The 3rd line is the high-order nibble of the byte for the Hex-dump.
The 4th line is the low-order nibble of the byte for the Hex-dump.
The 5th line is the possible ASCII character or symbol.

********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
* CUHEXKC3 HEX-Dump by Key for KSDS 512/1-12  v18.06.01   helpdesk@simotime.com
* CUHEXKC3 This Data File HexDump Member was generated by SimoTime Technologies
********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
Starting, HEX-Dump by Key for KSDS 512/1-12  http://www.SimoTime.com
/USERKEY   000000000010
....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80....:...90....:..100....:..110....:..120....:..130....:..140....:..150....:..160....:..170....:..180....:..190....:..200....:..210....:..220....:..230....:..240....:..250....:..260....:..270....:..280....:..290....:..300....:..310....:..320....:..330....:..340....:..350....:..360....:..370....:..380....:..390....:..400....:..410....:..420....:..430....:..440....:..450....:..460....:..470....:..480....:..490....:..500....:..510..
............€θ/`%?Κ€€€€€€€€€€€€€€€€€€€€€€α%Ρ:/ΒΑΘΗ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€.€η/`ΑΛ€λΘΚΑΑΘ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€.>ΕΑ%ΑΛ€€€€€€€€€€€€€€€€€€€€€&κ€€€€€€€€€€€€€€€€€€€€€€€€€€.....€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€...........€€€€€€€€.......€€€€€€€€.......€€€€€€€€...................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
33333333333325676672222222222222222222222466766676222222222222222222222222222222232467672577667222222222222222222222222222222222222222222222222222222222222222222222222222222222246666672222222222222222222225522222222222222222222222222333332222222222222222222222222222222222222222222222222222222222222000000333332222222200333332222222200333332222222233333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
0000000000100419CF200000000000000000000005C9A1254800000000000000000000000000000008081953034255400000000000000000000000000000000000000000000000000000000000000000000000000000000001E75C530000000000000000000000200000000000000000000000000006110000000000000000000000000000000000000000000000000000000000000000F00000000000000000000000000000000000000000000020180703134025850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000010 Taylor                      Elizabeth                               8 Hayes Street                                                                                  Angeles                     PR                          00611                                                             ......00000        ..00000        ..00000        2018070313402585000
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
/USERKEY   123456789012, Record not found
/USERKEY   000000000225
....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80....:...90....:..100....:..110....:..120....:..130....:..140....:..150....:..160....:..170....:..180....:..190....:..200....:..210....:..220....:..230....:..240....:..250....:..260....:..270....:..280....:..290....:..300....:..310....:..320....:..330....:..340....:..350....:..360....:..370....:..380....:..390....:..400....:..410....:..420....:..430....:..440....:..450....:..460....:..470....:..480....:..490....:..500....:..510..
............€η/ΚΞΑ`€€€€€€€€€€€€€€€€€€€€€€+?Κ_/>€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€....€&/ΔΡΓΡΔ€.ΞΑ>ΝΑ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€η?%`?,Α€€€€€€€€€€€€€€€€€€€€€(.€€€€€€€€€€€€€€€€€€€€€€€€€€.....€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€...........€€€€€€€€.......€€€€€€€€.......€€€€€€€€...................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
33333333333324677672222222222222222222222467666222222222222222222222222222222222233332566666624766762222222222222222222222222222222222222222222222222222222222222222222222222222246676662222222222222222222224422222222222222222222222222333332222222222222222222222222222222222222222222222222222222222222000000333332222222200333332222222200333332222222233333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
00000000022508126590000000000000000000000EF2D1E00000000000000000000000000000000008607001396930165E55000000000000000000000000000000000000000000000000000000000000000000000000000008FC9FB5000000000000000000000D100000000000000000000000000010400000000000000000000000000000000000000000000000000000000000000000F00000000000000000000000000000000000000000000020180703134025850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000225 Harvey                      Norman                                  8607 Pacific Avenue                                                                             Holyoke                     MA                          01040                                                             ......00000        ..00000        ..00000        2018070313402585000
/USERKEY   000000000194
....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80....:...90....:..100....:..110....:..120....:..130....:..140....:..150....:..160....:..170....:..180....:..190....:..200....:..210....:..220....:..230....:..240....:..250....:..260....:..270....:..280....:..290....:..300....:..310....:..320....:..330....:..340....:..350....:..360....:..370....:..380....:..390....:..400....:..410....:..420....:..430....:..440....:..450....:..460....:..470....:..480....:..490....:..500....:..510..
............€δΗ/ΞΑ:€€€€€€€€€€€€€€€€€€€€€€.>>ΡΑ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€..€οΡ%%?Ο€δ?ΝΚΘ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€δ/Κ?%Ρ>/€€€€€€€€€€€€€€€€€€€€&κ€€€€€€€€€€€€€€€€€€€€€€€€€€.....€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€...........€€€€€€€€.......€€€€€€€€.......€€€€€€€€...................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
33333333333324667672222222222222222222222466662222222222222222222222222222222222233256666724677722222222222222222222222222222222222222222222222222222222222222222222222222222222246766666222222222222222222225522222222222222222222222222333332222222222222222222222222222222222222222222222222222222222222000000333332222222200333332222222200333332222222233333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
000000000194038165A00000000000000000000001EE950000000000000000000000000000000000089079CCF703F524000000000000000000000000000000000000000000000000000000000000000000000000000000000312FC9E1000000000000000000000200000000000000000000000000009880000000000000000000000000000000000000000000000000000000000000000F00000000000000000000000000000000000000000000020180703134025850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000194 Chavez                      Annie                                   89 Willow Court                                                                                 Carolina                    PR                          00988                                                             ......00000        ..00000        ..00000        2018070313402585000
/USERKEY   000000000020
....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80....:...90....:..100....:..110....:..120....:..130....:..140....:..150....:..160....:..170....:..180....:..190....:..200....:..210....:..220....:..230....:..240....:..250....:..260....:..270....:..280....:..290....:..300....:..310....:..320....:..330....:..340....:..350....:..360....:..370....:..380....:..390....:..400....:..410....:..420....:..430....:..440....:..450....:..460....:..470....:..480....:..490....:..500....:..510..
............€κ?ΒΡ>Λ?>€€€€€€€€€€€€€€€€€€€€ΰ?Κ?ΘΗ`€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€....€λ/>Λ?_Α€λΘΚΑΑΘ€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€δ/ΛΘ/>ΑΚ€€€€€€€€€€€€€€€€€€€€&κ€€€€€€€€€€€€€€€€€€€€€€€€€€.....€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€...........€€€€€€€€.......€€€€€€€€.......€€€€€€€€...................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
33333333333325666676622222222222222222222467676722222222222222222222222222222222233332566766625776672222222222222222222222222222222222222222222222222222222222222222222222222222246776667222222222222222222225522222222222222222222222222333332222222222222222222222222222222222222222222222222222222222222000000333332222222200333332222222200333332222222233333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
00000000002002F29E3FE000000000000000000004F2F4890000000000000000000000000000000009805031E3FD503425540000000000000000000000000000000000000000000000000000000000000000000000000000031341E52000000000000000000000200000000000000000000000000006310000000000000000000000000000000000000000000000000000000000000000F00000000000000000000000000000000000000000000020180703134025850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000020 Robinson                    Dorothy                                 9805 Sansome Street                                                                             Castaner                    PR                          00631                                                             ......00000        ..00000        ..00000        2018070313402585000

********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
Conclude, HEX-Dump by Key for KSDS 512/1-12
000000004 - Line count for SYSUT1
000000004 - Line count for SYSUT2

Table of Contents Previous Section Next Section Technical Details

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

Table of Contents Previous Section Next Section Ancillary Functions

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

Table of Contents Previous Section Next Section Set the Environment

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

@echo OFF
rem  * *******************************************************************
rem  *               ENV1BASE.cmd - a Windows Command File               *
rem  *        This program is provided by SimoTime Technologies          *
rem  *           (C) Copyright 1987-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. The command is used to provide a consistent process for logging and displaying messages.

@echo OFF
rem  * *******************************************************************
rem  *               SIMONOTE.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *            (C) Copyright 1987-2019 All Rights Reserved            *
rem  *              Web Site URL:   http://www.simotime.com              *
rem  *                    e-mail:   helpdesk@simotime.com                *
rem  * *******************************************************************
rem  *
rem  * Text    - Display message on screen and write to a log file.
rem  * Author  - SimoTime Technologies
rem  *
rem  * This script may be called from other scripts and expects a single
rem  * parameter enclosed in double quotes. The double quotes will be
rem  * removed. Before writing to the log file a date and time stamp
rem  * will be inserted in front of the message text.
rem  *
rem  * Note: The tilde (~) removes leading/trailing double-quotes.
rem  *
if "%SimoNOTE%" == "" set SimoNOTE=c:\SimoLIBR\LOGS\SimoTime.LOG
echo %date% %time% %~1>> %SimoNOTE%
echo %~1

Table of Contents Previous Section Next Section Summary

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

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

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

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

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

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

Table of Contents Previous Section Next Section Downloads and Links

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

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

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

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

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

Link to Internet   Link to Server   Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.

Link to Internet   Link to Server   Explore The File Status Return Codes 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.

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 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
Hex Dump Processing
Copyright © 1987-2025
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com