HX80KS03 Hex Dump for 80-byte KSDS |
The SimoTime Home Page |
One approach to application or data validation is human observation or analysis. Human observation is very useful when evaluating the usability and business flow of an application.
Using this approach for data validation presents the following challenges.
1. | Introduces additional risk of human error. |
2. | May be useful for small amounts of data. As the volume of data increases the reliability of the "human observation" approach decreases. |
3. | Data strings with binary content are not easy to interpret and can be presented in a misleading manner when using a text editor. |
4. | The structure of some data strings may require specialized knowledge to properly interpret. |
5. | A "hexadecimal dump" presentation of the data may be required. |
Because of these challenges the "human observation" approach is considered as a "reasonability check" or "diagnostic aid". Typically, a programmatic methodology that can be automated and run without human intervention will be a requirement.
This document will focus on a process that will generate a single COBOL program that will create a Hexadecimal dump file (or HEXDUMP) of user-defined records contained in an indexed data structure or file. On an IBM Mainframe System this would be a VSAM, Key Sequenced Data Set (KSDS). The Hex-Dump formatting and file I-O are done within the single COBOL program.
The program (HX80KSC3) will be generated using SimoTime Technologies and will compile and execute on a Linux, UNIX or Windows System with Micro Focus Enterprise Developer/Server, version 2.2 or later.
The HX80KSC3 program should compile and execute on a ZOS Mainframe. The JOB statement and the data set names (DSN's) will need to be changed to comply with security and naming standards on the host mainframe system.
Note: The unit testing was done on a Windows System with Micro Focus Enterprise Developer configured for an ASCII-encoded environment.
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-2018
SimoTime Technologies and Services
All Rights Reserved
This section will focus on the execution process for unit testing.
The following diagram shows the batch processing and data flow for a job that will do a HEX-Dump of user-defined records in a VSAM, KSDS.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-1: SYSUT1 - a VSAM, KSDS with 80-byte Records, Key is Positions 1-6. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-2: SYSUT2 - a Sequential File for Hexadecimal Dump. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note-3: SYSUT3 - a Sequential File with a list of primary keys. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Batch Processing, A Hexadecimal Dump Program |
The VSAM, KSDS for this example is an indexed data structure containing customer data.
The following shows the HEX-Dump of user-defined records in a VSAM, KSDS.
The following is a Hex-Dump of two records in the Customer File. The records were selected by using a control file that contained a list of primary keys.
The 1st line is the 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.
******************************************************************************** * HX80KSC3 Batch, HEX-Dump for KSDS 080/1-06 v17.01.01 helpdesk@simotime.com * HX80KSC3 This Data File HexDump Member was generated by SimoTime Technologies ******************************************************************************** Starting, Batch, HEX-Dump for KSDS 080/1-06 http://www.SimoTime.com ....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80 .......>ΐΑΚΛ?>.ΐΚΡ/>...&Α/ΔΗΘΚΑΑ&%/:/.Θ%/>Θ/ε...... 33333324666776622222224676662222333256666776625667622222476667622222222442333332 00010001E4523FE000000014291E0000111005138425500C1A10000014C1E4100000000710261010 000100 Anderson Adrian 111 Peachtree Plaza Atlanta GA 26101 ....:...10....:...20....:...30....:...40....:...50....:...60....:...70....:...80 ......βΚ?Ο>βΡ%%ΡΑ...β/,ΑΚβ?Ν%ΑΞ/Κΐβ/%ΘΡ_?ΚΑ(ΰ..... 33333324767622222222224666662222333246667246766767622222466766676222222442333332 000200022F7E000000000029CC950000222021B5202F5C561240000021C49DF25000000D40357020 000200 Brown Billie 222 Baker Boulevard Baltimore MD 35702 ******************************************************************************** Conclude, Batch, HEX-Dump for KSDS 080/1-06 000000002 - Line count for SYSUT1 000000002 - Line count for SYSUT2
The following is a Windows Command File (HX80KSW3.cmd) that is used to produce a Hex Dump of user-defined records contained within a VSAM, KSDS.
@echo OFF rem * ******************************************************************* rem * HX80KSW3 - a Windows Command File * rem * This program is provided by SimoTime Technologies * rem * (C) Copyright 1987-2018 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 * * HX80KSW3 * 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 *--*--* HX80KSC3 *-----* 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 ASCII-encoded file... rem * call ..\Env1BASE set CmdName=HX80KSW3 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\APPL\SIMOTIME.DATA.CU80MAST.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDUMP.CUST0080.DAT set SYSUT3=%BaseLib1%\DATA\APPL\SIMOTIME.HEXDUMP.CUSTKEYS.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 000100>>%SYSWORK% echo /USERKEY 000200>>%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 VREC 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 HX80KSC3 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% goto :End :End call SimoNOTE "Conclude SYSOUT is %SYSOUT%" if not "%1" == "nopause" pause exit /B %JobStatus%
The following is a JCL member (HX80KSJ3.jcl) that is used to produce a Hex Dump of user-defined records contained within a VSAM, KSDS.
//HX80KSJ3 JOB (SIMOTIME),'VSAM KSDS HEXDUMP',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* CUHEXKJ3.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2018 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Hex-Dump if a VSAM, KSDS for batch processing. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* //* This set of programs will run on a ZOS Mainframe System or on a //* Windows System and Micro Focus Technologies. //* //* ************ //* * HX80KSJ3 * //* ********jcl* //* * //* ************ ************ ************ //* * SYSUT1 *--*--* HX80KSC3 *--*--* SYSUT2 * //* *******ksds* * ********cbl* * ************ //* * * * //* ************ * * * ************ //* * SYSUT3 *--* * *--* SYSOUT * //* *******rseq* * ************ //* * //* * //* ************ //* * EOJ * //* ************ //* //* ******************************************************************* //* Step 1 of 3, Delete the previously created SYSUT2 file. //* //SYSUT2DT EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.HEXDUMP.CUSTMAST,DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=F,LRECL=512,DSORG=PS) //* //* ******************************************************************* //* Step 3 of 3, Execute the HEX Dump program. //* Note: the dump information will be written to the SYSPROBEG file //* ******************************************************************* //* Dump the content of the user-defined records within a VSAM, KSDS. //* The results of the dump processing is posted to the SYSUT2 File. //* //CUHEXKEX EXEC PGM=HX80KSC3 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.DATA.CUSTKS80,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.HEXDUMP.CUST0080, // DISP=(NEW,KEEP,KEEP), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=F,LRECL=80,DSORG=PS) //SYSUT3 DD * /USERKEY 000100 /USERKEY 000200 /* //SYSOUT DD SYSOUT=* //
This section describes the tasks that are required prior to executing the programs in a unit testing environment.
The following is the Process Control File (HX80KS03.pcf) that is used to produce a Hex Dump.
*********************************************************************** * HX80KS03.pcf - a Process Control File * * Hex-Dump for User-Defined records in a Customer File * * (C) Copyright 1987-2018 All Rights Reserved * * Web Site URL: http://www.simotime.com * * e-mail: helpdesk@simotime.com * *********************************************************************** * SYSUT1 is the Customer Master File, Indexed, 80-byte records. * * SYSUT2 is a Record Sequential file, 80-byte fixed-length records. * *********************************************************************** * This Process Control File will be used to generate a COBOL program * that will do a hexadecimal dump of user-defined records contained * in the Customer File. * * The Customer File is a VSAM, Key Sequenced data Set (KSDS). * * Refer to http://www.simotime.com/utcomp01.htm for additional detail * about the PCF statements for Data Validate, Dump and Compare. * * The following group of statements will define the high level * functions and processes to be performed. * &SIMOPREP call ..\Env1BASE &USERPREP call USERCOGI &CONFORM IBM ©FILE CUST80B1.CPY &HTMLFILE cust80b1.htm &USRMODEL SYSHEXK3.txt &USRXFILE AE0437B1 * * The following group of statements will define the behavioral * characteristics and environment variable for the file I/O Program * to be generated. * *HEAD34 ....:....1....:....2....:....3.... &HEAD34 Batch, HEX-Dump for KSDS 080/1-06 &PROGID HX80KSC3 &UT1READ RANDOM &SYSUT1 name=SYSUT1 org=indexed recfm=fixed rlen=80 kpos=1 klen=6 &SYSUT2 name=SYSUT2 org=Sequential recfm=FIXED rlen=80 &SYSUT3 name=SYSUT3 org=Sequential recfm=FIXED rlen=80 * * The following will determine the HEX-Dump output. The &DFORMAT * statement will create five (5) lines of dump information. * ASC - 1 line of possible ASCII character translation. * HEX - 2 lnes of HEX dump. 1st line is high-order nibble. * 2nd line is low-order nibble. * EBC - 1 line of possible EBCDIC character translation. * RPI - 1 line for Relative Position Indicator. * &HEXDUMP SYSUT1 pos 0001 len 0080 &DFORMAT ASC HEX EBC RPI * &END
This section describes additional technical details not covered in previous sections of this document.
The following compiler directives were used to compile the CUHEXK01 program.
DIALECT"ENTCOBOL" CHARSET"ASCII" ASSIGN"EXTERNAL" IDXFORMAT"8" IBMCOMP NOTRUNC HOSTNUMMOVE HOSTNUMCOMPARE NOSIGNFIXUP HOSTARITHMETIC NOHOSTFD CHECKNUM ANIM COBIDY NOOPTIONAL-FILE outdd"SYSOUT 121 L" SHARE-OUTDD DATE TIME DATAMAP settings list() noform
The generated program will create a Hexadecimal dump file (or HEXDUMP) of user-defined records in the Customer Master VSAM, Key Sequenced Data Set (KSDS). This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers.
In the world of programming there are many ways to solve a problem. This document and the links to other documents are intended to provide a greater awareness of the Data Management and Application Processing alternatives.
The 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 send an e-mail to: helpdesk@simotime.com or call 415 883-6565. We appreciate hearing from you.
Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.
SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.
This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.
Note: A SimoTime License is required for the items to be made available on a local system or server.
The following links may be to the current server or to the Internet.
Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the 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 icon.
Explore An Enterprise System Model that describes and demonstrates how Applications that were running on a Mainframe System and non-relational data that was located on the Mainframe System were copied and deployed in a Microsoft Windows environment with Micro Focus Enterprise Server.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.
Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connection.
This suite of programs and documentation is available for download. Link to an Evaluation zPAK Option that includes the program members, documentation and control files.
A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection
Explore The Micro Focus Web Site for more information about products and services available from Micro Focus. This link requires an Internet Connection.
Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.
This document was created and is copyrighted and maintained by SimoTime Technologies.
If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com
We appreciate hearing from you.
SIMOTIME Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.
Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.
Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SIMOTIME has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.
Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions or need assistance with converting non-relational data structures simply give us a call at 415 883-6565 or check the web site at http://www.simotime.com
Return-to-Top |
CUHEXK03, Hex Dump for Customer Master |
Copyright © 1987-2018 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |