Test Files with Numeric Data Zoned Decimal, Packed and Binary |
The SimoTime Home Page |
This suite of programs provides an example of how to create test files with records that contain numeric data items in various formats such as Packed Decimal, Binary and Zoned Decimal.
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
This document is the 3rd document of a set of three (3) documents and describes how to create the test files. The following provides the links to the primary document for running the test programs and a document that describes how the test programs are generated.
The following link is for the 1st document in a set of three (3) documents and describes how to validate application behavior and data integrity during regression testing or user acceptance testing. Also, the technique of accumulating summary totals and record counts may be used to validate a complete and successful file transfer.
Explore the numeric formats and conversion techniques for sharing numeric data between Mainframe Systems and Linux, UNIX or Windows Systems. A Mainframe System and the COBOL programming language supports a variety of different numeric formats that will be discussed in this document.
The following link is for the 2nd document in a set of three (3) documents and describes how the programs that do the data conversions and accumulate summary totals are generated.
Explore how to generate COBOL programs that will do conversion between various numeric formats such as packed-decimal, binary and zoned-decimal. To validate numeric integrity a discussion of generating programs that accumulate summary totals is included.
Each of the numeric categories (or formats) presents its own set of possibilities and considerations. Hyperlinks to additional documents describing additional details about the various numeric formats may be found in the Downloads and Links to Similar Pages section of this document.
The first task in creating the test files is to determine the numeric content (or value) of the numeric items. An explicit decimal point will be allowed in the numeric data string. Two files will be created, one for signed numeric values and one for unsigned (implied positive) values.
Batch processing techniques (or Batch Jobs) will be used to create the two primary test files. For a Windows environment running Micro Focus COBOL a set of Windows Command files will be provided. For a Mainframe System running ZOS or a Linux, UNIX or Windows System running Micro Focus Enterprise Server a set of JCL Members will be provided.
This section will describe the Windows Command Files that are used to execute the batch jobs that will create the primary test files.
The following CMD file (NUMMASW8.cmd) will create a primary test file that contains text and numeric data strings. The record structure uses a CSV (Comma-Separated-Values) format. The records contain all text characters and may be easily viewed and changed with a text editor.
All the numeric text strings are treated as signed-numeric. An explicit sign character ("+" or "-") may be placed immediately before the first digit or after the last digit. If an explicit sign is missing the number will be treated as an implied positive.
For numeric values with decimal positions an explicit decimal point should be used. If an explicit decimal point is missing then decimal alignment will be done immediately after the last digit.
@echo OFF rem * ******************************************************************* rem * NUMMASW8.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 - Create Test Data for NUMM*.cmd Jobs. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The primary purpose for this job is to create test data for rem * signed-numeric fields. This job contains two steps. rem * rem * The 1st job step will use the Windows "ECHO" command to create rem * an ASCII/Text (or LSEQ) file with a maximum record length of rem * 80 bytes. The record structure contains variable length fields rem * that are delimited by a Comma (or Comma-Separated-Value). rem * This type of file is sometimes referred to as a CSV File. rem * rem * The 2nd job step will execute a COBOL program that will read rem * the LSEQ file and write to an RSEQ file. The record format will rem * remain in a CSV format. rem * rem * This job will run on a Windows System using Micro Focus rem * Enterprise Server and SimoTime Programs. rem * rem * ************ rem * * NUMMASW8 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SIMONOTE * rem * * *******lseq* rem * * rem * ************ rem * * command ***************************** rem * *******wcmd* * rem * * * rem * * ************ ************ ************ rem * * * INSTREAM ******* echo ******* GETLS080 * rem * * *******user* ********cbl* *******lcsv* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * GETLS080 ******* CV80ALAR ******* PUTRS080 * rem * * *******lcsv* ********cbl* *******rcsv* rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Prepare the environment... rem * set CmdName=NUMMASW8 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Make Test files with Signed-Numeric values" rem * rem *-------------------------------------------------------------------* rem * Step 1 of 2, Create an LSEQ File. rem * call SimoNOTE "StepInfo Create an LSEQ File with CSV records" set GETLS080=%BaseLib1%\DATA\WRK1\SIMOTIME.NTEXTCSV.NUDAS001.txt set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAS001.DAT echo ID,KEY,POS,EXT,127.44,10.000,12350.04,123462,12,>%GETLS080% echo ID,KEY,POS,EXT,-3.72,+2.345,-5.02,-6,-1,>>%GETLS080% rem * rem *-------------------------------------------------------------------* rem * Step 2 of 2, Create an RSEQ File. rem * call SimoNOTE "StepInfo Create an RSEQ File with CSV records" if exist %PUTRS080% erase %PUTRS080% run CV80ALAR if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataMake %GETLS080%" call SimoNOTE "DataMake %PUTRS080%" rem * if exist %PUTRS080% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* rem * End of Job Processing... rem * :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following CMD file (NUMMAUW8.cmd) will create a primary test file that contains text and numeric data strings. The record structure uses a CSV (Comma-Separated-Values) format. The records contain all text characters and may be easily viewed and changed with a text editor.
All the numeric text strings are treated as unsigned-numeric (or implied positive). An explicit sign character ("+" or "-") should not be used.
For numeric values with decimal positions an explicit decimal point should be used. If an explicit decimal point is missing then decimal alignment will be done immediately after the last digit.
@echo OFF rem * ******************************************************************* rem * NUMMAUW8.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 - Create Test Data for NUMM*.cmd Jobs. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The primary purpose for this job is to create test data for rem * signed-numeric fields. This job contains two steps. rem * rem * The 1st job step will use the Windows "ECHO" command to create rem * an ASCII/Text (or LSEQ) file with a maximum record length of rem * 80 bytes. The record structure contains variable length fields rem * that are delimited by a Comma (or Comma-Separated-Value). rem * This type of file is sometimes referred to as a CSV File. rem * rem * The 2nd job step will execute a COBOL program that will read rem * the LSEQ file and write to an RSEQ file. The record format will rem * remain in a CSV format. rem * rem * This job will run on a Windows System using Micro Focus rem * Enterprise Server and SimoTime Programs. rem * rem * ************ rem * * NUMMAUW8 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SIMONOTE * rem * * *******lseq* rem * * rem * ************ rem * * command ***************************** rem * *******wcmd* * rem * * * rem * * ************ ************ ************ rem * * * INSTREAM ******* echo ******* GETLS080 * rem * * *******user* ********cbl* *******lcsv* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * GETLS080 ******* CV80ALAR ******* PUTRS080 * rem * * *******lcsv* ********cbl* *******rcsv* rem * * rem * ************ rem * * EOJ * rem * ************ rem * rem * ******************************************************************* rem * Prepare the environment... rem * set CmdName=NUMMAUW8 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Make Test files with UnSigned-Numeric values" rem * rem *-------------------------------------------------------------------* rem * Step 1 of 2, Create an LSEQ File. rem * call SimoNOTE "StepInfo Create an LSEQ File with CSV records" set GETLS080=%BaseLib1%\DATA\WRK1\SIMOTIME.NTEXTCSV.NUDAU001.txt set PUTRS080=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAU001.DAT echo ID,KEY,POS,EXT,120.00,10.000,12340.00,123450,10,>%GETLS080% echo ID,KEY,POS,EXT,3.72,2.345,5.02,6,1,>>%GETLS080% rem * rem *-------------------------------------------------------------------* rem * Step 2 of 2, Create an RSEQ File. rem * call SimoNOTE "StepInfo Create an RSEQ File with CSV records" if exist %PUTRS080% erase %PUTRS080% run CV80ALAR if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataMake %GETLS080%" call SimoNOTE "DataMake %PUTRS080%" rem * if exist %PUTRS080% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* rem * End of Job Processing... rem * :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
This section will describe the JCL (Job Control Language) Members that are used to execute the batch jobs that will create the primary test files.
The following JCL Member (NUMMASJ8.jcl) will create a primary test file that contains text and numeric data strings. The record structure uses a CSV (Comma-Separated-Values) format. The records contain all text characters and may be easily viewed and changed with a text editor.
All the numeric text strings are treated as signed-numeric. An explicit sign character ("+" or "-") may be placed immediately before the first digit or after the last digit. If an explicit sign is missing the number will be treated as an implied positive.
For numeric values with decimal positions an explicit decimal point should be used. If an explicit decimal point is missing then decimal alignment will be done immediately after the last digit.
//NUMMASJ8 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1 //* ******************************************************************* //* NUMMASJ8.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Create a CSV File from instream data using IEBGENER. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The first job step (QSAMDELT) will delete any previously created //* file. The second job step (QCRTDIN1) will create a new file. //* //* The format of the records is Comma-Separated-Values (or CSV). //* The first group of four (4) fields is text strings. The second //* group of four (4) fields is numeric with plus and minus values. //* //* This set of programs will run on a Mainframe System with ZSOS or a //* Windows System and Micro Focus Enterprise Server. //* //* ******************************************************************* //* Step 1 of 2, Delete a previously created file... //* //QSAMDELT EXEC PGM=IEFBR14 //NUDAS001 DD DSN=SIMOTIME.NRSEQCSV.NUDAS001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Create and populate a new QSAM file... //* //QCRTDIN1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * ID,KEY,POS,EXT,127.44,10.000,12350.04,123462,12, ID,KEY,POS,EXT,-3.72,+2.345,-5.02,-6,-1, /* //SYSUT2 DD DSN=SIMOTIME.NRSEQCSV.NUDAS001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS) //
The following JCL Member (NUMMAUJ8.jcl) will create a primary test file that contains text and numeric data strings. The record structure uses a CSV (Comma-Separated-Values) format. The records contain all text characters and may be easily viewed and changed with a text editor.
All the numeric text strings are treated as unsigned-numeric (or implied positive). An explicit sign character ("+" or "-") should not be used.
For numeric values with decimal positions an explicit decimal point should be used. If an explicit decimal point is missing then decimal alignment will be done immediately after the last digit.
//NUMMAUJ8 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1 //* ******************************************************************* //* NUMMAUJ8.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Create a CSV File from instream data using IEBGENER. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The first job step (QSAMDELT) will delete any previously created //* file. The second job step (QCRTDIN1) will create a new file. //* //* The format of the records is Comma-SeParated-Values (or CSV). //* The first group of four (4) fields is text strings. The second //* group of four (4) fields is numeric with plus and minus values. //* //* This set of programs will run on a Mainframe System with ZSOS or a //* Windows System and Micro Focus Enterprise Server. //* //* ******************************************************************* //* Step 1 of 2, Delete a previously created file... //* //QSAMDELT EXEC PGM=IEFBR14 //NUDAU001 DD DSN=SIMOTIME.NRSEQCSV.NUDAU001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Create and populate a new QSAM file... //* //QCRTDIN1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //* :....1....:....2....:....3....:....4....:....5....:....6....:....7. //SYSUT1 DD * ID,KEY,POS,EXT,120.00,10.000,12340.00,123450,10, ID,KEY,POS,EXT,3.72,2.345,5.02,6,1, /* //SYSUT2 DD DSN=SIMOTIME.NRSEQCSV.NUDAU001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS) //
The purpose of the preceding jobs was to create two test files. One file contains unsigned numeric values and the other file contains signed numeric values. Both files are sequential files. The record structure uses a Comma-Separated-Values (CSV) format with a physical record length of eighty (80) bytes. The record content is all text characters.
The following shows the content of the primary test file that contains signed, numeric values with an explicit decimal point and an explicit sign character ("+" or "-").
ID,KEY,POS,EXT,127.44,10.000,12350.04,123462,12, ID,KEY,POS,EXT,-3.72,+2.345,-5.02,-6,-1,
The following shows the content of the primary test file that contains unsigned, numeric values with an explicit decimal point. Since the numeric values are unsigned (i.e. implied positive value) an explicit sign character ("+" or "-") is not specified.
ID,KEY,POS,EXT,120.00,10.000,12340.00,123450,10, ID,KEY,POS,EXT,3.72,2.345,5.02,6,1,
This section will describe and demonstrate the process for creating the six (6) User Test files based on the text-oriented data in the Primary Test files. The Primary Test files are sequential files and the record structure uses a Comma-Separated-Values (or CSV) format. The first four (4) data strings are alpha-numeric text. The second five (5) data strings are variable-length, numeric values with a possible explicit decimal point. For the Primary Test file that handles the signed numeric values the sign is assumed positive or the numeric data string may have an explicit plus or minus character in the leading or trailing position.
The User Test Files are created by reading one of the primary test files and doing a "Record Content Conversion" of the Comma-Separated-Values (CSV) format to a Fixed-Field-Length (FFL) format and converting the numeric text strings from the primary test file to the desired numeric format (Binary, Packed-Decimal or Zoned-Decimal) for the User Test File.
Batch processing techniques (or Batch Jobs) will be used to read the primary test file, convert the record and field formats and write to a new user test file. For a Windows environment running Micro Focus COBOL a set of Windows Command files will be provided. For a Mainframe System running ZOS or a Linux, UNIX or Windows System running Micro Focus Enterprise Server a set of JCL Members will be provided.
The following four (4) jobs (two Windows Command Files and two JCL Members) will create two user test files with numeric strings that use a binary (or USAGE IS COMP) format.
The following CMD file (NUMMBSW1.cmd) will create a User Test file that contains alpha-numeric fields and binary, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMBSW1.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 a file of numeric values, rem * write Signed Binary Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of Signed Binary. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMBSW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMBSC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMBSR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMBSW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Binary Signed" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAS001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDBS001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Binary Numbers rem * call SimoNOTE "StepInfo Execute the Binary Signed Program" run NUMMBSC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1%" call SimoNOTE "DataMake %SYSUT2%" rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following CMD file (NUMMBUW1.cmd) will create a User Test file that contains alpha-numeric fields and binary, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMBUW1.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 a file of numeric values, rem * write UnSigned Binary Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of UnSigned BINARY. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMBUW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMBUC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMBUR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMBUW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Binary UnSigned" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAU001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDBU001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Binary Numbers rem * call SimoNOTE "StepInfo Execute the Binary UnSigned Program" run NUMMBUC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1% call SimoNOTE "DataMake %SYSUT2% rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following JCL Member (NUMMBSJ1.jcl) will create a User Test file that contains alpha-numeric fields and binary, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMBSJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMBSJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Signed Binary Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Binary Signed. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMBSJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMBSC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMBSR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDBS001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Signed Binary Numeric Format. //* //CONVERT EXEC PGM=NUMMBSC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAS001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDBS001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The following JCL Member (NUMMBUJ1.jcl) will create a User Test file that contains alpha-numeric fields and binary, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMBUJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMBUJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Unsigned Binary Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Binary Unsigned. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMBUJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMBUC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMBUR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDBU001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Unsigned Binary Numeric Format. //* //CONVERT EXEC PGM=NUMMBUC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAU001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDBU001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The following four (4) jobs (two Windows Command Files and two JCL Members) will create two user test files with numeric strings that use a packed-decimal (or USAGE IS COMPUTALTION-3) format.
WIP3
The following CMD file (NUMMPSW1.cmd) will create a User Test file that contains alpha-numeric fields and packed, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMPSW1.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 a file of numeric values, rem * write Signed Packed Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of Signed Packed Decimal. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMPSW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMBPSC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMPSR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMPSW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Packed Signed" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAS001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDPS001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Packed... rem * call SimoNOTE "StepInfo Execute the Packed Signed Program" run NUMMPSC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1% call SimoNOTE "DataMake %SYSUT2% rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following CMD file (NUMMPUW1.cmd) will create a User Test file that contains alpha-numeric fields and packed, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMPUW1.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 a file of numeric values, rem * write UnSigned Packed Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of UnSigned Packed Decimal. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMPUW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMPUC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMPUR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMPUW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Packed UnSigned" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAU001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDPU001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Packed... rem * call SimoNOTE "StepInfo Execute the Packed UnSigned Program" run NUMMPUC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1% call SimoNOTE "DataMake %SYSUT2% rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following JCL Member (NUMMPSJ1.jcl) will create a User Test file that contains alpha-numeric fields and packed, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMPSJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMPSJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Signed Packed Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Packed Signed. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMPSJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMPSC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMPSR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDPS001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Signed Packed Numeric Format. //* //CONVERT EXEC PGM=NUMMPSC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAS001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDPS001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The following JCL Member (NUMMPUJ1.jcl) will create a User Test file that contains alpha-numeric fields and packed, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMPUJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMPUJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Unsigned Packed Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Packed Unsigned. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMPUJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMPUC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMPUR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDPU001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Unsigned Packed Numeric Format. //* //CONVERT EXEC PGM=NUMMPUC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAU001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDPU001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The following four (4) jobs (two Windows Command Files and two JCL Members) will create two user test files with numeric strings that use a zoned-decimal (or USAGE IS DISPLAY) format.
WIP3
The following CMD file (NUMMZSW1.cmd) will create a User Test file that contains alpha-numeric fields and zoned, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMZSW1.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 a file of numeric values, rem * write Signed Zoned Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of Signed Zoned Decimal. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMZSW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMZSC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMZSR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMZSW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Zoned Signed" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAS001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDZS001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Packed... rem * call SimoNOTE "StepInfo Execute the Zoned Signed Program" run NUMMZSC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1% call SimoNOTE "DataMake %SYSUT2% rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following CMD file (NUMMZUW1.cmd) will create a User Test file that contains alpha-numeric fields and zoned, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
@echo OFF rem * ******************************************************************* rem * NUMMZUW1.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 a file of numeric values, rem * write UnSigned Zoned Numeric. rem * Author - SimoTime Technologies rem * Date - January 24, 1996 rem * rem * The job will read an 80-byte file that contains numeric values. rem * The record structure contains variable length fields that are rem * delimited by a Comma (or Comma-Separated-Value). This type of rem * file is sometimes referred to as a CSV File. rem * rem * The job will write a file containing the results of the rem * specified numeric format conversion. This process will convert rem * the records from a CSV File to a file with a record structure of rem * Fixed-Field-Lengths and a numeric format of UnSigned Zoned Decimal. rem * rem * This set of programs will run on a mainframe under MVS or on a rem * Personal Computer with Windows and Micro Focus Net Express. rem * rem * ************ rem * * NUMMZUW1 * rem * ********cmd* rem * * rem * * rem * ************ ************ rem * * SIMONOTE ******* CONSOLE * rem * ********cmd* * ************ Note: Prefix Messages, rem * * * Display and write to rem * * * ************ log file rem * * **** SYSLOG * rem * * *******rseq* rem * * rem * ************ rem * * run ***************************** rem * *******mifo* * rem * * * rem * * ************ ************ ************ rem * * * SYSUT1 ******* NUMMZUC1 ******* SYSUT2 * rem * * *******rcsv* ********cbl* *******rffl* rem * * * rem * ************ ************ rem * * EOJ * * NUMMZUR1 * rem * ************ ********cbl* rem * rem * ******************************************************************* rem * Step 1 of 2, Prepare the environment... rem * set CmdName=NUMMZUW1 call ..\Env1BASE %CmdName% if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG rem * call SimoNOTE "*******************************************************%CmdName%" call SimoNOTE "Starting CmdName %CmdName%" call SimoNOTE "JobTopic Read LCSV and write RSEQ with Zoned UnSigned" call SimoNOTE "StepInfo Map Program File Names to Physical File Name" set SYSUT1=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQCSV.NUDAU001.DAT set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.NRSEQFFL.NUDZU001.DAT if exist %SYSUT2% del %SYSUT2% rem * rem * ******************************************************************* rem * Step 2 of 2, Read CSV Format, write Fixed-Field with Packed... rem * call SimoNOTE "StepInfo Execute the Zoned UnSigned Program" run NUMMZUC1 if not ERRORLEVEL = 0 set JobStatus=0010 if not %JobStatus% == 0000 goto :EojNok call SimoNOTE "DataTake %SYSUT1% call SimoNOTE "DataMake %SYSUT2% rem * if exist %SYSUT2% goto :EojAok set JobStatus=0020 goto :EojNok rem * rem * ******************************************************************* :EojAok call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%" goto :End :EojNok call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%" :End if not "%1" == "nopause" pause
The following JCL Member (NUMMZSJ1.jcl) will create a User Test file that contains alpha-numeric fields and zoned, signed numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMZSJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMZSJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Signed Zoned Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Zoned Signed. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMZSJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMZSC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMZSR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDZS001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Signed Zoned Numeric Format. //* //CONVERT EXEC PGM=NUMMZSC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAS001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDZS001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The following JCL Member (NUMMZUJ1.jcl) will create a User Test file that contains alpha-numeric fields and zoned, unsigned numeric fields. The record structure will use a FFL (Fixed-Field-Length) format. The records will contain numeric strings that will require a Hex-View or Hex-Dump capability for proper viewing.
//NUMMZUJ1 JOB (SIMOTIME),'NUMERIC CONNECTION',CLASS=1,MSGCLASS=0, // NOTIFY=CSIP1 //* ******************************************************************* //* NUMMZUJ1.JCL - a JCL Member for Batch Job Processing * //* This program 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 - Read a file of numeric values, //* write Unsigned Zoned Numeric. //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* The job will read an 80-byte file that contains numeric values. //* The record structure contains variable length fields that are //* delimited by a Comma (or Comma-Separated-Value). This type of //* file is sometimes referred to as a CSV File. //* //* The job will write a file containing the results of the //* specified numeric format conversion. This process will convert //* the records from a CSV File to a file with a record structure of //* Fixed-Field-Lengths and a numeric format of Zoned Unsigned. //* //* This set of programs will run on a mainframe under MVS or on a //* Personal Computer with Windows and Micro Focus Net Express. //* //* +----------+ //* | NUMMZPUJ1 | //* +-------jcl+ //* | //* | //* +----------+ +----------+ +----------+ //* | SYSUT1 +-----+ NUMMZUC1 +--+--+ SYSUT2 | //* +------rcsv+ +-------cbl+ | +------rffl+ //* | | //* | | +----------+ //* | +--+ NUMMZUR1 | //* | +-------cbl+ //* +----------+ //* | EOJ | //* +----------+ //* //* ******************************************************************* //* Step 1 of 2, Delete any previously created file... //* //CLEANUP1 EXEC PGM=IEFBR14 //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDZU001, // DISP=(MOD,DELETE,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //* //* ******************************************************************* //* Step 2 of 2, Read a CSV file of numeric values, //* Create a new output file of Fixed Record Lengths and //* Fixed Field Lengths in Unsigned Zoned Numeric Format. //* //CONVERT EXEC PGM=NUMMZUC1 //STEPLIB DD DSN=SIMOTIME.DEMO.LOADLIB1,DISP=SHR //SYSUT1 DD DSN=SIMOTIME.NRSEQCSV.NUDAU001,DISP=SHR //SYSUT2 DD DSN=SIMOTIME.NRSEQFFL.NUDZU001, // DISP=(NEW,CATLG,DELETE), // STORCLAS=MFI, // SPACE=(TRK,5), // DCB=(RECFM=FB,LRECL=80,DSORG=PS) //SYSOUT DD SYSOUT=* //
The purpose of the preceding jobs was to create six User Test Files. All the User Test Files are record sequential files. The record structure uses a Fixed-Field-Length (FFL) format with a physical record length of eighty (80) bytes.
Since the User Test Files will contain a variety of numeric encoding schemas (or formats) many of the records will contain binary data. To properly view or analyze the records in the User Test Files will require a utility program with Hex-View or Hex-Dump capability.
A pre-generated hexadecimal dump program (HX80DUMP) for record sequential files with 80-byte fixed length records is provided by SimoTime. This utility provides four (4) lines of information for each record in a sequential file. The 1st line is the character interpretation for the ASCII encoding schema. The 2nd and 3rd lines are the hexadecimal dump information. The 4th line is the character interpretation for the EBCDIC encoding schema.
This utility program is used to provide the following views of the User Test Files.
The following shows the content of a user test file that contains signed, numeric values that use a binary format.
BINARY SIGNED LEADING AUTO ..1. ..'. ...< ...F .. 444455222544444222444444422455422222003C20021201D3200E42002222222222222222222222 29E129000397E54000C5149E700154F000000018000700028C0012600C0000000000000000000000 ..+.........+.....<....+......|........H........Q....S.......................... * BINARY SIGNED LEADING AUTO .... ...) .... .... .. 444455222544444222444444422455422222FFF8200022FFF02FFFF2FF2222222222222222222222 29E129000397E54000C5149E700154F00000FFEC000990FFEA0FFFA0FF0000000000000000000000 ..+.........+.....<....+......|................................................. *
The following shows the content of a user test file that contains unsigned, numeric values that use a binary format.
BINARY UNSIGNED LEADING AUTO .... ..'. ...P ...: .. 444455222545444442444444422455422222002E20021201D5200E32002222222222222222222222 29E1290005E397E540C5149E700154F0000000E000070002400012A00A0000000000000000000000 ..+.......+...+...<....+......|.................M&...S.......................... * BINARY UNSIGNED LEADING AUTO ...t ...) .... .... .. 4444552225454444424444444224554222220007200022000F200002002222222222222222222222 29E1290005E397E540C5149E700154F0000000140009900016000060010000000000000000000000 ..+.......+...+...<....+......|..................6.............................. *
The following shows the content of a user test file that contains signed, numeric values that use a packed-decimal format.
PACKED SIGNED LEADING AUTO ...tL ... .5.L .#F, ., 54444422254444422244444442245542222200174210021304202422022222222222222222222222 013B54000397E54000C5149E700154F000000024C000C0250C0136C01C0000000000000000000000 &...........+.....<....+......|.........<........<.............................. * PACKED SIGNED LEADING AUTO ...7- .4\ ..P- ...m .. 54444422254444422244444442245542222200032203520052200062012222222222222222222222 013B54000397E54000C5149E700154F000000007D024C0000D0000D00D0000000000000000000000 &...........+.....<....+......|.............*...&....._......................... *
The following shows the content of a user test file that contains unsigned, numeric values that use a packed-decimal format.
PACKED UNSIGNED LEADING AUTO ..... ... .4.. .#E. .. 54444422254544444244444442245542222200100210021300202402002222222222222222222222 013B540005E397E540C5149E700154F000000020F000F0240F0135F01F0000000000000000000000 &.........+...+...<....+......|................................................. * PACKED UNSIGNED LEADING AUTO ...7/ .4_ ..P/ ...o .. 54444422254544444244444442245542222200032203520052200062012222222222222222222222 013B540005E397E540C5149E700154F000000007F024F0000F0000F00F0000000000000000000000 &.........+...+...<....+......|.................&.....?......................... *
The following shows the content of a user test file that contains signed, numeric values that use a zoned-decimal format.
ZONED SIGNED LEADING AUTO 000012744 10000 1235004 123462 12 54444222254444422244444442245542222233333333323333323333333233333323322222222222 AFE540000397E54000C5149E700154F0000000001274401000001235004012346201200000000000 !|+.........+.....<....+......|................................................. * ZONED SIGNED LEADING AUTO 00000037r 02345 000050r 00000v 0q 54444222254444422244444442245542222233333333723333323333337233333723722222222222 AFE540000397E54000C5149E700154F0000000000037200234500000502000000600100000000000 !|+.........+.....<....+......|................................................. *
The following shows the content of a user test file that contains unsigned, numeric values that use a zoned-decimal format.
ZONED UNSIGNED LEADING AUTO 000012000 10000 1234000 123450 10 54444222254544444244444442245542222233333333323333323333333233333323322222222222 AFE5400005E397E540C5149E700154F0000000001200001000001234000012345001000000000000 !|+.......+...+...<....+......|................................................. * ZONED UNSIGNED LEADING AUTO 000000372 02345 0000502 000006 01 54444222254544444244444442245542222233333333323333323333333233333323322222222222 AFE5400005E397E540C5149E700154F0000000000037200234500000502000000600100000000000 !|+.......+...+...<....+......|................................................. *
In today's environments there are a variety of data validation alternatives. This section will focus on three popular techniques. The 1st technique is Human Observation. The 2nd is a Data File Compare. The 3rd is the accumulation and review of Summary Totals.
One approach to application or data validation is human observation or analysis. This approach 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 is 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.
The "Data File Compare" approach is very popular when doing regression testing. At the conclusion of a regression test a copy of a file that contains the "expected" results is compared with the file (actual results) created or updated during the regression test.
This approach first appeared when users began running applications that created sub-totals and final totals for numeric items. The reports and totals were then manually reviewed by the finance business group. Doing this for currency values quickly became a mandatory requirement.
The use of reports produced by a application remains a very effective validation approach. However, if a problem occurs the problem determination can be very time consuming based on the size and complexity of the application code and data structures.
Therefore, a technology that will focus on the processing of the numeric structures and produce summary totals with record counts could be very useful. SimoTime has the technology to do this by generating COBOL programs that will read a file and produce summary totals based on the user selecting the fields from a COBOL copy file definition of the record layout.
This section provides a closer look at the system environments, component structures and processing techniques used with this suite of programs.
The use of a naming convention can be very helpful when organizing source members into groups based on their business purpose or technical function.
The naming convention for the Windows CMD Files,Mainframe JCL Members, Program Members and non-Relational Data Structures is as follows.
| ||||||||||||
Naming Convention for Program Members |
The following is a list of some of the terms or abbreviations that are used in this document.
| ||||||||
Terms or Abbreviations used in this document |
A COBOL Copy File is used to define the record structure for each of the test files that are used by this suite of programs.
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.
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.
The following source member (NUMTBSB1.cpy) is the COBOL Copy File that defines the record structure for the test file that contains the BINARY, SIGNED numeric values.
***************************************************************** * NUMTBSB1.cpy - a COBOL Copy File * * Copy File for testing with BINARY-SIGNED numeric values. * ***************************************************************** * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 BS-RECORD. 05 BS-DESCRIPTION. 10 BS-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 BS-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 BS-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 BS-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of SIGNED Numbers using a COMPUTATIONAL format. * The physical structure is Binary. * An abbreviated form of the USAGE IS COMPUTATIONAL clause * is simply coded as COMP. * 05 BS-72 PIC S9(7)V99 COMP. 05 FILLER PIC X. 05 BS-23 PIC S9(2)V999 COMP. 05 FILLER PIC X. 05 BS-52 PIC S9(5)V99 COMP. 05 FILLER PIC X. 05 BS-60 PIC S9(6) COMP. 05 FILLER PIC X. 05 BS-20 PIC S99 COMP. 05 FILLER PIC X. * 05 FILLER PIC X(21). * *** NUMTBSB1 - End-of-Copy File - - - - - - - - - - - NUMTBSB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTBSB1.cpy) that defines the record structure for a test file that contains the Binary, Signed numeric fields.
Explore numeric values that use a Signed, BINARY format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
The following source member (NUMTBUB1.cpy) is the COBOL Copy File that defines the record structure for the test file that contains the BINARY, UNSIGNED numeric values.
***************************************************************** * NUMTBUB1.cpy - a COBOL Copy File * * Copy File for testing with BINARY-UNSIGNED numeric values. * ***************************************************************** * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 BU-RECORD. 05 BU-DESCRIPTION. 10 BU-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 BU-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 BU-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 BU-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of UNSIGNED Numbers using a COMPUTATIONAL format. * The physical structure is Binary. * An abbreviated form of the USAGE IS COMPUTATIONAL clause * is simply coded as COMP. * 05 BU-72 PIC 9(7)V99 COMP. 05 FILLER PIC X. 05 BU-23 PIC 9(2)V999 COMP. 05 FILLER PIC X. 05 BU-52 PIC 9(5)V99 COMP. 05 FILLER PIC X. 05 BU-60 PIC 9(6) COMP. 05 FILLER PIC X. 05 BU-20 PIC 99 COMP. 05 FILLER PIC X. * 05 FILLER PIC X(21). * *** NUMTBUB1 - End-of-Copy File - - - - - - - - - - - NUMTBUB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTBUB1.cpy) that defines the record structure for a test file that contains the Binary, Unsigned numeric fields.
Explore numeric values that use an Unsigned, BINARY format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
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.
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.
The following source member (NUMTPSB1.cpy) is the COBOL Copy File that defines the record structure for the test file that contains the PACKED, SIGNED numeric values.
***************************************************************** * NUMTPSB1.cpy - a COBOL Copy File * * Copy File for testing with PACKED-SIGNED numeric values. * * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 PS-RECORD. 05 PS-DESCRIPTION. 10 PS-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 PS-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 PS-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 PS-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of SIGNED Numbers using a COMPUTATIONAL-3 format. * The physical structure is Packed-Decimal. * An abbreviated form of the USAGE IS COMPUTATIONAL-3 clause * is simply coded as COMP-3. * 05 PS-72 PIC S9(7)V99 COMP-3. 05 FILLER PIC X. 05 PS-23 PIC S9(2)V999 COMP-3. 05 FILLER PIC X. 05 PS-52 PIC S9(5)V99 COMP-3. 05 FILLER PIC X. 05 PS-60 PIC S9(6) COMP-3. 05 FILLER PIC X. 05 PS-20 PIC S99 COMP-3. 05 FILLER PIC X. * 05 FILLER PIC X(21). * *** NUMTPSB1 - End-of-Copy File - - - - - - - - - - - NUMTPSB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTPSB1.cpy) that defines the record structure for a test file that contains the Packed-Decimal, Signed numeric fields.
Explore numeric values that use a Signed, PACKED-DECIMAL format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
The following source member (NUMTPUB1.cpy) is the COBOL Copy File that defines the record structure for the test file that contains the PACKED, UNSIGNED numeric values.
***************************************************************** * NUMTPUB1.cpy - a COBOL Copy File * * Copy File for testing with PACKED-UNSIGNED numeric values. * * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 PU-RECORD. 05 PU-DESCRIPTION. 10 PU-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 PU-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 PU-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 PU-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of UNSIGNED Numbers using a COMPUTATIONAL-3 format. * The physical structure is Packed-Decimal. * An abbreviated form of the USAGE IS COMPUTATIONAL-3 clause * is simply coded as COMP-3. * 05 PU-72 PIC 9(7)V99 COMP-3. 05 FILLER PIC X. 05 PU-23 PIC 9(2)V999 COMP-3. 05 FILLER PIC X. 05 PU-52 PIC 9(5)V99 COMP-3. 05 FILLER PIC X. 05 PU-60 PIC 9(6) COMP-3. 05 FILLER PIC X. 05 PU-20 PIC 99 COMP-3. 05 FILLER PIC X. * 05 FILLER PIC X(21). * *** NUMTPUB1 - End-of-Copy File - - - - - - - - - - - NUMTPUB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTPUB1.cpy) that defines the record structure for a test file that contains the Packed-Decimal, Unsigned numeric fields.
Explore numeric values that use an Unsigned, PACKED-DECIMAL format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
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.
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.
The following source member (NUMTZSB1.cpy) is the COBOL Copy File that defines the record structure for a test file that contains the ZONED, SIGNED numeric fields.
***************************************************************** * NUMTZSB1.cpy - a COBOL Copy File * * Copy File for testing with ZONED-SIGNED numeric values. * ***************************************************************** * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 ZS-RECORD. 05 ZS-DESCRIPTION. 10 ZS-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 ZS-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 ZS-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 ZS-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of SIGNED Numbers using a DISPLAY format. * The physical structure is Zoned-Decimal. * Since the USAGE IS DISPLAY clause is the default it is * typically not hard-coded. * * Note: Even though the COBOL systax implies "DISPLAY" the * rightmost position of a signed value may be displayed as * a non-numeric character. * Also, this numeric format is sensitive to EBCDIC and ASCII * encoding schemas. * 05 ZS-72 PIC S9(7)V99. 05 FILLER PIC X. 05 ZS-23 PIC S9(2)V999. 05 FILLER PIC X. 05 ZS-52 PIC S9(5)V99. 05 FILLER PIC X. 05 ZS-60 PIC S9(6). 05 FILLER PIC X. 05 ZS-20 PIC S99. 05 FILLER PIC X. * 05 FILLER PIC X(10). * *** NUMTZSB1 - End-of-Copy File - - - - - - - - - - - NUMTZSB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTZSB1.cpy) that defines the record structure for a test file that contains the Zoned-Decimal, Unsigned numeric fields.
Explore numeric values that use a Signed, ZONED-DECIMAL format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
The following source member (NUMTZUB1.cpy) is the COBOL Copy File that defines the record structure for the test file that contains the ZONED, UNSIGNED numeric fields.
***************************************************************** * NUMTZUB1.cpy - a COBOL Copy File * * Copy File for testing with ZONED-UNSIGNED numeric values. * ***************************************************************** * Copyright (C) 1987-2019 SimoTime Technologies * * All Rights Reserved * ***************************************************************** * Provided by SimoTime Technologies * * Our e-mail address is: helpdesk@simotime.com * * Also, visit our Web Site at http://www.simotime.com * ***************************************************************** 01 ZU-RECORD. 05 ZU-DESCRIPTION. 10 ZU-IDENTIFIER PIC X(8). 10 FILLER PIC X. 10 ZU-SIGN-KEY PIC X(8). 10 FILLER PIC X. 10 ZU-SIGN-POS PIC X(8). 10 FILLER PIC X. 10 ZU-SIGN-EXT PIC X(8). 10 FILLER PIC X. * * ------------------------------------------------------------- * * A group of UNSIGNED Numbers using a DISPLAY format. * The physical structure is Zoned-Decimal. * Since the USAGE IS DISPLAY clause is the default it is * typically not hard-coded. * * Note: this numeric format is sensitive to EBCDIC and ASCII * encoding schemas. * 05 ZU-72 PIC 9(7)V99. 05 FILLER PIC X. 05 ZU-23 PIC 9(2)V999. 05 FILLER PIC X. 05 ZU-52 PIC 9(5)V99. 05 FILLER PIC X. 05 ZU-60 PIC 9(6). 05 FILLER PIC X. 05 ZU-20 PIC 99. 05 FILLER PIC X. * 05 FILLER PIC X(10). * *** NUMTZUB1 - End-of-Copy File - - - - - - - - - - - NUMTZUB1 * ***************************************************************** *
The following link provides additional documentation for the COBOL copy file (NUMTZUB1.cpy) that defines the record structure for a test file that contains the Zoned-Decimal, Unsigned numeric fields.
Explore numeric values that use an Unsigned, ZONED-DECIMAL format. This HTML document was generated by SimoTime Technologies and is based on the field definitions included in a user-defined COBOL copy file.
This section provides additional detail about the secondary CMD files and programs that are used in this set of sample programs.
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"
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
This suite of programs provides an example of how to create test files with records that contain numeric data items in various formats such as Packed Decimal, Binary and Zoned Decimal. 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.
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.
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 the Numbers Connection for additional information about the structure and processing of numeric data items (or numeric fields).
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.
Explore The Edited for Display format for numeric data strings. This numeric structure is supported by COBOL and may be used with an edit-mask to prepare the presentation for readability by human beings.
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.
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.
Explore the JCL Connection for more examples of JCL functionality with programming techniques and sample code.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
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 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 that are used to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connect.
This suite of programs and documentation is available to download for review and evaluation purposes. Other uses will require a SimoTime Software License. Link to an Evaluation zPAK Option that includes the program members, documentation and control files.
A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection
Explore The Micro Focus Web Site for more information about products (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection.
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 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.
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 |
Test Files with Numeric Data, Zoned Decimal, Packed and Binary |
Copyright © 1987-2025 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |