Text and Numeric Formats
Create and Convert CSV to Fixed Field
  Table of Contents  v-24.01.01 - crtn8008.htm 
  Introduction
  Batch Job Scripts
  Windows CMD Files
  Create Test Files
  Flowchart of a multi-step Batch Job
  CMD to Create Test Files
  Convert EBC to ASC
  Convert ASC to EBC
  COBOL Programs
  Read CSV and Create ASC, RSEQ, 80
  Convert CSV Numeric to Fixed Field
  Convert ASC, RSEQ, 80 to EBC
  COBOL Copy Files
  Record Structure
  Convert Table for Text Strings
  Convert Table for Zone Decimal
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Supplemental Information
  Additional Reference Material
  Internet Resources
  Glossary of Terms
  Contact or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

This job will execute a program that will read an existing line sequential file with a record structure that uses a CSV (Comma Separated Values) format. Next, the primary program will call a second program to convert or translate the record content from CSV to FFL (Fixed Field Length) format. Next, the primary program will write the record to a new record sequential file. The primary COBOL program does the file Input and Output and calls a second COBOL program to do the record content conversion. Each record in the Output file is a data structure that contains a mixture of binary, numeric and text strings. This document will describe and demonstrate the conditional processing of individual string types within a data structure based on the string definitions within a COBOL copy file. The programs were generated using SimoTime technology.

An EBCDIC encoding schema is used to store user data on an IBM Mainframe System. An ASCII encoding schema is used to store user data on a Linux, UNIX or Windows (LUW) System.

This test case will require the following data conversion tasks.

1. File Format Conversion
1.1. Read a Line Sequential File and write to a Record Sequential File.
2. Record Format Conversion
2.1. Convert records from a variable length, CSV format to a fixed length record containing a group of concatenated data strings of a fixed field length.
3. String or Field Format Conversion
3.1. Bypass the EBC/ASC conversion process for Binary data strings.
3.2. Convert numeric values from the CSV, Display format to a Binary (COMP), Packed Decimal (COMP-3) or a Zoned Decimal format.
3.3. Convert text string between EBC and ASC.

 

 


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

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

Table of Contents Previous Section Next Section Batch Job Scripts

This section describes the batch job scripts that are used to create test data files. A Job Script will identify and allocate resources (data files, memory, work areas, control information, etc.) for the Job or Job Step and execute programs that will process, access or utilize the allocated resources.

Table of Contents Previous Section Next Section Windows CMD Files

This section describes the Windows Command Files (or Job Scripts) that are used to create test files. The records contain text fields that may be ASCII or EBCDIC encoded and numeric values that are defined as binary, packed-decimal or zoned-decimal.

Table of Contents Previous Section Next Section Create Test Files

This job uses one (1) Primary Input File and will produce two (2) Output Files.

1. Take ASC/CSV File, This is a Line Sequential (LSEQ) File that may be referred to as an ASCII/Text File.
1.1. The record format is variable length.
1.2. The record content is ASCII encoded and is all display text data. The records contain concatenated, variable length text strings (or fields) separated by a delimiter character. The delimiter character for this file is a comma.
1.3. The Signed numeric values may have a trailing sign character. If the sign character is missing the numeric value will be treated as a positive value.
2. Make ASC File, This is a Record Sequential (RSEQ) File that contains binary, numeric and text data strings.
2.1. The record content is a group of concatinated data strings (or fields)of a user-defined fixed field length.
2.2. The text strings are ASCII encoded.
2.3. Numeric values are stored in a variety of formats and may be signed or unsigned. The numeric strings within a record are formatted in accordance with their field definitions as defined in a user supplied COBOL Copy File. Each numeric data string will need to be evaluated and processed based on its unique definition.
2.3.1. The Binary Format of a numeric value is specified in COBOL as USAGE is BINARY, or USAGE is COMPUTATIONAL or USAGE is COMP).
2.3.1.1. The Binary Format is independent of an EBCDIC or ASCII encoding schema.
2.3.1.2. The numeric, binary strings within a record may contain values from x'00' to x'FF'.
2.3.2. The Packed Decimal Format of a numeric value is specified in COBOL as USAGE is COMPUTATIONAL-3 or USAGE is COMP-3).
2.3.2.1. The Packed Decimal Format is independent of an EBCDIC or ASCII encoding schema.
2.3.3. The Zoned Decimal Format of a numeric value is specified in COBOL as USAGE is DISPLAY.
2.3.3.1. The Zoned Decimal Format is sensitive to the EBCDIC or ASCII encoding schema.
3. Make EBC File, This is a Record Sequential (RSEQ) File that contains binary, numeric and text data strings.
3.1. The record content is a group of concatinated data strings (or fields)of a user-defined fixed field length.
3.2. The text strings are EBCDIC encoded.
3.3. Numeric values are stored in a variety of formats and may be signed or unsigned. The numeric strings within a record are formatted in accordance with their field definitions as defined in a user supplied COBOL Copy File. Each numeric data string will need to be evaluated and processed based on its unique definition.
3.3.1. The Binary Format of a numeric value is specified in COBOL as USAGE is BINARY, or USAGE is COMPUTATIONAL or USAGE is COMP).
3.3.1.1. The Binary Format is independent of an EBCDIC or ASCII encoding schema.
3.3.1.2. The numeric, binary strings within a record may contain values from x'00' to x'FF'.
3.3.2. The Packed Decimal Format of a numeric value is specified in COBOL as USAGE is COMPUTATIONAL-3 or USAGE is COMP-3).
3.3.2.1. The Packed Decimal Format is independent of an EBCDIC or ASCII encoding schema.
3.3.3. The Zoned Decimal Format of a numeric value is specified in COBOL as USAGE is DISPLAY.
3.3.3.1. The Zoned Decimal Format is sensitive to the EBCDIC or ASCII encoding schema.

 

 

The following describes the job steps or the sequence of events for the batch job that creates test data.

1. Step 1 of 4, Prepare the System and Job environment.
1.1. Call ENVBASE1.cmd to set the system environment variables.
1.2. Use Windows SET statement to map the file names.
2. Step 2 of 4, Read ASCII/Text file, write to a Record Sequential File.
2.1. Convert record content from CSV to FFL with Binary, Packed-Decimal and Zoned Decimal numeric formats.
2.2. The records in the output file will retain the ASCII encoding.
3. Step 3 of 4, Both the input and output files are Record Sequential Files.
3.1. Read ASCII encoded records, write EBCDIC encoded records.
3.2. Convert record content from EBCDIC to ASCII on a field level basis based on the definitions contained within a user-defined COBOL Copy File.
4. Step 4 of 4, End of Job processing.

 

 

Table of Contents Previous Section Next Section Flowchart of a multi-step Batch Job

The following shows the logic flow for a Windows Command File (CRTN80W8.cmd) that is used to execute a batch job that creates a suite of test files.

               
CRTN80W8
cmd
Batch Job, Windows CMD File
   
 
 
 
 
 
 
Step 1 of 4
 
 
 
 
 
 
 
Prepare the Environment
   
ENV1BASE
cmd
 
 
Environment
Variables
Set System and Job Environment,
Refer to Note-1
   
 
 
 
 
 
 
Step 2 of 4
 
 
 
 
 
 
 
Convert File Format & Record Content
   
SYSUT1
lseq
   
   
A2AN80C8
cbl
 
 
SYSUT2
rseq
Read from LSEQ/ASC, write to RSEQ/ASC,
Refer to Notes 2.1 & 2.2.
   
   
   
   
   
   
End of File?
   
   
Loop
No
Yes
If EOF then Next Step else call convert routine
   
   
A2AN80R8
cbl
   
   
Convert Numeric Values and Field Format
   
   
   
   
   
   
Loop until EOF
   
   
   
   
 
 
 
 
 
 
Step 3 of 4
 
 
 
 
 
 
 
Convert Record Content
   
SYSUT1
rseq
   
   
A2EN80C1
cbl
 
 
SYSUT2
rseq
Read from RSEQ/ASC, write to RSEQ/EBC,
Refer to Notes 3.1 & 3.2.
   
   
   
   
   
   
End of File?
   
   
Loop
No
Yes
If EOF then Next Step else call convert routine
   
   
A2EN80R1
cbl
   
   
Convert ASC to EBC, Maintain Numeric Integrity
   
   
   
   
   
   
Loop until EOF
   
   
   
   
 
 
 
 
 
 
Step 4 of 4
 
 
 
 
 
 
 
End of Job
   
   
EOJ
End of Job Processing
 
Note-1: Set Environment Variables for the System and Job Environment.
Note-2.1: SYSUT1 is an ASCII/Text (or Line Sequential) file. The records contain Text Strings and Numeric Values that use an ASCII encoding schema.
Note-2.2: SYSUT2 is a Record Sequential file. Each record is a fixed length of 80 bytes. The records contain Text Strings that are ASCII encoded. The Numeric Values use Binary, Packed-Decimal and Zoned-Decimal formats.
Note-3.1: SYSUT1 is a Record Sequential file. Each record is a fixed length of 80 bytes. The records contain Text Strings that are ASCII encoded. The Numeric Values use Binary, Packed-Decimal and Zoned-Decimal formats.
Note-3.2: SYSUT2 is a Record Sequential file. Each record is a fixed length of 80 bytes. The records contain Text Strings that are EBCDIC encoded. The Numeric Values use Binary, Packed-Decimal and Zoned-Decimal formats.
Note-4: Records may contain Binary Numeric Values that should not be subjected to an ASCII/EBCDIC conversion.
Note-5: Records may contain Packed-Decimal Numeric Values that should not be subjected to an ASCII/EBCDIC conversion.
Note-6: Records may contain Zoned-Decimal Numeric Values that are sensitive to an ASCII or EBCDIC encoding schemas
 
A multi-step Batch Job using a Windows Command File

Table of Contents Previous Section Next Section CMD to Create Test Files

The following Job Script (CRTN80W8.cmd) is a listing of the Windows CMD file that is needed to prepare the system and job environments and execute the programs that will create the test data.

@echo OFF
rem  * *******************************************************************
rem  *               CRTN80W8.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   - Convert an ASCII/Text File to a Record Sequential File.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an ASCII/text file with CSV Formatted records
rem  * and write to a Record Sequential (RSEQ) File with a fixed record
rem  * structure of fixed field lengths.
rem  *
rem  * The Text strings (or fields) in both files are ASCII encoded.
rem  * The numeric strings in the input file are ASCII/Text with a
rem  * possible leading sign character
rem  * The numeric values in the output file are converted to a format
rem  * based on the field definition contained is a user selected COBOL
rem  * Copy File.
rem  *
rem  *
rem  *                     ************
rem  *                     * CRTN80W8 *
rem  *                     ********cmd*
rem  *                          *
rem  * -- Step 1 of 4 ----------*--------------------------- * Prepare
rem  *                          *
rem  *                     ************
rem  *                     * ENV1BASE *                      * Note 1
rem  *                     ********cmd*
rem  *                          *
rem  * -- Step 2 of 4 ----------*--------------------------- * Convert
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  *-----* A2AN80C8 *--*--*  SYSUT2  *     * Note 2
rem  *    *******lseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        *--*   call   *
rem  *                          *           ************
rem  *                          *                *
rem  *                          *           ************
rem  *                          *           * A2AN80R8 *     * Note 3
rem  *                          *           ************
rem  *                          *
rem  * -- Step 3 of 4 ----------*--------------------------- * Convert
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  *-----* A2EN80C1 *--*--*  SYSUT2  *     * Note 4
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        *--*   call   *
rem  *                          *           ************
rem  *                          *                *
rem  *                          *           ************
rem  *                          *           * A2EN80R1 *     * Note 5
rem  *                          *           ************
rem  *                          *
rem  * -- Step 4 of 4 ----------*--------------------------- * End of Job
rem  *                          *
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  *   Note 1: Prepare the System and Job Environment.
rem  *   Note 2: Convert ASCII/Text file to a Record Sequential File.
rem  *   Note 3: Convert record content from CSV to FFL with Binary,
rem  *           Packed-Decimal and Zoned Decimal numeric formats.
rem  *   Note 4: Read ASCII encoded record, write EBCDIC encoded record.
rem  *   Note 5: Convert record content from EBCDIC to ASCII on a field
rem  *           level basis based on the definitions contained within a
rem  *           user-defined COBOL Copy File.
rem  *
rem  *   Notation  Description
rem  *   --------  -------------------------------------------------------
rem  *   LSEQ      Line Sequential or ASCII/Text, a type of file
rem  *   RSEQ      Record Sequential File, a type of file
rem  *   CSV       Comma Separated Values, a type of record structure
rem  *   FFL       Fixed Field Length, a type of record structure
rem  *   CMD       Command, used when referencing a Window Command File
rem  *
rem  * *******************************************************************
rem  * Step 1 of 4, Prepare the System and Job Environments...
rem  *
     set CmdName=CRTN80W8
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SIMONOTE "*******************************************************%CmdName%"
     call SIMONOTE "Starting CmdName %CmdName%"
     call SIMONOTE "Job Step 1 of 4, Prepare the System and Job Environments"
rem  *
rem  * *******************************************************************
rem  * Step 2 of 4, Convert the LSEQ/CSV File to a new RSEQ/FFL/ASC File.
rem  *              This job step performs a variety of conversion tasks.
rem  * Task 2.1     Map the Program File Names to Physical File Names.
rem  * Task 2.2     File Format Convert from LSEQ to RSEQ.
rem  * Task 2.3     Record Format Convert from CSV to FFL.
rem  * Task 2.4     Field Format Convert from Variable, CSV to Fixed.
rem  *              Numeric Fields may be Signed or Unsigned.
rem  * Task 2.4.1   Numeric Format Convert from Text with Trailing Sign
rem  *              to Binary (USAGE is COMP).
rem  * Task 2.4.1   Numeric Format Convert from Text with Trailing Sign
rem  *              to Packed Decimal (USAGE is COMP-3).
rem  * Task 2.4.1   Numeric Format Convert from Text with Trailing Sign
rem  *              to Zoned Decimal (USAGE is DISPLAY).
rem  *
     call SIMONOTE "Job Step 2 of 4, Convert the LSEQ/CSV File to a new RSEQ/FFL/ASC File"
     set SYSUT1=%BaseLib1%\DATA\XLSS\SIMOTIME.DATA.NBRMIXX1.csv
     set SYSUT2=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.NBRN80D1.dat
     call SimoNOTE "DataTake (LSEQ/CSV/ASC) %SYSUT1%"
     call SimoNOTE "DataMake (RSEQ/FFL/ASC) %SYSUT2%"
     run A2AN80C8
     set ERRORLEVELTWO=%ERRORLEVEL%
     if not "%ERRORLEVELTWO%" == "0" set JobStatus=0010
     if "%ERRORLEVELTWO%" == "4" set JobStatus=0004
rem  *
rem  * *******************************************************************
rem  * Step 3 of 4, Convert the RSEQ/FFL/ASC File to an RSEQ/FFL/EBC File.
rem  *              This purpose of this Job Step is to create an EBCDIC
rem  *              encoded Test File that includes a variety of formats
rem  *              for numeric values.
rem  *              The new file is created by reading the ASCII encoded
rem  *              file created in the previous job step, doing an ASCII
rem  *              to EBCDIC conversion at the field level and writing
rem  *              to a new EBCDIC encoded file.
rem  *              The processing of each field is based on the field
rem  *              definition obtained from a user selected COBOL Copy
rem  *              File Definitions
rem  * Task 3.1     Map the Program File Names to Physical File Names.
rem  * Task 3.2     Convert Text Fields from ASCII to EBCDIC.
rem  * Task 3.3     Numeric Fields may be Signed or Unsigned.
rem  * Task 3.3.1   Bypass convert for Binary (USAGE is COMP).
rem  * Task 3.3.2   Bypass convert for Packed Decimal (USAGE is COMP-3).
rem  * Task 3.3.3   Convert Zoned Decimal (USAGE is DISPLAY) from ASC to EBC.
rem  *
     call SIMONOTE "Job Step 3 of 4, Convert the RSEQ/FFL/ASC File to an RSEQ/FFL/EBC File"
     set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.NBRN80D1.dat
     set SYSUT2=%BaseLib1%\DATA\EBC1\SIMOTIME.DATA.NBRN80D1.dat
     call SimoNOTE "DataTake (RSEQ/FFL/ASC) %SYSUT1%"
     call SimoNOTE "DataMake (RSEQ/FFL/EBC) %SYSUT2%"
     run A2EN80C1
     set ERRORLEVELTWO=%ERRORLEVEL%
     if not "%ERRORLEVELTWO%" == "0" set JobStatus=0010
     if "%ERRORLEVELTWO%" == "4" set JobStatus=0004
rem  *
rem  * *******************************************************************
rem  * Step 4 of 4, End of Job processing.
rem  *
:EojAok
     call SIMONOTE "Job Step 4 of 4, End of Job processing"
     call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus% "
     goto :End
:EojNok
     call SIMONOTE "Job Step 4 of 4, End of Job processing"
     call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus% "
:End
     call SimoNOTE "Conclude Data Set Convert Status is  %ERRORLEVELTWO% "
     if not "SIMOGENS" == "BATCH" pause

Table of Contents Previous Section Next Section Convert EBC to ASC

The following Job Script (E2AN80W1.cmd) is a listing of the Windows CMD file that is needed to prepare the system and job environments and execute the programs that will do a record content conversion from EBCDIC encoding to ASCII encoding.

WIP

@echo OFF
     set CmdName=E2AN80W1
rem  * *******************************************************************
rem  *               E2AN80W1.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   - Convert EBC file with binary, numeric & text to ASC.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * This job will execute a program that will read an existing record
rem  * sequential, EBCDIC-encoded file, convert the record content and
rem  * write to a new record sequential, ASCII-encoded file while
rem  * maintaining binary and numeric integrity.
rem  *
rem  * The first COBOL program does the file Input and Output and calls
rem  * a second COBOL program to do the record content conversion
rem  * between EBCDIC and ASCII. Each record in the Input file is a
rem  * data structure that contains a mixture of binary, numeric and
rem  * text strings.
rem  *
rem  *
rem  *                     ************
rem  *                     * E2AN80W1 *
rem  *                          *
rem  *                          *
rem  *                     ************
rem  *                     * ENV1BASE *                      * Note 1
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  *-----* E2AN80C1 *--*--*  SYSUT2  *     * File I/O
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        *--*   call   *
rem  *                          *           ************
rem  *                          *                *
rem  *                          *           ************
rem  *                          *           * E2AN80R1 *     * Convert
rem  *                          *           ********cbl*
rem  *                          *
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  *    Note 1: Prepare the System and Job Environment.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 3, Prepare the System and Job environment...
rem  *
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set SYSLUSER=%BaseLib1%\LOGS\SYSLUSER_CL0512W2.htm
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2 of 3,  Convert the File, maintain numeric integrity...
rem  *
     set SYSUT1=%BaseLib1%\DATA\EBC1\SIMOTIME.DATA.NBRN80D1.dat
     set SYSUT2=%BaseLib1%\DATA\WRK1\SIMOTIME.DATA.NBRN80D1.dat
     call SimoNOTE "DataTake %SYSUT1%"
     call SimoNOTE "DataMake %SYSUT2%"
     run E2AN80C1
     set ERRORLEVELTWO=%ERRORLEVEL%
     if not "%ERRORLEVELTWO%" == "0" set JobStatus=0010
     if "%ERRORLEVELTWO%" == "4" set JobStatus=0004
rem  *
rem  * *******************************************************************
rem  * Step 3 of 3, End of Job processing.
rem  *
:EojAok
     call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus% "
     goto :End
:EojNok
     call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus% "
:End
     call SimoNOTE "Conclude Data Set Convert Status is  %ERRORLEVELTWO% "
     if not "SIMOGENS" == "BATCH" pause

Table of Contents Previous Section Next Section Convert ASC to EBC

The following Job Script (A2EN80W1.cmd) is a listing of the Windows CMD file that is needed to prepare the system and job environments and execute the programs that will do a record content conversion from EBCDIC encoding to ASCII encoding.

WIP

@echo OFF
     set CmdName=A2EN80W1
rem  * *******************************************************************
rem  *                Job Script - a Windows Command File                *
rem  *                 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   - Convert ASC file with binary, numeric & text to EBC.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * This job will execute a program that will read an existing record
rem  * sequential, EBCDIC-encoded file, convert the record content and
rem  * write to a new record sequential, ASCII-encoded file while
rem  * maintaining binary and numeric integrity.
rem  *
rem  * The first COBOL program does the file Input and Output and calls
rem  * a second COBOL program to do the record content conversion
rem  * between EBCDIC and ASCII. Each record in the Input file is a
rem  * data structure that contains a mixture of binary, numeric and
rem  * text strings.
rem  *
rem  *
rem  *                     ************
rem  *                     * A2EN80W1 *
rem  *                     ********cmd*
rem  *                          *
rem  *                     ************
rem  *                     * ENV1BASE *                      * Note 1
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  *-----* A2EN80C1 *--*--*  SYSUT2  *     * File I/O
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        *--*   call   *
rem  *                          *           ************
rem  *                          *                *
rem  *                          *           ************
rem  *                          *           * A2EN80R1 *     * Convert
rem  *                          *           ********cbl*
rem  *                          *
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  *    Note 1: Prepare the System and Job Environment.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Prepare the System and Job environment...
rem  *
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set SYSLUSER=%BaseLib1%\LOGS\SYSLUSER_CL0512W2.htm
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
     set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.NBRN80D1.dat
     set SYSUT2=%BaseLib1%\DATA\EBC1\SIMOTIME.DATA.NBRN80D1.dat
rem  *
rem  * *******************************************************************
rem  * Step 2 of 2,  Convert the File...
rem  *
     call SimoNOTE "DataTake %SYSUT1%"
     call SimoNOTE "DataMake %SYSUT2%"
     run A2EN80C1
     set ERRORLEVELTWO=%ERRORLEVEL%
     if not "%ERRORLEVELTWO%" == "0" set JobStatus=0010
     if "%ERRORLEVELTWO%" == "4" set JobStatus=0004
rem  *
rem  * *******************************************************************
:EojAok
     call SimoNOTE "Finished CmdName %CmdName%, Job Status is %JobStatus% "
     goto :End
:EojNok
     call SimoNOTE "ABENDING CmdName %CmdName%, Job Status is %JobStatus% "
:End
     call SimoNOTE "Conclude Data Set Convert Status is  %ERRORLEVELTWO% "
     if not "SIMOGENS" == "BATCH" pause

Table of Contents Previous Section Next Section COBOL Programs

This section describes the COBOL Members that are are used to create the input test data.

Table of Contents Previous Section Next Section Read CSV and Create ASC, RSEQ, 80

The following (A2AN80C8.cbl) is the COBOL I/O program that was generated with SimoTime technology. The program was tested on a Windows/7 System with Micro Focus Enterprise Server.

This program will read CSV formatted from an existing Line Sequential File, call a 2nd COBOL Program to convert from CSV format to FFL format and write the FFL formatted record to a new Record Sequential File.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    A2AN80C8.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2019-04-03  Generation Time: 00:51:08:64    *
      *                                                               *
      *                                   Record    Record     Key    *
      *  Function  Name     Organization  Format    Max-Min  Pos-Len  *
      *  PRIMARY   SYSUT1   ASCII/CRLF    FIXED      00128            *
      *                                                               *
      *  SECONDARY SYSUT2   SEQUENTIAL    FIXED      00080            *
      *                                                               *
      *                                                               *
      *****************************************************************
       ENVIRONMENT DIVISION.
       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT SYSUT1-FILE  ASSIGN TO       SYSUT1
                  ORGANIZATION  IS LINE SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT1-STATUS.
           SELECT SYSUT2-FILE  ASSIGN TO       SYSUT2
                  ORGANIZATION  IS SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT2-STATUS.

      *****************************************************************
       DATA DIVISION.
       FILE SECTION.
       FD  SYSUT1-FILE
           DATA RECORD    IS SYSUT1-REC
           .
       01  SYSUT1-REC.
           05  SYSUT1-DATA-01 PIC X(00128).

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

      *****************************************************************
      * This program was created with the SYSMASK1.TXT file as input. *
      * The SYSMASK1 provides for the sequential reading of the input *
      * file and the sequential writing of the output file.           *
      *                                                               *
      * If the output file is indexed then the input file must be in  *
      * sequence by the field that will be used to provide the key    *
      * for the output file. This is a sequential load process.       *
      *                                                               *
      * If the key field is not in sequence then refer to SYSMASK2    *
      * to provide for a random add or update of the indexed file.    *
      *                                                               *
      * This program mask will have the ASCII/EBCDIC table inserted   *
      * for use by the /TRANSLATE function of SimoZAPS.               *
      *                                                               *
      * For more information or questions please contact SimoTime     *
      * Technologies. The version control number is 16.01.01          *
      *                                                               *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *****************************************************************
       WORKING-STORAGE SECTION.
       01  SIM-TITLE.
           05  T1 pic X(11) value '* A2AN80C8 '.
           05  T2 pic X(34) value 'Import CSV to Fixed-Field Format  '.
           05  T3 pic X(10) value ' v16.01.01'.
           05  T4 pic X(24) value '   helpdesk@simotime.com'.
       01  SIM-COPYRIGHT.
           05  C1 pic X(11) value '* A2AN80C8 '.
           05  C2 pic X(32) value 'This Data File Convert Member wa'.
           05  C3 pic X(32) value 's generated by SimoTime Technolo'.
           05  C4 pic X(04) value 'gies'.

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

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

       01  SYSUT1-LRECL            pic 9(5)    value 00128.
       01  SYSUT2-LRECL            pic 9(5)    value 00080.
       01  SYSUT1-LRECL-MAX        pic 9(5)    value 00128.
       01  SYSUT2-LRECL-MAX        pic 9(5)    value 00080.

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

      *****************************************************************
      * Message Buffer used by the Z-DISPLAY-MESSAGE-TEXT routine.    *
      *****************************************************************
       01  MESSAGE-BUFFER.
           05  MESSAGE-HEADER      pic X(011)  value '* A2AN80C8 '.
           05  MESSAGE-TEXT.
               10  MESSAGE-TEXT-1  pic X(068)  value SPACES.
               10  MESSAGE-TEXT-2  pic X(188)  value SPACES.
       01  MSG-LSB                 pic 9(5)    value 267.

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

       01  INFO-STATEMENT.
           05  INFO-SHORT.
               10  INFO-ID pic X(8)    value 'Starting'.
               10  filler  pic X(2)    value ', '.
               10  filler  pic X(34)
                   value   'Import CSV to Fixed-Field Format  '.
           05  filler      pic X(24)
               value ' http://www.SimoTime.com'.

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

       01  WRITE-FLAG      pic X       value 'Y'.

       01  SYSUT1-TOTAL.
           05  SYSUT1-RDR  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT1  '.
       01  SYSUT2-TOTAL.
           05  SYSUT2-ADD  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT2  '.

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

      *    USRSOJ Processing not specified...

           perform until SYSUT1-STATUS not = '00'
               perform SYSUT1-READ
               if  SYSUT1-STATUS = '00'
                   add 1 to SYSUT1-RDR
                   perform BUILD-OUTPUT-RECORD
                   if  WRITE-FLAG = 'Y'
                       perform SYSUT2-WRITE
                       if  SYSUT2-STATUS = '00'
                           add 1 to SYSUT2-ADD
                       end-if
                   end-if
               end-if
           end-perform

      *    USREOJ Processing not specified...

           move SYSUT1-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-MESSAGE-TEXT

           move SYSUT2-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-MESSAGE-TEXT

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

           perform SYSUT2-CLOSE
           perform SYSUT1-CLOSE
           GOBACK.

      *****************************************************************
       BUILD-OUTPUT-RECORD.
      *    Import CALL process...
           call 'A2AN80R8'                        using SYSUT2-REC
                                                        SYSUT1-REC
           add 00080 to ZERO giving SYSUT2-LRECL
           exit.

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

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

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

      *****************************************************************
       Z-CALCULATE-MESSAGE-LSB.
           add 267 to ZERO giving MSG-LSB
           perform until MSG-LSB < 80
                      or MESSAGE-BUFFER(MSG-LSB:1) not = SPACE
             if MESSAGE-BUFFER(MSG-LSB:1) = SPACE
                subtract 1 from MSG-LSB
             end-if
           end-perform
           exit.

      *****************************************************************
      * Display CONSOLE messages...                                   *
      *****************************************************************
       Z-DISPLAY-MESSAGE-TEXT.
           perform Z-CALCULATE-MESSAGE-LSB
           display MESSAGE-BUFFER(1:MSG-LSB)
           move all SPACES to MESSAGE-TEXT
           exit.

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

      *****************************************************************
       Z-POST-COPYRIGHT.
           display SIM-TITLE
           display SIM-COPYRIGHT
           exit.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2019-04-03  Generation Time: 00:51:08:66    *
      *****************************************************************

Table of Contents Previous Section Next Section Convert CSV Numeric to Fixed Field

The following (A2AN80R8.cbl) is a COBOL program that does the record content conversion of a CSV (Comma Separated Values) formatted data structure to an FFL (Fixed Field Length) data structure. This FFL data structure includes concatenated strings that are defined as using a binary, numeric or text format.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    A2AN80R8.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      *           This routine was generated by SimoREC1              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *  Generation Date: 2019/04/03  Generation Time: 00:51:08:69    *
      *****************************************************************
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  NGZU-05-00.
           05  NRZU-05-00  pic  9(05).
       01  NGZS-05-00.
           05  NRZS-05-00  pic S9(05)
                           SIGN LEADING SEPARATE.
       01  NGPU-05-00.
           05  NRPU-05-00  pic  9(05).
       01  NGPS-05-00.
           05  NRPS-05-00  pic S9(05)
                           SIGN LEADING SEPARATE.
       01  NGBU-05-00.
           05  NRBU-05-00  pic  9(05).
       01  NGBS-05-00.
           05  NRBS-05-00  pic S9(05)
                           SIGN LEADING SEPARATE.

       01  IX-P1               pic 9(9)      value 0.
       01  IX-P2               pic 9(9)      value 0.
       01  IX-NP               pic 9(5)      value 0.
       01  IX-L1               pic 9(9)      value 0.
       01  RA-P1               pic 9(3)      value 0.
       01  RA-P2               pic 9(3)      value 0.
       01  LOOP-CONTROL        pic 9(5)      value 0.
       01  COLUMN-NUMBER       pic 9(5)      value 0.
       01  WORK-AREA-X.
           05  WORK-AREA-X1    pic X         value '"'.
           05  WORK-AREA       pic X(00112)  value SPACES.
       01  WORK-AREA-X2        pic X(00080)  value SPACES.
       01  FRAME-STOP.
           05  FRAME-BYTE      pic X         value '"'.
           05  DELIMITER-BYTE  pic X         value ','.
       01  FRAME-FLAG          pic X         value 'N'.
       01  O-FLAG              pic X(3)      value 'CSV'.
       01  BYTE-Y              pic X         value 'Y'.
       01  BYTE-N              pic X         value 'N'.
       01  FRAME-COUNT         pic 9(5)      value 0.
       01  DELIM-COUNT         pic 9(5)      value 0.
       01  FFL-SIZE            pic 9(5)      value 0.
       01  CSV-SIZE            pic 9(5)      value 0.
       01  TXT-SIZE            pic 9(5)      value 0.
       01  LAST-NON-SPACE-BYTE pic 9(5)      value 0.
       01  SIGN-BYTE           pic X         value SPACE.
       01  DIG-POS             pic 9(3).
       01  DIG-LEN             pic 9(3).
       01  DIG-CTL             pic 9(3).
       01  DEC-POS             pic 9(3).
       01  DEC-LEN             pic 9(3).
       01  DEC-CTL             pic 9(3).
       01  DEC-POINT           pic 9(3).
       01  WRK-POS             pic 9(3).
      *
      *****************************************************************
       LINKAGE SECTION.
       COPY NBRN80B1.
       01  REC1CALL-REC pic X(00080).
      *
      *****************************************************************
       PROCEDURE DIVISION using NBRN80-RECORD
                                REC1CALL-REC.
      *
           add 1 to ZERO giving IX-NP
           move ZERO to COLUMN-NUMBER
           move all SPACES
             to NBRN80-RECORD
      *
      *    String Move, NBRN80-FLD-TXT-ZDU-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-ZDU-5-0
      *    Unsign, ZONED Decimal
           add 1 to COLUMN-NUMBER
           add 00005 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TXT-ZDS-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-ZDS-5-0
      *    Signed, ZONED Decimal
           add 1 to COLUMN-NUMBER
           add 00005 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TXT-PKU-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-PKU-5-0
      *    Unsign, PACKED Number
           add 1 to COLUMN-NUMBER
           add 00003 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TXT-PKS-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-PKS-5-0
      *    Signed, PACKED Number
           add 1 to COLUMN-NUMBER
           add 00003 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TXT-BNU-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-BNU-5-0
      *    Unsign, BINARY Number
           add 1 to COLUMN-NUMBER
           add 00004 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TXT-BNS-5-0
           add 1 to COLUMN-NUMBER
           add 00008 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
      *
      *    Number Move, NBRN80-FLD-BNS-5-0
      *    Signed, BINARY Number
           add 1 to COLUMN-NUMBER
           add 00004 to ZERO giving FFL-SIZE
           perform CONVERT-NUMBER
           perform POST-DATA-TO-FIELD
      *
      *    String Move, NBRN80-FLD-TEXT
           add 1 to COLUMN-NUMBER
           add 00006 to ZERO giving FFL-SIZE
           perform CONVERT-TEXT
           perform POST-DATA-TO-FIELD
           GOBACK.
      *
      *****************************************************************
       CONVERT-NUMBER.
           move SPACES to WORK-AREA
           move '+' to SIGN-BYTE
           perform GET-DATA-CONTENT
      *    Scan for Explicit Sign and Decimal Point...
           move ZERO to DIG-POS
           move ZERO to DIG-LEN
           move ZERO to DEC-POS
           move ZERO to DEC-LEN
           move ZERO to DEC-POINT
           add 1 to ZERO giving IX-L1
           if  WORK-AREA(1:1) = '+'
           or  WORK-AREA(1:1) = '-'
               move WORK-AREA(1:1) to SIGN-BYTE
               add 1 to IX-L1
           end-if
           perform
               until IX-L1 > 40
               or WORK-AREA(IX-L1:1) = SPACE
                   if  WORK-AREA(IX-L1:1) = '+'
                   or  WORK-AREA(IX-L1:1) = '-'
                       move WORK-AREA(IX-L1:1) to SIGN-BYTE
                       move SPACES to WORK-AREA(IX-L1:3)
                   end-if
                   if  WORK-AREA(IX-L1:1) = '.'
                       add IX-L1 to ZERO giving DEC-POINT
                   end-if
                   if  WORK-AREA(IX-L1:1) > '0'
                   and WORK-AREA(IX-L1:1) < '9'
                   or  WORK-AREA(IX-L1:1) = '0'
                   or  WORK-AREA(IX-L1:1) = '9'
                       if  DEC-POINT = ZERO
                           add 1 to DIG-LEN
                           if  DIG-POS = ZERO
                               add IX-L1 to DIG-POS
                           end-if
                       else
                           add 1 to DEC-LEN
                           if  DEC-POS = ZERO
                               add IX-L1 to DEC-POS
                           end-if
                       end-if
                   end-if
               add 1 to IX-L1
           end-perform
           exit.
      *
      *****************************************************************
       CONVERT-TEXT.
           move SPACES to WORK-AREA
           perform GET-DATA-CONTENT
           exit.
      *
      *****************************************************************
       GET-DATA-CONTENT.
      *    This routine performs a left-to-right scan of a data
      *    string. A data string may be enclosed within a set
      *    of framing characters (usually double-quotes).
      *    Concatenated data strings may be separated by a
      *    delimiter byte (usually a comma).
      *    The variable length data value minus the possible
      *    framing characters and will be placed in a work area
      *    for use with a fixed-length field format.
      *****************************************************************
           add 1 to ZERO giving IX-P2
           move ZERO to LOOP-CONTROL
           move BYTE-N to FRAME-FLAG
           if  REC1CALL-REC(IX-NP:1) = FRAME-BYTE
               move BYTE-Y to FRAME-FLAG
               add 1 to IX-NP
           end-if
           if  REC1CALL-REC(IX-NP:1) not = DELIMITER-BYTE
           or  FRAME-FLAG = BYTE-Y
               perform until REC1CALL-REC(IX-NP:1) = DELIMITER-BYTE
               and FRAME-FLAG = BYTE-N
               or LOOP-CONTROL > FFL-SIZE + 10
                 if  REC1CALL-REC(IX-NP:1) = FRAME-BYTE
                     if  REC1CALL-REC(IX-NP:2) = FRAME-STOP
                         add 1 to IX-NP
                         move BYTE-N to FRAME-FLAG
                     else
                         add 1 to IX-NP
                         move REC1CALL-REC(IX-NP:1)
                           to WORK-AREA(IX-P2:1)
                         add 1 to IX-NP
                         add 1 to IX-P2
                     end-if
                 else
                     move REC1CALL-REC(IX-NP:1) to WORK-AREA(IX-P2:1)
                     if  REC1CALL-REC(IX-NP:1) not = SPACE
                         add IX-P2 to ZERO giving TXT-SIZE
                     end-if
                     add 1 to IX-NP
                     add 1 to IX-P2
                 end-if
                 add 1 to LOOP-CONTROL
               end-perform
           end-if
      *    Increment past Delimiter Byte
           if  REC1CALL-REC(IX-NP:1) = DELIMITER-BYTE
               add 1 to IX-NP
           end-if
           exit.
      *
      *****************************************************************
       POST-DATA-TO-FIELD.
           evaluate COLUMN-NUMBER
             when 001  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-ZDU-5-0
             when 002  initialize NGZU-05-00
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 1 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGZU-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGZU-05-00(DIG-CTL + 1:DEC-LEN)
                       end-if
                       if  NRZU-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRZU-05-00 from ZERO
                               giving NBRN80-FLD-ZDU-5-0
                           else
                               add NRZU-05-00 to ZERO
                               giving NBRN80-FLD-ZDU-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGZU-05-00
                       end-if
             when 003  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-ZDS-5-0
             when 004  initialize NGZS-05-00
                       move '+' to NGZS-05-00(1:1)
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 2 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGZS-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGZS-05-00(DIG-CTL + 2:DEC-LEN)
                       end-if
                       if  NRZS-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRZS-05-00 from ZERO
                               giving NBRN80-FLD-ZDS-5-0
                           else
                               add NRZS-05-00 to ZERO
                               giving NBRN80-FLD-ZDS-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGZS-05-00
                       end-if
             when 005  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-PKU-5-0
             when 006  initialize NGPU-05-00
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 1 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGPU-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGPU-05-00(DIG-CTL + 1:DEC-LEN)
                       end-if
                       if  NRPU-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRPU-05-00 from ZERO
                               giving NBRN80-FLD-PKU-5-0
                           else
                               add NRPU-05-00 to ZERO
                               giving NBRN80-FLD-PKU-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGPU-05-00
                       end-if
             when 007  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-PKS-5-0
             when 008  initialize NGPS-05-00
                       move '+' to NGPS-05-00(1:1)
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 2 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGPS-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGPS-05-00(DIG-CTL + 2:DEC-LEN)
                       end-if
                       if  NRPS-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRPS-05-00 from ZERO
                               giving NBRN80-FLD-PKS-5-0
                           else
                               add NRPS-05-00 to ZERO
                               giving NBRN80-FLD-PKS-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGPS-05-00
                       end-if
             when 009  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-BNU-5-0
             when 010  initialize NGBU-05-00
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 1 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGBU-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGBU-05-00(DIG-CTL + 1:DEC-LEN)
                       end-if
                       if  NRBU-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRBU-05-00 from ZERO
                               giving NBRN80-FLD-BNU-5-0
                           else
                               add NRBU-05-00 to ZERO
                               giving NBRN80-FLD-BNU-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGBU-05-00
                       end-if
             when 011  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TXT-BNS-5-0
             when 012  initialize NGBS-05-00
                       move '+' to NGBS-05-00(1:1)
                       add 05 to ZERO giving DIG-CTL
                       add 00 to ZERO giving DEC-CTL
                       if  DIG-LEN > 0
                           if  DIG-LEN > DIG-CTL
                               perform until DIG-LEN < DIG-CTL + 1
                                   subtract 1 from DIG-LEN
                                   add 1 to DIG-POS
                               end-perform
                           end-if
                           compute WRK-POS = DIG-CTL + 2 - DIG-LEN
                           move WORK-AREA(DIG-POS:DIG-LEN)
                             to NGBS-05-00(WRK-POS:DIG-LEN)
                       end-if
                       if  DEC-LEN > 0
                           if  DEC-LEN > DEC-CTL
                               add DEC-CTL to ZERO giving DEC-LEN
                           end-if
                           move WORK-AREA(DEC-POS:DEC-LEN)
                             to NGBS-05-00(DIG-CTL + 2:DEC-LEN)
                       end-if
                       if  NRBS-05-00 is NUMERIC
                           if  SIGN-BYTE = '-'
                               subtract NRBS-05-00 from ZERO
                               giving NBRN80-FLD-BNS-5-0
                           else
                               add NRBS-05-00 to ZERO
                               giving NBRN80-FLD-BNS-5-0
                           end-if
                       else
                           display 'non-Numeric in Numeric Field '
                                   COLUMN-NUMBER
                                   ' - ' NGBS-05-00
                       end-if
             when 013  move WORK-AREA(1:TXT-SIZE)
                         to NBRN80-FLD-TEXT
           end-evaluate
           exit.
      *****************************************************************
      *           This routine was generated by SimoREC1              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *  Generation Date: 2019/04/03  Generation Time: 00:51:08:69    *
      *****************************************************************

Table of Contents Previous Section Next Section Convert ASC, RSEQ, 80 to EBC

The following (A2EN80C1.cbl) is the COBOL I/O program that was generated with SimoTime technology. The program was tested on a Windows/7 System with Micro Focus Enterprise Server.

This program will read an ASC encoded Record from an existing Sequential File, call a 2nd COBOL Program to convert from ASC to EBC and write an EBC encoded record to a new Sequential File.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    A2EN80C1.
       AUTHOR.        SIMOTIME TECHNOLOGIES.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2019-04-03  Generation Time: 01:40:20:87    *
      *                                                               *
      *                                   Record    Record     Key    *
      *  Function  Name     Organization  Format    Max-Min  Pos-Len  *
      *  PRIMARY   SYSUT1   SEQUENTIAL    FIXED      00080            *
      *                                                               *
      *  SECONDARY SYSUT2   SEQUENTIAL    FIXED      00080            *
      *                                                               *
      *                                                               *
      *            Translation Mode is ASCII to EBCDIC                *
      *                                                               *
      *****************************************************************
       ENVIRONMENT DIVISION.
       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT SYSUT1-FILE  ASSIGN TO       SYSUT1
                  ORGANIZATION  IS SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT1-STATUS.
           SELECT SYSUT2-FILE  ASSIGN TO       SYSUT2
                  ORGANIZATION  IS SEQUENTIAL
                  ACCESS MODE   IS SEQUENTIAL
                  FILE STATUS   IS SYSUT2-STATUS.

      *****************************************************************
       DATA DIVISION.
       FILE SECTION.
       FD  SYSUT1-FILE
           DATA RECORD    IS SYSUT1-REC
           .
       01  SYSUT1-REC.
           05  SYSUT1-DATA-01 PIC X(00080).

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

      *****************************************************************
      * This program was created with the SYSMASK1.TXT file as input. *
      * The SYSMASK1 provides for the sequential reading of the input *
      * file and the sequential writing of the output file.           *
      *                                                               *
      * If the output file is indexed then the input file must be in  *
      * sequence by the field that will be used to provide the key    *
      * for the output file. This is a sequential load process.       *
      *                                                               *
      * If the key field is not in sequence then refer to SYSMASK2    *
      * to provide for a random add or update of the indexed file.    *
      *                                                               *
      * This program mask will have the ASCII/EBCDIC table inserted   *
      * for use by the /TRANSLATE function of SimoZAPS.               *
      *                                                               *
      * For more information or questions please contact SimoTime     *
      * Technologies. The version control number is 16.01.01          *
      *                                                               *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *****************************************************************
       WORKING-STORAGE SECTION.
       01  SIM-TITLE.
           05  T1 pic X(11) value '* A2EN80C1 '.
           05  T2 pic X(34) value 'CONV ASCC/RSEQ/NBR to EBC/RSEQ/NBR'.
           05  T3 pic X(10) value ' v16.01.01'.
           05  T4 pic X(24) value '   helpdesk@simotime.com'.
       01  SIM-COPYRIGHT.
           05  C1 pic X(11) value '* A2EN80C1 '.
           05  C2 pic X(32) value 'This Data File Convert Member wa'.
           05  C3 pic X(32) value 's generated by SimoTime Technolo'.
           05  C4 pic X(04) value 'gies'.

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

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

       01  SYSUT1-LRECL            pic 9(5)    value 00080.
       01  SYSUT2-LRECL            pic 9(5)    value 00080.
       01  SYSUT1-LRECL-MAX        pic 9(5)    value 00080.
       01  SYSUT2-LRECL-MAX        pic 9(5)    value 00080.

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

      *****************************************************************
      * Message Buffer used by the Z-DISPLAY-MESSAGE-TEXT routine.    *
      *****************************************************************
       01  MESSAGE-BUFFER.
           05  MESSAGE-HEADER      pic X(011)  value '* A2EN80C1 '.
           05  MESSAGE-TEXT.
               10  MESSAGE-TEXT-1  pic X(068)  value SPACES.
               10  MESSAGE-TEXT-2  pic X(188)  value SPACES.
       01  MSG-LSB                 pic 9(5)    value 267.

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

       01  INFO-STATEMENT.
           05  INFO-SHORT.
               10  INFO-ID pic X(8)    value 'Starting'.
               10  filler  pic X(2)    value ', '.
               10  filler  pic X(34)
                   value   'CONV ASCC/RSEQ/NBR to EBC/RSEQ/NBR'.
           05  filler      pic X(24)
               value ' http://www.SimoTime.com'.

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

       01  WRITE-FLAG      pic X       value 'Y'.

       01  SYSUT1-TOTAL.
           05  SYSUT1-RDR  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT1  '.
       01  SYSUT2-TOTAL.
           05  SYSUT2-ADD  pic 9(9)    value 0.
           05  filler      pic X(3)    value ' - '.
           05  filler      pic X(23)   value 'Line count for SYSUT2  '.

      *****************************************************************
      * The following copy file contains the translation tables for   *
      * the ASCII and EBCDIC conversion. Also, sections of the tables *
      * may be used for case conversion.                              *
      *****************************************************************
       COPY ASCEBCB1.
      *****************************************************************
       PROCEDURE DIVISION.
           move all '*' to MESSAGE-TEXT-1
           perform Z-DISPLAY-MESSAGE-TEXT
           move INFO-STATEMENT to MESSAGE-TEXT-1
           perform Z-DISPLAY-MESSAGE-TEXT
           move all '*' to MESSAGE-TEXT-1
           perform Z-DISPLAY-MESSAGE-TEXT
           perform Z-POST-COPYRIGHT
           perform SYSUT1-OPEN
           perform SYSUT2-OPEN

      *    USRSOJ Processing not specified...

           perform until SYSUT1-STATUS not = '00'
               perform SYSUT1-READ
               if  SYSUT1-STATUS = '00'
                   add 1 to SYSUT1-RDR
                   perform BUILD-OUTPUT-RECORD
                   if  WRITE-FLAG = 'Y'
                       perform SYSUT2-WRITE
                       if  SYSUT2-STATUS = '00'
                           add 1 to SYSUT2-ADD
                       end-if
                   end-if
               end-if
           end-perform

      *    USREOJ Processing not specified...

           move SYSUT1-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-MESSAGE-TEXT

           move SYSUT2-TOTAL to MESSAGE-TEXT
           perform Z-DISPLAY-MESSAGE-TEXT

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

           perform SYSUT2-CLOSE
           perform SYSUT1-CLOSE
           GOBACK.

      *****************************************************************
       BUILD-OUTPUT-RECORD.
      *    TransMODE is A2E...
      *    TransCALL process, Record Content Conversion...
           move SYSUT1-REC to SYSUT2-REC
           call 'A2EN80R1'                        using SYSUT2-REC
           add 00080 to ZERO giving SYSUT2-LRECL
           exit.

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

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

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

      *****************************************************************
       Z-CALCULATE-MESSAGE-LSB.
           add 267 to ZERO giving MSG-LSB
           perform until MSG-LSB < 80
                      or MESSAGE-BUFFER(MSG-LSB:1) not = SPACE
             if MESSAGE-BUFFER(MSG-LSB:1) = SPACE
                subtract 1 from MSG-LSB
             end-if
           end-perform
           exit.

      *****************************************************************
      * Display CONSOLE messages...                                   *
      *****************************************************************
       Z-DISPLAY-MESSAGE-TEXT.
           perform Z-CALCULATE-MESSAGE-LSB
           display MESSAGE-BUFFER(1:MSG-LSB)
           move all SPACES to MESSAGE-TEXT
           exit.

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

      *****************************************************************
       Z-POST-COPYRIGHT.
           display SIM-TITLE
           display SIM-COPYRIGHT
           exit.
      *****************************************************************
      *           This program was generated by SimoZAPS              *
      *             A product of SimoTime Technologies                *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *  Generation Date: 2019-04-03  Generation Time: 01:40:20:90    *
      *****************************************************************

Table of Contents Previous Section Next Section COBOL Copy Files

This section describes the COBOL Copy Files that are used in this suite of COBOL programs.

Table of Contents Previous Section Next Section Record Structure

The following (NBRN80B1.cpy) is the COBOL Copy Member that defines the structure of the records in the Sequential file. The following link will provide detailed information.

Link to Internet   Link to Server   Explore a Data Structure that contains binary, numeric and text strings and is based on the field definitions within a User-Defined COBOL copy file. The copy file is used to define the record structure for a file that contains 80 byte, fixed length records. This HTML document is generated using SIMOTIME Technologies.

Table of Contents Previous Section Next Section Convert Table for Text Strings

The following (AE0437B1.cpy) is the COBOL Copy Member that defines the conversion table that is used to convert EBC-encoded Text Strings to ASCII encoded Text Strings.

      *****************************************************************
      *               AE0437B1.cpy - a COBOL Copy File                *
      *         Copyright (C) 1987-2018 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       *
      *****************************************************************
      * The following tables are used by the INSPECT statement to do  *
      * the conversion between EBCDIC and ASCII.                      *
      *   inspect FIELD-NAME converting EBCDIC-INFO to ASCII-INFO     *
      *   inspect FIELD-NAME converting ASCII-INFO  to EBCDIC-INFO    *
      *                                                               *
      * The tables may also be used to convert between lower and      *
      * upper case.                                                   *
      *   inspect FIELD-NAME converting EBCDIC-LOWER to EBCDIC-UPPER  *
      *   inspect FIELD-NAME converting ASCII-LOWER  to ASCII-UPPER   *
      *                                                               *
      * The tables include the alphabet for upper and lower case, the *
      * digits 0-9, the special characters (US) and the alternate     *
      * codes for A, E, I, O, and U with the appropriate acute,       *
      * grave, umlaut, circumflex and tilde.                          *
      * To display the alternate codes the Courier New (Fixed) or     *
      * Times New Roman (Proportional) font should be used.           *
      *                                                               *
      * SimoZAPS contains four tables that may be used for various    *
      * Upper/Lower Case or EBCDIC/ASCII conversion requirements.     *
      * ASCEBCB1.CPY - includes a full character set for the alphabet *
      *                (upper/lower case), digit, special characters  *
      *                and alternate codes for characters with the    *
      *                acute, grave, umlaut, tilde and circumflex.    *
      *                Caution: this table does not convert the Y     *
      *                characters with an umlat.                      *
      * ASCEBCB2.CPY - includes the character set for the translation *
      *                between EBCDIC/ASCII of signed/unsigned,       *
      *                zoned-decimal, numeric fields.                 *
      * ASCEBCB3.CPY - includes the character set for the alternate   *
      *                codes with the acute, grave, umlaut, tilde and *
      *                circumflex. This is primarily used for case    *
      *                conversion.                                    *
      *                Note: this table converts the Y characters     *
      *                with an umlat, this may convert high-values    *
      *                X'FF' to X'DF'
      * ASCEBCB4.CPY - includes the character set for the alphabet    *
      *                (upper/lower case), digit, special characters. *
      *                This is primarily used in the US where the     *
      *                alternate codes may not be required.           *
      * ASCEBCB5.CPY - includes a full character set for the alphabet *
      *                (upper/lower case), digit, special characters  *
      *                and alternate codes for characters with the    *
      *                acute, grave, umlaut, tilde and circumflex.    *
      *                Caution: this table will convert the Y         *
      *                characters with an umlat.                      *
      *****************************************************************
      *
      *    ------------------------------------------------------------
       01  EBCDIC-DATA.
           05  FILLER pic X(16)
                          value X'000102030405060708090A0B0C0D0E0F'.    000-015
           05  FILLER pic X(16)
                          value X'101112131415161718191A1B1C1D1E1F'.    016-031
           05  FILLER pic X(16)
                          value X'202122232425262728292A2B2C2D2E2F'.    032-047
           05  FILLER pic X(16)
                          value X'303132333435363738393A3B3C3D3E3F'.    048-063
           05  FILLER pic X(16)
                          value X'404142434445464748494A4B4C4D4E4F'.    064-079
           05  FILLER pic X(16)
                          value X'505152535455565758595A5B5C5D5E5F'.    080=095
           05  FILLER pic X(16)
                          value X'606162636465666768696A6B6C6D6E6F'.    096-111
           05  FILLER pic X(16)
                          value X'707172737475767778797A7B7C7D7E7F'.    112-127
           05  FILLER pic X(16)
                          value X'808182838485868788898A8B8C8D8E8F'.    128-143
           05  FILLER pic X(16)
                          value X'909192939495969798999A9B9C9D9E9F'.    144-159
           05  FILLER pic X(16)
                          value X'A0A1A2A3A4A5A6A7A8A9AAABACADAEAF'.    160-175
           05  FILLER pic X(16)
                          value X'B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF'.    176-191
           05  FILLER pic X(16)
                          value X'C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF'.    192-207
           05  FILLER pic X(16)
                          value X'D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF'.    208-223
           05  FILLER pic X(16)
                          value X'E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF'.    224-239
           05  FILLER pic X(16)
                          value X'F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF'.    240-255

       01  E-INFO           redefines EBCDIC-DATA pic X(256).
       01  EBCDIC-TABLE     redefines EBCDIC-DATA.
           05  EBCDIC-BYTE  pic X     occurs 256 times.
      *
      *    ------------------------------------------------------------
       01  ASCII-DATA.
           05  FILLER pic X(16)
                          value X'000102039C09867F978D8E0B0C0D0E0F'.    000-015
           05  FILLER pic X(16)
                          value X'101112139D8508871819928F1C1D1E1F'.    016-031
           05  FILLER pic X(16)
                          value X'80818283840A171B88898A8B8C050607'.    032-047
           05  FILLER pic X(16)
                          value X'909116939495960498999A9B14159E1A'.    048-063
           05  FILLER pic X(16)
                          value X'20A0E2E4E0E1E3E5E7F1A22E3C282B7C'.    064-079
           05  FILLER pic X(16)
                          value X'26E9EAEBE8EDEEEFECDF21242A293BAC'.    080=095
           05  FILLER pic X(16)
                          value X'2D2FC2C4C0C1C3C5C7D1A62C255F3E3F'.    096-111
           05  FILLER pic X(16)
                          value X'F8C9CACBC8CDCECFCC603A2340273D22'.    112-127
           05  FILLER pic X(16)
                          value X'D8616263646566676869ABBBF0FDFEB1'.    128-143
           05  FILLER pic X(16)
                          value X'B06A6B6C6D6E6F707172AABAE6B8C6A4'.    144-159
           05  FILLER pic X(16)
                          value X'B57E737475767778797AA1BFD0DDDEAE'.    160-175
           05  FILLER pic X(16)
                          value X'5EA3A5B7A9A7B6BCBDBE5B5DAFA8B4D7'.    176-191
           05  FILLER pic X(16)
                          value X'7B414243444546474849ADF4F6F2F3F5'.    192-207
           05  FILLER pic X(16)
                          value X'7D4A4B4C4D4E4F505152B9FBFCF9FAFF'.    208-223
           05  FILLER pic X(16)
                          value X'5CF7535455565758595AB2D4D6D2D3D5'.    224-239
           05  FILLER pic X(16)
                          value X'30313233343536373839B3DBDCD9DA9F'.    240-255
       01  A-INFO           redefines ASCII-DATA pic X(256).
       01  ASCII-TABLE      redefines ASCII-DATA.
           05  ASCII-BYTE   pic X     occurs 256 times.
      *
      ***  AE0437B1 - End-of-Copy File - - - - - - - - - - - AE0437B1 *
      *****************************************************************
      *

Table of Contents Previous Section Next Section Convert Table for Zone Decimal

The following (ASCEBCB2.cpy) is the COBOL Copy Member that defines the conversion table that is used to convert EBC-encoded Zoned Decimal Values to ASCII encoded Zoned Decimal Values.

      *****************************************************************
      *               ASCEBCB2.CPY - a COBOL Copy File                *
      *         Copyright (C) 1987-2018 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       *
      *****************************************************************
      * The following tables are used by the INSPECT statement to do  *
      * the conversion between EBCDIC and ASCII for numeric, zoned    *
      * decimal fields.                                               *
      *   inspect FIELD-NAME converting E-NUMB to A-NUMB              *
      *   inspect FIELD-NAME converting A-NUMB to E-NUMB              *
      * This table includes a decimal point conversion and the space  *
      * character conversion. A space character is an invalid numeric *
      * entry and this situation does occur. A plus (+) or minus (-)  *
      * character will also be converted.                             *
      *                                                               *
      * SimoZAPS contains four tables that may be used for various    *
      * Upper/Lower Case or EBCDIC/ASCII conversion requirements.     *
      * ASCEBCB1.CPY - includes a full character set for the alphabet *
      *                (upper/lower case), digit, special characters  *
      *                and alternate codes for characters with the    *
      *                acute, grave, umlaut, tilde and circumflex.    *
      *                Caution: this table does not convert the Y     *
      *                characters with an umlat.                      *
      * ASCEBCB2.CPY - includes the character set for the translation *
      *                between EBCDIC/ASCII of signed/unsigned,       *
      *                zoned-decimal, numeric fields.                 *
      * ASCEBCB3.CPY - includes the character set for the alternate   *
      *                codes with the acute, grave, umlaut, tilde and *
      *                circumflex. This is primarily used for case    *
      *                conversion.                                    *
      *                Note: this table converts the Y characters     *
      *                with an umlat, this may convert high-values    *
      *                X'FF' to X'DF'
      * ASCEBCB4.CPY - includes the character set for the alphabet    *
      *                (upper/lower case), digit, special characters. *
      *                This is primarily used in the US where the     *
      *                alternate codes may not be required.           *
      * ASCEBCB5.CPY - includes a full character set for the alphabet *
      *                (upper/lower case), digit, special characters  *
      *                and alternate codes for characters with the    *
      *                acute, grave, umlaut, tilde and circumflex.    *
      *                Caution: this table will convert the Y         *
      *                characters with an umlat.                      *
      *****************************************************************
      *
       01  E-NUMB-DATA.
           05  filler  pic X(10) value X'F0F1F2F3F4F5F6F7F8F9'.
           05  filler  pic X(10) value X'C0C1C2C3C4C5C6C7C8C9'.
           05  filler  pic X(10) value X'D0D1D2D3D4D5D6D7D8D9'.
           05  filler  pic X(04) value X'4B404E60'.
      *                                   .   + -
       01  E-NUMB      redefines E-NUMB-DATA  pic X(34).
      *
       01  A-NUMB-DATA.
           05  filler  pic X(10) value X'30313233343536373839'.
           05  filler  pic X(10) value X'30313233343536373839'.
           05  filler  pic X(10) value X'70717273747576777879'.
           05  filler  pic X(04) value X'2E202B2D'.
      *                                   .   + -
       01  A-NUMB      redefines A-NUMB-DATA  pic X(34).
      *
      ***  ASCEBCB2 - End-of-Copy File - - - - - - - - - - - ASCEBCB2 *
      *****************************************************************
      *

Table of Contents Previous Section Next Section Summary

This job will execute a program that will read an existing line sequential file with CSV (Comma Separated Values) format, convert or translate the record content from CSV to FFL (Fixed Field Length) foramt and write to the new record sequential file while translating and maintaining binary and numeric integrity. The first COBOL program does the file Input and Output and calls a second COBOL program to do the record content conversion. Each record in the Output file is a data structure that contains a mixture of binary, numeric and text strings. This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers.

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

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

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

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

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

Table of Contents Previous Section Next Section Downloads and Links

This section includes links to documents with additional information that are beyond the scope and purpose of this document. The items listed in the next two sub-sections may be available from a local system or via an internet connection. The items listed in the third sub-section will require an internet connection.

Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the Link to Internet icon. If a user has a SimoTime Enterprise License the Documents and Program Suites may be available on a local server and accessed using the Link to Server icon.

Table of Contents Previous Section Next Section Supplemental Information

The following group of links will describe the structure for a Record Sequential (RSEQ) file and demonstrate the processing techniques used to perform various data management tasks. The file contains fixed length, 80 byte records. Each record contains text strings that may be ASCII or EBCDIC encoded and numeric values that may use a Binary, Packed Decimal or Zoned Decimal format.

Link to Internet   Link to Server   Explore a Data Structure that contains binary, numeric and text strings and is based on the field definitions within a User-Defined COBOL copy file. The copy file is used to define the record structure for a file that contains 80 byte, fixed length records. This HTML document is generated using SIMOTIME Technologies.

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

Link to Internet   Link to Server   Explore How to do EBC to ASC Data Conversion of an 80 byte Data Structure. The data structure contains ASCII or EBCDIC Text Strings and Numeric Values that use a Binary, Packed Decimal or Zoned Decimal format. The binary strings will be bypassed, the numeric strings will be processed based on their numeric type and the text strings will be converted from EBC to ASC based on a user selected conversion table. This document will describe and demonstrate the conditional processing of individual string types within a data structure based on a COBOL copy file that defines the data structure.

Link to Internet   Link to Server   Explore How to do ASC to EBC Data Conversion of an 80 byte Data Structure. The data structure contains ASCII or EBCDIC Text Strings and Numeric Values that use a Binary, Packed Decimal or Zoned Decimal format. The binary strings will be bypassed, the numeric strings will be processed based on their numeric type and the text strings will be converted from ASC to EBC based on a user selected conversion table. This document will describe and demonstrate the conditional processing of individual string types within a data structure based on a COBOL copy file that defines the data structure.

Link to Internet   Link to Server   Explore How to Accumulate Summary Totals and Calculate a Record Count of an 80 byte Data Structure. The data structure contains ASCII or EBCDIC Text Strings and Numeric Values that use a Binary, Packed Decimal or Zoned Decimal format. The numeric strings within the data structure will be identified based on the field definitions within a COBOL copy file.

Link to Internet   Link to Server   Explore How to create Hexadecimal Dump Information of the 80 byte records within a sequential file. The record structure may contain ASCII or EBCDIC Text Strings and Numeric Values that use a Binary, Packed Decimal or Zoned Decimal format. The intent is to provide for human observation of both text and binary data within a data structure. The hexadecimal dump information may be written to an ASCII/Text file and viewed using a text editor of choice.

Table of Contents Previous Section Next Section Additional Reference Material

The following links provide additional reference material.

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

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

Link to Internet   Link to Server   Explore An Enterprise System Model that describes and demonstrates how Applications that were running on a Mainframe System and non-relational data that was located on the Mainframe System were copied and deployed in a Microsoft Windows environment with Micro Focus Enterprise Server.

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

Link to Internet   Link to Server   Explore The File Status Return Codes that are used to interpret the results of accessing VSAM data sets and/or QSAM files.

Table of Contents Previous Section Next Section Internet Resources

The following links will require an internet connection.

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 GnuCOBOL Technologies available from SourceForge. SourceForge is an Open Source community resource dedicated to helping open source projects be as successful as possible. GnuCOBOL (formerly OpenCOBOL) is a COBOL compiler with run time support. The compiler (cobc) translates COBOL source to executable using intermediate C, designated C compiler and linker. This link will require an Internet Connection.

Table of Contents Previous Section Next Section Glossary of Terms

Link to Internet   Link to Server   Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.

Table of Contents Previous Section Next Section Contact or Feedback

This document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.

1. Send an e-mail to our helpdesk.
1.1. helpdesk@simotime.com.
2. Our telephone numbers are as follows.
2.1. 1 415 763-9430 office-helpdesk
2.2. 1 415 827-7045 mobile

 

We appreciate hearing from you.

Table of Contents Previous Section Next Section Company Overview

SimoTime Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.

Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.

Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SimoTime has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.

Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
Create Test Files, Text and Numeric Formats
Copyright © 1987-2025
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com