Convert with Hex-Dump
Text, Binary, Packed & Decimal Data
  Table of Contents  v-24.01.01 - cvn25601.htm 
  Introduction
  Overview of Data Convert
  Convert ASCII to EBCDIC
  Execute the File Convert
  CMD Files
  CMD, EBCDIC to ASCII
  CMD, ASCII to EBCDIC
  JCL Members
  JCL, EBCDIC to ASCII
  JCL, ASCII to EBCDIC
  Review of the Convert Process
  Hex-Dump of ASCII-encoded File
  CMD, Create Hex-Dump
  JCL, Create Hex-Dump
  Hex-Dump View of ASCII-encoded File
  Hex-Dump of EBCDIC-encoded File
  CMD, Create Hex-Dump
  JCL, Create Hex-Dump
  Hex-Dump View of EBCDIC-encoded File
  Technical Details
  Record Structure Definitions
  Format for Numbers
  Binary Format for Numbers
  Packed-Decimal Format for Numbers
  Zoned-Decimal Format for Numbers
  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 document (with sample programs) describes and demonstrates some of the challenges of moving data files between a Mainframe System and a Windows System. A data file with records containing text strings and numeric fields (Binary, Packed-Decimal and Zoned Decimal) will be converted between EBCDIC and ASCII while maintaining mainframe numeric integrity. The sample programs will show techniques for displaying a record in a hexadecimal dump format. The COBOL programs are generated using SimoTime Technologies and may be compiled and executed on a Mainframe System with ZOS or a Windows System with Micro Focus Enterprise Developer.

This document will focus on the ASCII and EBCDIC data conversion techniques and is 1 of 5 documents from the following list.

The following is a list of the five (5) documents included in this model for data management functions of non-relational data structures. The functions include data conversion (file structure and record content), record presentation in hexadecimal format with possible ASCII and EBCDIC character translations and the accumulation of summary totals with record counts.

Link to Internet   Link to Server   Explore the ASCII and EBCDIC data conversion techniques for a file that contains text strings and numeric fields of various formats such as BINARY, PACKED-Decimal and ZONED-Decimal. A Mainframe System and the COBOL programming language supports a variety of different numeric formats that will be discussed in this document.

Link to Internet   Link to Server   Explore how to create hexadecimal dump information of the records in a sequential file. The records may contain text strings and numeric fields of various formats such as BINARY, PACKED-Decimal and ZONED-Decimal. In addition to the Hex-Dump information the possible ASCII and EBCDIC character will be identified.

Link to Internet   Link to Server   Explore how to accumulate summary totals for currency or numeric fields that are defined (or formatted) as Binary, Packed Decimal or Zoned Decimal. The record count is included as one of the summary totals.

Link to Internet   Link to Server   Explore how to create a file that contains text and binary data. This document describes a model for creating a record sequential file that contains text strings that use EBCDIC or ASCII encoding and various numeric formats such as BINARY, PACKED-Decimal and ZONED-Decimal. This model has the capability of creating a test file for an ASCII or EBCDIC encoded environment. This document will address many of the challenges of doing a record content conversion of a file that will be transferred between an EBCDIC-encoded Mainframe System and an ASCII-encoded Linux, UNIX or Windows System.

Link to Internet   Link to Server   Explore how to generate programs (or COBOL source code) to perform various data management functions for non-relational data structures. The functions described in this document include data conversion (file structure and record content), hexadecimal dumps and summary totals accumulation.


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 Overview of Data Convert

This conversion process uses generated COBOL programs to do the actual data file convert. The programs are generated on a Windows System using SimoTime Technology and Micro Focus COBOL technology. The advantage to this approach is that once the COBOL programs are generated they may be compiled and executed on a Mainframe System (ZOS or VSE) or a Windows, UNIX or Linux System (Micro Focus COBOL required).

Table of Contents Previous Section Next Section Convert ASCII to EBCDIC

The following is a flowchart of the job for executing the ASCII to EBCDIC conversion.

             
Entry Point
ZOS
Entry Point
Windows
   
   
CVN256J2
jcl
CVN256W2
cmd
JCL or CMD for Job Scripting
   
   
IEFBR14
Utility
IF Exist
statement
Delete previously created output files
   
   
 
 
   
   
 
 
   
   
   
   
 
 
 
 
   
   
   
SYSUT1
ASCII
encoded
 
 
CVN256C2
calls
CVN256R2
 
 
SYSUT2
EBCDIC
encoded
Two COBOL programs that do the conversion.
   
   
   
   
 
 
No
 
 
 
 
End of File
Yes
EOJ
End of Job
An ASCII to EBCDIC Field Convert based on a COBOL Copy File

The main program (CVN256C2) will read a Sequential file containing 256-byte, fixed-length, ASCII-encoded records and write a Sequential file containing 256-byte, fixed-length, EBCDIC-encoded records. The source code for the CMD file, the JCL member and the COBOL programs is available and may need to be modified to compile and execute in your environment.

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

Table of Contents Previous Section Next Section Execute the File Convert

This suite of batch jobs will describe and demonstrate the following items.

1. Batch Jobs
1.1. Convert an EBCDIC-encoded File with BINARY, PACKED and ZONED Numeric formats to an ASCII-encoded file while maintaining mainframe numeric integrity.
1.2. Convert an ASCII-encoded File with BINARY, PACKED and ZONED Numeric formats to EBCDIC-encoded file while maintaining mainframe numeric integrity.

 

A set of CMD Files and JCL Members are available from SimoTime to run the preceding batch jobs.

Table of Contents Previous Section Next Section CMD Files

The first CMD File will do the EBCDIC to ASCII conversion. The second CMD File will do the ASCII to EBCDIC conversion.

Table of Contents Previous Section Next Section CMD, EBCDIC to ASCII

The following (CVN256W1.cmd) is an example of a Windows CMD needed to run a job that does an EBCDIC to ASCII conversion. This CMD will run on a Windows System using Micro Focus COBOL.

@echo OFF
rem  * *******************************************************************
rem  *               CVN256W1.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   - Read EBCDIC File, write ASCii File.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an EBCDIC-encoded Sequential File and write
rem  * to a new ASCII-encoded Sequential File. Both files contain
rem  * 256-byte fixed-length records with text strings and numeric
rem  * fields defined as BINARY, Packed-Decimal and Zoned-Decimal.
rem  *
rem  *    ************
rem  *    * CVN256W1 *
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  *         *           ************     * CVN256C1 *     ************
rem  *         *           *  SYSUT1  *-----*    --    *-----*  SYSUT2  *
rem  *         *           *******rseq*     * CVN256R1 *     *******rseq*
rem  *         *                            ********cbl*
rem  *    ************
rem  *    *   EOJ    *
rem  *    ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Set Environment Variables
rem  *         Delete any previously created ASCII-encoded file...
rem  *
     call ..\Env1BASE
     set CmdName=CVN256W1
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     call SimoNOTE "Identify JobStep Step-1, Housekeeping tasks"
     set SYSUT1=%BaseLib1%\DATA\EBC1\SIMOEBC1.HEXDATA.MKN256D1.DAT
     set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDATA.MKA256D1.DAT
     if exist %SYSUT2% del %SYSUT2%
rem  *
rem  * *******************************************************************
rem  * Step 2, Read EBCDIC-encoded RSEQ, create a new ASCII-encoded RSEQ
rem  *
     call SimoNOTE "Identify JobStep Step-2, Execute ASCII to EBCDIC Convert"
     call SimoNOTE "DataTake SYSUT1=%SYSUT1%"
     call SimoNOTE "DataMake SYSUT2=%SYSUT2%"
     run CVN256C1
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto EojNOK
     if exist %SYSUT2% goto EojAOK
     set JobStatus=0020
     goto EojNOK
:EojAOK
     call SimoNOTE "Produced  %SYSUT2%"
     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 CMD, ASCII to EBCDIC

The following (CVN256W2.cmd) is an example of a Windows CMD needed to run a job that does an ASCII to EBCDIC conversion. This CMD will run on a Windows System using Micro Focus COBOL.

@echo OFF
rem  * *******************************************************************
rem  *               CVN256W2.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   - Read ASCII File, write EBCDIC File.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an ASCII-encoded Sequential File and write
rem  * to a new EBCDIC-encoded Sequential File. Both files contain
rem  * 256-byte fixed-length records with text strings and numeric
rem  * fields defined as BINARY, Packed-Decimal and Zoned-Decimal.
rem  *
rem  *    ************
rem  *    * CVN256W2 *
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  *         *           ************     * CVN256C2 *     ************
rem  *         *           *  SYSUT1  *-----*    --    *-----*  SYSUT2  *
rem  *         *           *******rseq*     * CVN256R2 *     *******rseq*
rem  *         *                            ********cbl*
rem  *    ************
rem  *    *   EOJ    *
rem  *    ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Set Environment Variables
rem  *         Delete any previously created EBCDIC-encoded file...
rem  *
     call ..\Env1BASE
     set CmdName=CVN256W2
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     call SimoNOTE "Identify JobStep Step-1, Housekeeping tasks"
     set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOASC1.HEXDATA.MKN256D1.DAT
     set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDATA.MKE256D1.DAT
     if exist %SYSUT2% del %SYSUT2%
rem  *
rem  * *******************************************************************
rem  * Step 2, Read ASCII-encoded RSEQ, create a new EBCDIC-encoded RSEQ
rem  *
     call SimoNOTE "Identify JobStep Step-2, Execute ASCII to EBCDIC Convert"
     call SimoNOTE "DataTake SYSUT1=%SYSUT1%"
     call SimoNOTE "DataMake SYSUT2=%SYSUT2%"
     run CVN256C2
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto EojNOK
     if exist %SYSUT2% goto EojAOK
     set JobStatus=0020
     goto EojNOK
:EojAOK
     call SimoNOTE "Produced  %SYSUT2%"
     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 JCL Members

The first JCL Member will do the EBCDIC to ASCII conversion. The second JCL Member will do the ASCII to EBCDIC conversion.

Table of Contents Previous Section Next Section JCL, EBCDIC to ASCII

The following (CVN256J1.jcl) is an example of a JCL Member needed to run a job that does an EBCDIC to ASCII conversion. This JCL will run on a Mainframe System with ZOS or a Linux, UNIX or Windows System using Micro Focus Enterprise Server.

//CVN256J1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       CVN256J1.jcl - a JCL Member for Batch Job Processing        *
//*       This JCL Member is provided by SimoTime Technologies        *
//*           (C) Copyright 1987-2019 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Convert EBCDIC-encoded file to ASCII-encoded.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* Step 1, JOBSETUP will delete any previously.
//* Step 2, USERCONV will produce a Hex-Dump of the merged file.
//*
//* This set of programs will run on a mainframe under ZOS or on a
//* Windows System and Micro Focus Enterprise Server or Studio.
//*
//* 1. Demonstrate how to use IEFBR14 with DD statements to delete
//*    files that have been created by a previous execution of this
//*    job.
//* 5. Demonstrate how to do EBCDIC to ASCII conversion of a Sequential
//*    file containing 256-byte, fixed-length records.
//*
//* *******************************************************************
//* Step 1 of 2, Delete any previously created file...
//*
//JOBSETUP EXEC PGM=IEFBR14
//IEFUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKA256D2,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 2, Convert EBCDIC-encoded file to ASCII-encoded...
//*
//HEXDUMP1 EXEC PGM=CVN256C1
//SYSUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKE256D1,
//             DISP=SHR
//SYSUT2   DD  DSN=SIMOTIME.HEXRSEQ.MKA256D2,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//

Table of Contents Previous Section Next Section JCL, ASCII to EBCDIC

The following (CVN256J2.jcl) is an example of a JCL Member needed to run a job that does an ASCII to EBCDIC conversion. This JCL will run on a Mainframe System with ZOS or a Linux, UNIX or Windows System using Micro Focus Enterprise Server.

//CVN256J2 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       CVN256J2.jcl - a JCL Member for Batch Job Processing        *
//*       This JCL Member is provided by SimoTime Technologies        *
//*           (C) Copyright 1987-2019 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Convert ASCII-encoded file to EBCDIC-encoded.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* Step 1, JOBSETUP will delete any previously.
//* Step 2, USERCONV will produce a new EBCDIC-encode file file.
//*
//* This set of programs will run on a mainframe under ZOS or on a
//* Windows System and Micro Focus Enterprise Server or Studio.
//*
//* 1. Demonstrate how to use IEFBR14 with DD statements to delete
//*    files that have been created by a previous execution of this
//*    job.
//* 5. Demonstrate how to do ASCII to EBCDIC conversion of a Sequential
//*    file containing 256-byte, fixed-length records.
//*
//* *******************************************************************
//* Step 1 of 2, Delete any previously created file...
//*
//JOBSETUP EXEC PGM=IEFBR14
//IEFUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKE256D2,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 2, Convert EBCDIC-encoded file to ASCII-encoded...
//*
//HEXDUMP1 EXEC PGM=CVN256C2
//SYSUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKA256D1,
//             DISP=SHR
//SYSUT2   DD  DSN=SIMOTIME.HEXRSEQ.MKE256D2,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//

Table of Contents Previous Section Next Section Review of the Convert Process

The output of this data conversion process is a record sequential file containing 256-byte, fixed-length records. The encoding schema for the text strings will be dependent on the direction of conversion between EBCDIC and ASCII. Since the conversion is done at the field level the numeric integrity is maintained.

Table of Contents Previous Section Next Section Hex-Dump of ASCII-encoded File

A CMD File and JCL Member are available from SimoTime to run the batch jobs.

Table of Contents Previous Section Next Section CMD, Create Hex-Dump

The following (HXN256W1.cmd) is an example of a Windows CMD needed to run a job and produce a file of HEX-Dump information for the ASCII-encoded file. This CMD will run on a Windows platform using Micro Focus COBOL.

@echo OFF
rem  * *******************************************************************
rem  *               HXN256W1.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   - Read RSEQ, write HEX-Dump RSEQ.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an ASCII-encoded record sequential file and
rem  * write to a new Hex-Dump record sequential file.
rem  *
rem  *    ************
rem  *    * HXN256W1 *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    * ENV1BASE *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    * SimoNOTE *
rem  *    ********cmd*
rem  *         *
rem  *         *
rem  *    ************
rem  *    *   CMD    *---------------------------*
rem  *    ********win*                           *
rem  *         *           ************     ************     ************
rem  *         *           * INSTREAM *-----*   ECHO   *-----* GETLS080 *
rem  *         *           *******lseq*     ********cmd*     *******lseq*
rem  *         *
rem  *         *
rem  *    ************
rem  *    *   RUN    *---------------------------*
rem  *    ********rts*                           *
rem  *         *           ************     ************     ************
rem  *         *           * GETLS080 *-----* CV80ALAR *-----* PUTRS080 *
rem  *         *           *******lseq*     ********cmd*     *******rseq*
rem  *         *
rem  *         *
rem  *    ************
rem  *    *   RUN    *---------------------------*
rem  *    ********rts*                           *
rem  *         *           ************     ************
rem  *         *           *  SYSUT1  *--*--* HXR256C1 *
rem  *         *           *******rseq*  *  ********cbl*
rem  *         *                         *       *
rem  *         *           ************  *  ************     ************
rem  *         *           *  SYSUT3  *--*  * SIMOV32K *-----* SYSPROBE *
rem  *         *           *******rseq*     ********cbl*     *******vseq*
rem  *    ************
rem  *    *   EOJ    *
rem  *    ************
rem  *
rem  * *******************************************************************
rem  * Set Environment Variables and map system file names.
rem  *
     call ..\Env1BASE
     set CmdName=HXN256W1
     set SYSOUT=%BaseLib1%\LOGS\SYSOUT_%CmdName%.txt
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
rem  *
rem  * *******************************************************************
rem  * Step 1, Pipe records to LSEQ Control file using ECHO command
rem  *
     call SimoNOTE "Identify JobStep Step-1, Pipe records to LSEQ Control file using ECHO command"
     set GETLS080=%BaseLib1%\DATA\WRK1\SIMOTIME.HEXCNTL.MKN256U0.DAT
     echo /RANGE     2 10>%GETLS080%
rem  *
rem  * *******************************************************************
rem  * Step 2, Read LSEQ, create an RSEQ Control file
rem  *
     call SimoNOTE "Identify JobStep Step-2, Read LSEQ, create an RSEQ Control file"
     set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.HEXCNTL.MKN256U1.DAT
     run CV80ALAR
rem  *
rem  * *******************************************************************
rem  * Step 3, Read RSEQ Control and Data file, create Hex-Dump VREC
rem  *
     call SimoNOTE "Identify JobStep Step-3, Read RSEQ Control and Data file, create Hex-Dump VREC"
     set   SYSUT1=%BaseLib1%\DATA\ASC1\SIMOASC1.HEXDATA.MKN256D1.DAT
     set   SYSUT3=%PUTRS080%
     set SYSPROBE=%BaseLib1%\DATA\ASC1\SIMOASC1.HEXDUMP.MKN25601.DAT
     call SimoNOTE "DataTake RSEQ   SYSUT1=%SYSUT1%"
     call SimoNOTE "RecRange RSEQ   SYSUT3=%SYSUT3%"
     call SimoNOTE "DataDump VSEQ SYSPROBE=%SYSPROBE%"
     run HXR256C1
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto EojNOK
rem  *
rem  * *******************************************************************
rem  * 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 JCL, Create Hex-Dump

The following (HXN256J1.cmd) is an example of a JCL Member needed to run a job and produce a file of HEX-Dump information for the ASCII-encoded file. This JCL will run on a Mainframe System with ZOS or a Linux, UNIX or Windows System using Micro Focus Enterprise Server.

//HXN256J21 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       HXN256J1.jcl - a JCL Member for Batch Job Processing        *
//*       This JCL Member is provided by SimoTime Technologies        *
//*           (C) Copyright 1987-2019 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Hex-Dump of Sequential file containing 256-byte records.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will read an ASCII-encoded record sequential file.
//* Step 1, JOBSETUP will delete any previously.
//* Step 2, HEXDUMP1 will produce a Hex-Dump of the user data file.
//*
//* This set of programs will run on a mainframe under ZOS or on a
//* Windows System and Micro Focus Enterprise Server or Studio.
//*
//* 1. Demonstrate how to use IEFBR14 with DD statements to delete
//*    files that have been created by a previous execution of this
//*    job.
//* 5. Demonstrate how to create a Hexadecimal Dump of a Sequential
//*    file containing 256-byte, fixed-length records.
//*
//* *******************************************************************
//* Step 1 of 2, Delete any previously created file...
//*
//JOBSETUP EXEC PGM=IEFBR14
//IEFUT1   DD  DSN=SIMOTIME.HEXDUMP.MKA256D1,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSPROBE DD  DSN=SIMOTIME.HEXDUMP.MKA256V1,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=V,LRECL=32760,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 2, Produce a Hex-Dump of the ASCII-encoded file...
//*
//HEXDUMP1 EXEC PGM=HXR256C1
//SYSUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKA256D1,
//             DISP=SHR
//SYSUT2   DD  DSN=SIMOTIME.HEXDUMP.MKA256D1,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSPROBE DD  DSN=SIMOTIME.HEXDUMP.MKA256V1,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=V,LRECL=32760,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//

Table of Contents Previous Section Next Section Hex-Dump View of ASCII-encoded File

The hexadecimal dump for a data file is presented as five (5) lines of information. The 1st line is a position indicator. The 2nd line is the possible character interpretation for an ASCII encoding schema. The 3rd line is the hexadecimal value (0-9 and A-F) for the high-order nibble (or first 4 bits) of the byte. The 4th line is the hexadecimal value (0-9 and A-F) for the low-order nibble (or second 4 bits) of the byte. The 5th line is the possible character interpretation for an EBCDIC encoding schema.

The following is an example of a hex-dump for an ASCII encoded file.

*******************************************************************************
* HXR256C1 Batch, HEX-Dump for RSEQ LRECL=256 v15.09.23   helpdesk@simotime.com
* HXR256C1 This Data File HexDump Member was generated by SimoTime Technologies
*******************************************************************************
Starting  - Batch, HEX-Dump for RSEQ LRECL=256          http://www.SimoTime.com
*
....:...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......
ATAG00001                       ÿÿÎNÿÿÏÇÿí)¦ÿ..Àÿô..1...09..ÖZ..â@.....r-.4].4R-.#Em.-...r/.4_.4R/.#Eo./00001272r1234u123452r12345v1r00001272212345123452212345612                                                                                      END00001
45443333322222222222222222222222FFC4FFCCFE2AFF1CFF003B003301D500E40000172135135202460200172135135202460233333333733337333333733333737333333333333333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222244433333
14170000100000000000000000000000FFEEFFF7FD96FED0F400120009026A01200C0022D24D242D135D1D0022F24F242F135F1F0000127221234512345221234561200001272212345123452212345612000000000000000000000000000000000000000000000000000000000000000000000000000000000000005E400001
.è.å.....€€€€€€€€€€€€€€€€€€€€€€€ŸŸó+ŸŸõGŸÒ.wŸÚ.{Ÿ4...¥......O!..S .....Ê...)..ê...á_.....Ê...¬..ê...á?..........Ê....Í......Ê.....Î.Ê.............................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€á+à.....
*
....:...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......
ATAG00002                       ....ÿÿü.ÿÿÿ8ÿÿÿýÿü.......è...È................ ....=.M.......... ....?.O0000000000100p000020p00000s0t00000000001000000020000000304                                                                                      END00002
454433333222222222222222222222220000FFF1FFF3FFFFFF0000000E000C00000000000000002000030400000000002000030433333333333337333333733333737333333333333333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222244433333
141700002000000000000000000000000000FFC8FFF8FFFDFC0000003800080003040000C10D000D000D0D0000F10F000F000F0F0000000000100000002000000030400000000001000000020000000304000000000000000000000000000000000000000000000000000000000000000000000000000000000000005E400002
.è.å.....€€€€€€€€€€€€€€€€€€€€€€€....ŸŸÜ.ŸŸŸ.ŸŸŸÙŸÜ.......Y...H................€......(..........€......|.............ø......ø.....Ë.È.............................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€á+à.....
*
....:...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......
ATAG00003                       ÿÿ..ÿÿè.ÿÿýDÿÿÿøÿ....ô...p.............P......p..........P......p......Ÿ00000050p0600p000070p00000x0y00000050006000000070000000809                                                                                      END00003
45443333322222222222222222222222FFF0FFE9FFF4FFFFFF000F0017000B00000000050000007000080900050000007000080933333333733337333333733333737333333333333333333333333333332222222222222222222222222222222222222222222222222222222222222222222222222222222222222244433333
14170000300000000000000000000000FFECFF80FFD4FFF8F700140070002C0008090000D60D000D000D0D0000F60F000F000F0F0000005000600000007000000080900000050006000000070000000809000000000000000000000000000000000000000000000000000000000000000000000000000000000000005E400003
.è.å.....€€€€€€€€€€€€€€€€€€€€€€€ŸŸÚ.ŸŸY.ŸŸÙàŸŸŸ8Ÿ7...4...ø.............&......ø....ý.....&......ø....+..........ø....ø......ø.....Ì.`.............................€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€á+à.....

*******************************************************************************
Conclude  - Batch, HEX-Dump for RSEQ LRECL=256
000000003 - Record count for SYSUT1
000000000 - Record count for SYSUT2

Table of Contents Previous Section Next Section Hex-Dump of EBCDIC-encoded File

A CMD File and JCL Member are available from SimoTime to run the preceding batch jobs.

Table of Contents Previous Section Next Section CMD, Create Hex-Dump

The following (HXN256W2.cmd) is an example of a Windows CMD needed to run a job and produce a file of HEX-Dump information for the EBCDIC-encoded file. This CMD will run on a Windows platform using Micro Focus COBOL.

@echo OFF
rem  * *******************************************************************
rem  *               HXN256W2.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   - Read RSEQ, write HEX-Dump RSEQ.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an EBCDIC-encoded record sequential file and
rem  * write to a new Hex-Dump record sequential file.
rem  *
rem  *    ************
rem  *    * HXN256W2 *
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  *--*--* HXR256C1 *
rem  *         *           *******rseq*  *  ********cbl*
rem  *         *                         *       *
rem  *         *           ************  *  ************     ************
rem  *         *           *  SYSUT3  *--*  * SIMOV32K *-----* SYSPROBE *
rem  *         *           *******rseq*     ********cbl*     *******vseq*
rem  *    ************
rem  *    *   EOJ    *
rem  *    ************
rem  *
rem  * *******************************************************************
rem  * Step 1, Set Environment Variables, map file names.
rem  *         Delete any previously created ASCII-encoded file...
em  *
     call ..\Env1BASE
     set CmdName=HXN256W2
     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\EBC1\SIMOEBC1.HEXDATA.MKN256D1.DAT
     set   SYSUT3=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDUMP.MKN256D2.DAT
     set SYSPROBE=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDUMP.MKN25601.DAT
rem  *
rem  * *******************************************************************
rem  * Step 3, Read RSEQ, create a new Hex-Dump VREC
rem  *
     call SimoNOTE "Identify JobStep Step-3, Execute Hex-Dump Program"
     call SimoNOTE "DataTake RSEQ   SYSUT1=%SYSUT1%"
     call SimoNOTE "RecRange RSEQ   SYSUT3=%SYSUT3%"
     call SimoNOTE "DataDump VSEQ SYSPROBE=%SYSPROBE%"
     run HXR256C1
     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 JCL, Create Hex-Dump

The following (HXN256J2.cmd) is an example of a JCL Member needed to run a job and produce a file of HEX-Dump information for the EBCDIC-encoded file. This JCL will run on a Mainframe System with ZOS or a Linux, UNIX or Windows System using Micro Focus Enterprise Server.

//HXN256J2 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       HXN256J2.jcl - a JCL Member for Batch Job Processing        *
//*       This JCL Member is provided by SimoTime Technologies        *
//*           (C) Copyright 1987-2019 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Hex-Dump of Sequential file containing 256-byte records.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will read an EBCDIC-encoded record sequential file.
//* Step 1, JOBSETUP will delete any previously.
//* Step 2, HEXDUMP1 will produce a Hex-Dump of the merged file.
//*
//* This set of programs will run on a mainframe under ZOS or on a
//* Windows System and Micro Focus Enterprise Server or Studio.
//*
//* 1. Demonstrate how to use IEFBR14 with DD statements to delete
//*    files that have been created by a previous execution of this
//*    job.
//* 5. Demonstrate how to create a Hexadecimal Dump of a Sequential
//*    file containing 256-byte, fixed-length records.
//*
//* *******************************************************************
//* Step 1 of 2, Delete any previously created file...
//*
//JOBSETUP EXEC PGM=IEFBR14
//IEFUT1   DD  DSN=SIMOTIME.HEXDUMP.MKE256D1,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSPROBE DD  DSN=SIMOTIME.HEXDUMP.MKE256V1,
//             DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=V,LRECL=32760,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 2, Produce a Hex-Dump of the EBCDIC-encoded file...
//*
//HEXDUMP1 EXEC PGM=HXR256C1
//SYSUT1   DD  DSN=SIMOTIME.HEXRSEQ.MKE256D1,
//             DISP=SHR
//SYSUT2   DD  DSN=SIMOTIME.HEXDUMP.MKE256D1,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=256,DSORG=PS)
//SYSPROBE DD  DSN=SIMOTIME.HEXDUMP.MKE256V1,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=V,LRECL=32760,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//

Table of Contents Previous Section Next Section Hex-Dump View of EBCDIC-encoded File

The hexadecimal dump for a data file is presented as five (5) lines of information. The 1st line is a position indicator. The 2nd line is the possible character interpretation for an ASCII encoding schema. The 3rd line is the hexadecimal value (0-9 and A-F) for the high-order nibble (or first 4 bits) of the byte. The 4th line is the hexadecimal value (0-9 and A-F) for the low-order nibble (or second 4 bits) of the byte. The 5th line is the possible character interpretation for an EBCDIC encoding schema.

The following is an example of a hex-dump for an EBCDIC encoded file.

*******************************************************************************
* HXR256C1 Batch, HEX-Dump for RSEQ LRECL=256 v15.09.23   helpdesk@simotime.com
* HXR256C1 This Data File HexDump Member was generated by SimoTime Technologies
*******************************************************************************
Starting  - Batch, HEX-Dump for RSEQ LRECL=256          http://www.SimoTime.com
*
....:...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......
ÁãÁÇ....ñ@@@@@@@@@@@@@@@@@@@@@@@ÿÿÎNÿÿÏÇÿí)¦ÿ..Àÿô..1...09..ÖZ..â@.....r-.4].4R-.#Em.-...r/.4_.4R/.#Eo./....ñò.òÒñòóôÕñòóôõòÒñòóôõÖñÒ....ñò.òòñòóôõñòóôõòòñòóôõöñò@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ÅÕÄ....ñ
CECCFFFFF44444444444444444444444FFC4FFCCFE2AFF1CFF003B003301D500E400001721351352024602001721351352024602FFFFFFFFDFFFFDFFFFFFDFFFFFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444444444CDCFFFFF
13170000100000000000000000000000FFEEFFF7FD96FED0F400120009026A01200C0022D24D242D135D1D0022F24F242F135F1F00001272212345123452212345612000012722123451234522123456120000000000000000000000000000000000000000000000000000000000000000000000000000000000000055400001
ATAG00001                       ŸŸó+ŸŸõGŸÒ.wŸÚ.{Ÿ4...¥......O!..S .....Ê...)..ê...á_.....Ê...¬..ê...á?..00001272K1234N123452K12345O1K00001272212345123452212345612                                                                                      END00001
*
....:...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......
ÁãÁÇ....ò@@@@@@@@@@@@@@@@@@@@@@@....ÿÿü.ÿÿÿ8ÿÿÿýÿü.......è...È................ ....=.M.......... ....?.O..........ñ.......ò.......Ó.Ô..........ñ.......ò.......ó.ô@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ÅÕÄ....ò
CECCFFFFF444444444444444444444440000FFF1FFF3FFFFFF0000000E000C000000000000000020000304000000000020000304FFFFFFFFFFFFFDFFFFFFDFFFFFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444444444CDCFFFFF
131700002000000000000000000000000000FFC8FFF8FFFDFC0000003800080003040000C10D000D000D0D0000F10F000F000F0F00000000001000000020000000304000000000010000000200000003040000000000000000000000000000000000000000000000000000000000000000000000000000000000000055400002
ATAG00002                       ....ŸŸÜ.ŸŸŸ.ŸŸŸÙŸÜ.......Y...H................€......(..........€......|0000000000100}000020}00000L0M00000000001000000020000000304                                                                                      END00002
*
....:...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......
ÁãÁÇ....ó@@@@@@@@@@@@@@@@@@@@@@@ÿÿ..ÿÿè.ÿÿýDÿÿÿøÿ....ô...p.............P......p..........P......p......Ÿ......õ...ö...............Ø.Ù......õ...ö...............ø.ù@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ÅÕÄ....ó
CECCFFFFF44444444444444444444444FFF0FFE9FFF4FFFFFF000F0017000B000000000500000070000809000500000070000809FFFFFFFFDFFFFDFFFFFFDFFFFFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFF44444444444444444444444444444444444444444444444444444444444444444444444444444444444444CDCFFFFF
13170000300000000000000000000000FFECFF80FFD4FFF8F700140070002C0008090000D60D000D000D0D0000F60F000F000F0F00000050006000000070000000809000000500060000000700000008090000000000000000000000000000000000000000000000000000000000000000000000000000000000000055400003
ATAG00003                       ŸŸÚ.ŸŸY.ŸŸÙàŸŸŸ8Ÿ7...4...ø.............&......ø....ý.....&......ø....+..00000050}0600}000070}00000Q0R00000050006000000070000000809                                                                                      END00003

*******************************************************************************
Conclude  - Batch, HEX-Dump for RSEQ LRECL=256
000000003 - Record count for SYSUT1
000000000 - Record count for SYSUT2

Table of Contents Previous Section Next Section Technical Details

This section provides a closer look at the system environments, component structures and processing techniques used with this suite of programs.

Table of Contents Previous Section Next Section Record Structure Definitions

A COBOL Copy File is used to define the record structure for the test file that is used by this suite of programs.

The following link provides additional documentation for the COBOL copy file (MKN256B1.cpy) that defines the record structure for a test file that contains TEXT data strings and the SIGNED and UNSIGNED values for the BINARY, PACKED-DECIMAL and ZONED-DECIMAL numeric fields.

Link to Internet   Link to Server   Explore numeric values that use the BINARY, PACKED and ZONED format. This HTML document was generated by SimoTime Technologies and uses the field definitions included in a user-defined COBOL copy file to calculate additional information such as the field positions within the record.

Table of Contents Previous Section Next Section Format for Numbers

The following links provide additional details about the structure of the commonly used numeric formats used on an IBM Mainframe System.

Table of Contents Previous Section Next Section Binary Format for Numbers

The following link describes the binary format. This numeric field format is coded in COBOL as "USAGE IS COMPUTATIONAL" and is usually coded in its abbreviated form of COMP. This may also be coded with the keyword BINARY.

Link to Internet   Link to Server   Explore The Binary or COMP format for numeric data strings. This numeric structure is supported by COBOL and may be explicitly defined with the "USAGE IS COMP" or "USAGE IS BINARY" clause.

Table of Contents Previous Section Next Section Packed-Decimal Format for Numbers

The following link describes the packed-decimal format. This numeric field format is coded in COBOL as "USAGE IS COMPUTATIONAL-3" and is usually coded in its abbreviated form of COMP-3.

Link to Internet   Link to Server   Explore The Packed-Decimal or COMP-3 format for numeric data strings. This numeric structure is supported by COBOL and may be explicitly defined with the "USAGE IS COMP-3" clause.

Table of Contents Previous Section Next Section Zoned-Decimal Format for Numbers

The following link describes the zoned-decimal format. This numeric field format is coded in COBOL as "USAGE IS DISPLAY" and is usually not hard-coded since it is the default numeric format.

Link to Internet   Link to Server   Explore The Zoned-Decimal format for numeric data strings. This numeric structure is the default numeric for COBOL and may be explicitly defined with the "USAGE IS DISPLAY" clause.

Table of Contents Previous Section Next Section Ancillary Functionality

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

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 CMD File (SIMONOTE.cmd) is called from other command files to consistently display messages and write to a log file. The following is a listing of the contents of the command file.

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

Table of Contents Previous Section Next Section Summary

The purpose of this program is to provide examples for accessing a Sequential file and creating a new Sequential file containing Hexadecimal Dump information. 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 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 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
Convert with Hex-Dump, Sequential File
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com