Convert Format & Content
Numeric Fields & Text Strings
  Table of Contents  v-24.01.01 - byte8001.htm 
  Introduction
  The CMD Files
  Create CSV, Convert to Sequential
  Convert ASCII to EBCDIC
  Convert Record Sequential to CSV
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Contact or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

When data is transferred or shared across a number of different systems it is often necessary to change the file format and/or the record content structure. The purpose of this suite of programs is to show an approach for preparing or converting data to be transferred or shared.

The follow is an overview of some of the conversion requirements and techniques.

1 Create an ASCII/Text File with CSV formatted records
2 Convert an ASCII/Text file with CSV formatted Records to a Records Sequential file with Fixed Field Lengths
3 Convert a file of ASCII encoded content to a file of EBCDIC encoded content
4 Convert a Record Sequential file with ASCII encoded Fixed Fields to an ASCII/Text file with CSV formatted Records
  List of Various Conversion Processes

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

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

Table of Contents Previous Section Next Section The CMD Files

This section provides detailed information about the Windows Command Files included in this suite of sample programs.

Table of Contents Previous Section Next Section Create CSV, Convert to Sequential

This job (BYTE80E1.cmd) is a Windows Command file that will read an ASCII/Text file that contains CSV formatted records. The program will convert the ASCII/Text file to a record sequential file that contains fixed-length text fields and numeric fields in Zoned, Binary and Packed formats.

@echo OFF
rem  * *******************************************************************
rem  *               BYTE80E1.CMD - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read an LCSV ASCII, write an RSEQ, ASCII.
rem  * Text   - Read a file of JUSTIFY info, do justify, write output.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read an ASCII/Text file that contains CSV formatted
rem  * records.
rem  * The program will convert the ASCII/Text file to a record
rem  * sequential file that contains fixed-length text fields and
rem  * numeric fields in Zoned, Binary and Packed formats.
rem  *
rem  *                     ************
rem  *                     * BYTE80E1 *
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    * LCSV0080 ******* BYTE80C1 ******* RASC0080 *
rem  *    *******lcsv*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        **** BYTE80R1 *
rem  *                          *           ********cbl*
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Prepare the environment, create a new file...
rem  *
     set CmdName=BYTE80E1
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
     call SimoNOTE "StepInfo Delete previously created file"
     set LCSV0080=%BaseLib1%\DATA\TXT1\BYTE80LS.CSV
     set RASC0080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.BYTE80RA.DAT
     if exist %RASC0080% del %RASC0080%
     call SimoNOTE "StepInfo Create an ASCII/Text File"
     echo 001-TEXT-16,abc,1,2,3,4,5,6,>%LCSV0080%
     echo 002-TEXT-16,CBA,6,5,4,3,2,1,>>%LCSV0080%
     echo 003-TEXT-16,XYZ,2,4,6,8,10,12,>>%LCSV0080%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 2, Convert file, LSEQ/CSV to RSEQ/Fixed-Field-Length
rem  *
     call SimoNOTE "StepInfo Execute the Conversion Program"
     run BYTE80C1
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %LCSV0080%"
     call SimoNOTE "DataMake %RASC0080%"
rem  *
     if exist %RASC0080% goto :EojAok
     set JobStatus=0020
     goto :EojNok
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Convert ASCII to EBCDIC

This job (BYTE80E2.cmd) is a Windows Command file that will read a file if 80-byte records that contains text and numeric fields in Zoned, Binary and Packed formats. The program will convert the text fields from ASCII to EBCDIC and maintain mainframe numeric integrity for the numeric fields.

@echo OFF
rem  * *******************************************************************
rem  *               BYTE80E2.CMD - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read an RSEQ, ASCII, write an RSEQ EBCDIC.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job will read a file if 80-byte records that contains text
rem  * and numeric fields in Zoned, Binary and Packed formats.
rem  * The program will convert the text fields from ASCII to EBCDIC
rem  * and maintain mainframe numeric integrity for the numeric fields.
rem  *
rem  *                     ************
rem  *                     * BYTE80E2 *
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    * RASC0080 ******* BYTE80C2 ******* REBC0080 *
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        **** BYTE80R2 *
rem  *                          *           ********cbl*
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Prepare the environment...
rem  *
     set CmdName=BYTE80E2
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
     call SimoNOTE "StepInfo Delete previously created file"
     set RASC0080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.BYTE80RA.DAT
     set REBC0080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.BYTE80RE.DAT
     if exist %REBC0080% del %REBC0080%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 2, Convert file, RSEQ/ASCII to RSEQ/EBCDIC
rem  *
     call SimoNOTE "StepInfo Execute the Conversion Program"
     run BYTE80C2
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %RASC0080%"
     call SimoNOTE "DataMake %REBC0080%"
rem  *
     if exist %RASC0080% goto :EojAok
     set JobStatus=0020
     goto :EojNok
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Convert Record Sequential to CSV

This job (BYTE80E3.cmd) is a Windows Command file that will read a file of 80-byte fixed length records and fixed field lengths that contain alpha-numeric text and numeric data in Zoned, Binary and Packed formats.

This set of programs will convert the file format from record sequential to line sequential or ASCII/Text. The record content will be converted from fixed field length to variable field length concatenated fields separated by a delimiter byte that is a comma by default. The text fields will be space truncated and the numeric fields will be converted to digits with a separate trailing sign byte.

@echo OFF
rem  * *******************************************************************
rem  *               BYTE80E3.CMD - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read an RSEQ, ASCII, write an LCSV ASCII.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * This job will read a file of 80-byte fixed length records and
rem  * fixed field lengths that contain alpha-numeric text and numeric
rem  * data in Zoned, Binary and Packed formats.
rem  *
rem  * This set of programs will convert the file format from record
rem  * sequential to line sequential or ASCII/Text.
rem  *
rem  * The record content will be converted from fixed field length to
rem  * variable field length concatented fields separated by a delimiter
rem  * byte that is a comma by default.
rem  *
rem  * The text fields will be space truncated and the numeric fields will
rem  * be converted to digits and a separate trailing sign.
rem  *
rem  *                     ************
rem  *                     * BYTE80E3 *
rem  *                     ********cmd*
rem  *                          *
rem  *    ************     ************     ************
rem  *    * RASC0080 ******* BYTE80C3 ******* LCSV0080 *
rem  *    *******rseq*     ********cbl*  *  *******lcsv*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        **** BYTE80R3 *
rem  *                          *           ********cbl*
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Prepare the environment...
rem  *
     set CmdName=BYTE80E3
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
     call SimoNOTE "StepInfo Delete previously created file"
     set RASC0080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.BYTE80RA.DAT
     set LCSV0080=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.BYTE80LC.CSV
     if exist %LCSV0080% del %LCSV0080%
rem  *
rem  * *******************************************************************
rem  * Step   2   Edit input, create a new output file...
rem  * Step 2 of 2, Convert file, RSEQ/Fixed-Field-Length to LSEQ/CSV
rem  *
     call SimoNOTE "StepInfo Execute the Conversion Program"
     run BYTE80C3
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %RASC0080%"
     call SimoNOTE "DataMake %LCSV0080%"
rem  *
     if exist %LCSV0080% goto :EojAok
     set JobStatus=0020
     goto :EojNok
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Summary

The purpose of this suite of programs is to show an approach for preparing or converting data to be transferred or shared. 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 first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.

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

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

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

Link to Internet   Link to Server   Explore the non-Relational Data Connection for more examples of accessing methodologies and coding techniques for Data Files and VSAM Data Sets.

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

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

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

Table of Contents Previous Section Next Section Internet Access Required

The following links will require an internet connect.

This suite of programs and documentation is available for download. Link to an Evaluation zPAK Option that includes the program members, documentation and control files.

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection

Explore The Micro Focus Web Site for more information about products (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection.

Table of Contents Previous Section Next Section Glossary of Terms

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

Table of Contents Previous Section Next Section Contact or Feedback

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

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

 

We appreciate hearing from you.

Table of Contents Previous Section Next Section Company Overview

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

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

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

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


Return-to-Top
Convert between Fixed Field and CSV Formats using Numeric Fields and Text Strings
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com