Generate I/O Program
Non-Relational Data Access for COBOL
  Table of Contents  v-20.00.00 - utgriopg.htm 
  Introduction
  Program Requirements
  Program Overview
  Execute the IVP's
  IVP-01, 80/80 Copy
  IVP-02, Sequential to Indexed
  IVP-03, Variable-Length Records
  IVP-04, KSDS & Alternate Indices
  IVP-05, Change File & Record Structure
  Prepare
  IVP-01, 80/80 Copy
  IVP-02, Sequential to Indexed
  IVP-03, Variable-Length Records
  Technical Details
  Generate a COBOL I/O Program
  PCF Member, the Record Structure
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

The UTGENRIO utility program runs on a Windows System with Micro Focus Enterprise Developer and generates programs (COBOL Source Code) that may be used to access non-relational data files and VSAM data sets. The generated programs may be compiled and executed on a distributed Linux, UNIX or Windows (LUW) platform with Micro Focus or an IBM Mainframe System.

Note:  This utility program is available under our Controlled Release Program. It requires the installation of a SIMOTIME Enterprise License.


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-2023
SimoTime Technologies and Services
All Rights Reserved

Table of Contents Previous Section Next Section Program Requirements

This UTGENRIO utility program runs in a Windows System with Micro Focus Enterprise Developer. The suite of generated programs will run on the following platforms.

System Description
Mainframe COBOL for OS/390 or later should be used (this provided for Y2K compliance) to compile the generated source code.
Note: the SimoTime Utility program has the capability of generating COBOL Source code that can access ASCII/Text (or LINE SEQUENTIAL) files. Programs that are generated with Line Sequential dependencies will not compile and execute in the ZOS environment of an IBM Mainframe.
Windows To compile and execute the generated COBOL programs the Micro Focus Developer is recommended. However, Net Express and Mainframe Express may be used. Once a program is compiled with Micro Focus Developer it may be executed using Micro Focus Server.
Note: the SimoTime Utility program and the generated test cases are tested on Windows/7, Windows/10 and Windows Server using Micro Focus Enterprise Developer.
Linux To compile and execute the generated COBOL programs the Micro Focus Server Express is recommended. Once a program is compiled with Micro Focus Server Express it may be executed using Micro Focus Server.
UNIX To compile and execute the generated COBOL programs the Micro Focus Server Express is recommended. Once a program is compiled with Micro Focus Server Express it may be executed using Micro Focus Server.
  System Possibilities for Generated Data File Access Programs

Table of Contents Previous Section Next Section Program Overview

The following is a flowchart of the job that executes the process to generate COBOL programs that access data files and VSAM data sets.

                 
GENRIOW1
cmd
Generate COBOL I/O Program
   
PREPRE
Environment
Prepare the Environment
   
   
 
 
 
 
   
   
   
SYSUT1
lseq
 
 
UTGENRIO
gnt
   
   
SYSUT2
lseq
Read Control File, write COBOL Source Member
   
   
   
   
   
   
   
SYSOUT
txt
   
   
   
if EOJ
 
 
 
 
Yes
 
 
 
 
 
 
   
   
   
No
   
   
Call
 
 
   
   
   
   
UTGENRR1
gnt
 
 
SYSOUT
txt
   
Generate blocks of COBOL Code
   
   
   
   
   
 
 
 
 
 
 
 
 
Return
   
   
   
 
 
 
 
 
 
 
 
   
   
EOJ
End-of-Job
 
UTGENRIO, Generate a COBOL File I/O Program

Table of Contents Previous Section Next Section Execute the IVP's

The Installation Verification Programs (IVP's) are intended to be used to varify the proper installation and configuration of the SIMOTIME Technologies that are required to generate COBOL source code that accesses non-relational data files and VSAM Data Sets.

Table of Contents Previous Section Next Section IVP-01, 80/80 Copy

The following CMD file (IVP4IOW1.cmd) defines a job that will execute the generated program that does a simple copy of a sequential file with 80-byte, fixed-length records.

@echo OFF
rem  * *******************************************************************
rem  *               IVP4IOW1.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2016 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Do a Sequential File Copy using a generated program.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job is one of the Installation Verification Procedures for
rem  * the UTGENRIO Utility program. The program that is executed by
rem  * this job was generated using the UTGENRIO program.
rem  *
rem  * The generated program (IVP4IOC1.cbl) will do a copy of a
rem  * Record Sequential (RSEQ) File containing 80-byte records.
rem  *
rem  * This generated program may be compiled and executed on a Mainframe
rem  * System under MVS or on a Linux, UNIX or Windows (LUW) System with
rem  * Micro Focus Enterprise Server.
rem  *
rem  *                     ************
rem  *                     * IVP4IOW1 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************     ************
rem  *    *  SYSUT1  ******* IVP4IOC1 *******  SYSUT2  *
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        ****  SYSOUT  *
rem  *                          *           ********txt*
rem  *                          *
rem  *                     ************
rem  *                     *    EOJ   *
rem  *                     ************
rem  *
rem  * RSEQ ..... Record Sequential File
rem  * TXT ...... ASCII/Text of Line Sequential File (LSEQ)
rem  *
rem  * The documentation and software were developed and tested on systems
rem  * that are configured for a SimoTime environment based on the
rem  * hardware, operating systems, user requirements and security
rem  * requirements. Therefore, adjustments may be needed to execute the
rem  * jobs and programs when transferred to a system of a different
rem  * architecture or configuration.
rem  *
rem  * *******************************************************************
rem  *
rem  * Step 1,   Prepare the environment.
rem  *
     set CmdName=IVP4IOW1
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "* IVP4IOW1 Starting - CmdName %CmdName%"
     call SimoNOTE "* IVP4IOW1 Progress - Preparing the environment"
     set SYSUT1=%BaseLib1%\DATA\ASC1\SIMOTIME.DATA.CU0080D1.DAT
     set SYSUT2=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080D1.DAT
     if exist %SYSUT2% del %SYSUT2%
rem  *
rem  * *******************************************************************
rem  * Step 2, Copy the File.
rem  *
     call SimoNOTE "* IVP4IOW1 Progress - Execute the IVP4IOC1 Program"
     run IVP4IOC1
     if not "%ERRORLEVEL%"== "0" set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %SYSUT1%"
     call SimoNOTE "DataMake %SYSUT2%"
rem  *
     if exist %SYSUT2% goto :EojAok
     set JobStatus=0020
     goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job processing..
rem  *
:EojAok
     call SimoNOTE "* %CmdName% Finished - JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "* %CmdName% ABENDING - JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section IVP-02, Sequential to Indexed

The following CMD file (IVP4IOW2.cmd) defines a job that will execute the generated program that reads a sequential file with 80-byte, fixed-length records and creates an Indexed file. The indexed file contains 80-byte records with a six (6) byte key that starts in posititon 1 of the record.

@echo OFF
rem  * *******************************************************************
rem  *               IVP4IOW2.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2016 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read a Sequential File, Create a KSDS.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job is one of the Installation Verification Procedures for
rem  * the UTGENRIO Utility program. The program that is executed by
rem  * this job was generated using the UTGENRIO program.
rem  *
rem  * The generated program (IVP4IOC2.cbl) will read a Record Sequential
rem  * (RSEQ) File containing 80-byte records and create (or Load) a VSAM,
rem  * KSDS. The sequential file must be in sequence by the primary key
rem  * field.
rem  *
rem  * This generated program may be compiled and executed on a Mainframe
rem  * System under MVS or on a Linux, UNIX or Windows (LUW) System with
rem  * Micro Focus Enterprise Server.
rem  *
rem  *                     ************
rem  *                     * IVP4IOW2 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************     ************
rem  *    * CU0080D1 ******* IVP4IOC2 ******* CU0080K1 *
rem  *    *******rseq*     ********cbl*  *  *******ksds*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        ****  SYSOUT  *
rem  *                          *           ********txt*
rem  *                          *
rem  *                     ************
rem  *                     *    EOJ   *
rem  *                     ************
rem  *
rem  * KSDS ..... Key Sequenced Data Set
rem  * RSEQ ..... Record Sequential File
rem  * TXT ...... ASCII/Text of Line Sequential File (LSEQ)
rem  *
rem  * *******************************************************************
rem  *
rem  * Step 1,   Prepare the environment.
rem  *
     set CmdName=IVP4IOW2
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "* %CmdName% Starting - CmdName %CmdName%"
     call SimoNOTE "* %CmdName% Progress - Preparing the environment"
     set CU0080D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080D1.DAT
     set CU0080K1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080K1.DAT
     if exist %CU0080K1% del %CU0080K1%
rem  *
rem  * *******************************************************************
rem  * Step 2, Copy RSEQ file to a VSAM, KSDS.
rem  *
     call SimoNOTE "* %CmdName% Progress - Execute the IVP4IOC2 Program"
     run IVP4IOC2
     if not "%ERRORLEVEL%"== "0" set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %CU0080D1%"
     call SimoNOTE "DataMake %CU0080K1%"
rem  *
     if exist %CU0080K1% goto :EojAok
     set JobStatus=0020
     goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job processing..
rem  *
:EojAok
     call SimoNOTE "* %CmdName% Finished - JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "* %CmdName% ABENDING - JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section IVP-03, Variable-Length Records

The following CMD file (IVP4IOW3.cmd) defines a job that will execute the generated program that reads a sequential file with 80-byte, fixed-length records and creates a sequential file with variable-length records.

@echo OFF
rem  * *******************************************************************
rem  *               IVP4IOW3.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2016 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read a Sequential File, Create Variable Length File.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job is one of the Installation Verification Procedures for
rem  * the UTGENRIO Utility program. The program that is executed by
rem  * this job was generated using the UTGENRIO program.
rem  *
rem  * The generated program (IVP4IOC3.cbl) will read a Record Sequential
rem  * (RSEQ) File containing 80-byte records and create a file with
rem  * variable length records.
rem  *
rem  * This generated program may be compiled and executed on a Mainframe
rem  * System under MVS or on a Linux, UNIX or Windows (LUW) System with
rem  * Micro Focus Enterprise Server.
rem  *
rem  *                     ************
rem  *                     * IVP4IOW3 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************     ************
rem  *    * CU0080D1 ******* IVP4IOC3 ******* CU0080V3 *
rem  *    *******rseq*     ********cbl*  *  *******rseq*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        ****  SYSOUT  *
rem  *                          *           ********txt*
rem  *                          *
rem  *                     ************
rem  *                     *    EOJ   *
rem  *                     ************
rem  *
rem  * RSEQ ..... Record Sequential File
rem  * TXT ...... ASCII/Text of Line Sequential File (LSEQ)
rem  *
rem  * *******************************************************************
rem  *
rem  * Step 1,   Prepare the environment.
rem  *
     set CmdName=IVP4IOW3
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "* %CmdName% Starting - CmdName %CmdName%"
     call SimoNOTE "* %CmdName% Progress - Preparing the environment"
     set CU0080D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080D1.DAT
     set CU0080V3=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080V3.DAT
     if exist %CU0080V3% del %CU0080V3%
rem  *
rem  * *******************************************************************
rem  * Step 2, Copy RSEQ to a file with variable length records.
rem  *
     call SimoNOTE "* %CmdName% Progress - Execute the IVP4IOC3 Program"
     run IVP4IOC3
     if not "%ERRORLEVEL%"== "0" set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %CU0080D1%"
     call SimoNOTE "DataMake %CU0080V3%"
rem  *
     if exist %CU0080V3% goto :EojAok
     set JobStatus=0020
     goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job processing..
rem  *
:EojAok
     call SimoNOTE "* %CmdName% Finished - JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "* %CmdName% ABENDING - JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section IVP-04, KSDS & Alternate Indices

The following CMD file (IVP4IOW4.cmd) defines a job that will execute the generated program that reads a sequential file with 80-byte, fixed-length records and creates a VSAM, KSDS with Alternate Indices.

@echo OFF
rem  * *******************************************************************
rem  *               IVP4IOW4.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2016 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read a Sequential File, Create a KSDS with AIX's.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job is one of the Installation Verification Procedures for
rem  * the UTGENRIO Utility program. The program that is executed by
rem  * this job was generated using the UTGENRIO program.
rem  *
rem  * The generated program (IVP4IOC2.cbl) will read a Record Sequential
rem  * (RSEQ) File containing 80-byte records and create (or Load) a VSAM,
rem  * KSDS with Altarnate Indices. The sequential file must be in
rem  * sequence by the primary key field.
rem  *
rem  * This generated program may be compiled and executed on a Mainframe
rem  * System under MVS or on a Linux, UNIX or Windows (LUW) System with
rem  * Micro Focus Enterprise Server.
rem  *
rem  *                     ************
rem  *                     * IVP4IOW4 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************     ************
rem  *    * CU0080D1 ******* IVP4IOC2 ******* CU0080K4 *
rem  *    *******rseq*     ********cbl*  *  *******ksds*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        ****  SYSOUT  *
rem  *                          *           ********txt*
rem  *                          *
rem  *                     ************
rem  *                     *    EOJ   *
rem  *                     ************
rem  *
rem  * KSDS ..... Key Sequenced Data Set
rem  * RSEQ ..... Record Sequential File
rem  * TXT ...... ASCII/Text of Line Sequential File (LSEQ)
rem  *
rem  * *******************************************************************
rem  *
rem  * Step 1,   Prepare the environment.
rem  *
     set CmdName=IVP4IOW4
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "* %CmdName% Starting - CmdName %CmdName%"
     call SimoNOTE "* %CmdName% Progress - Preparing the environment"
     set CU0080D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080D1.DAT
     set CU0080K4=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080K4.DAT
     if exist %CU0080K4% del %CU0080K4%
rem  *
rem  * *******************************************************************
rem  * Step 2, Copy RSEQ file to a VSAM, KSDS with Alternate Indices
rem  *
     call SimoNOTE "* %CmdName% Progress - Execute the IVP4IOC4 Program"
     run IVP4IOC4
     if not "%ERRORLEVEL%"== "0" set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %CU0080D1%"
     call SimoNOTE "DataMake %CU0080K4%"
rem  *
     if exist %CU0080K4% goto :EojAok
     set JobStatus=0020
     goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job processing..
rem  *
:EojAok
     call SimoNOTE "* %CmdName% Finished - JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "* %CmdName% ABENDING - JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section IVP-05, Change File & Record Structure

The following CMD file (IVP4IOW5.cmd) defines a job that will execute the generated program that reads a sequential file with 80-byte, fixed-length records and creates a VSAM, KSDS with 512-byte records.

@echo OFF
rem  * *******************************************************************
rem  *               IVP4IOW5.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2016 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Read a Sequential File, Create a KSDS with LRECL=512.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * The job is one of the Installation Verification Procedures for
rem  * the UTGENRIO Utility program. The program that is executed by
rem  * this job was generated using the UTGENRIO program.
rem  *
rem  * The generated program (IVP4IOC5.cbl) will read a Record Sequential
rem  * (RSEQ) File containing 80-byte records and create (or Load) a VSAM,
rem  * KSDS with 512-byte records. The sequential file must be in
rem  * sequence by the primary key field.
rem  *
rem  * This generated program may be compiled and executed on a Mainframe
rem  * System under MVS or on a Linux, UNIX or Windows (LUW) System with
rem  * Micro Focus Enterprise Server.
rem  *
rem  *                     ************
rem  *                     * IVP4IOW5 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************     ************
rem  *    * CU0080D1 ******* IVP4IOC2 ******* CU512KSD *
rem  *    *******rseq*     ********cbl*  *  *******ksds*
rem  *                          *        *
rem  *                          *        *  ************
rem  *                          *        ****  SYSOUT  *
rem  *                          *           ********txt*
rem  *                          *
rem  *                     ************
rem  *                     *    EOJ   *
rem  *                     ************
rem  *
rem  * KSDS ..... Key Sequenced Data Set
rem  * RSEQ ..... Record Sequential File
rem  * TXT ...... ASCII/Text of Line Sequential File (LSEQ)
rem  *
rem  * *******************************************************************
rem  *
rem  * Step 1,   Prepare the environment.
rem  *
     set CmdName=IVP4IOW5
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "* %CmdName% Starting - CmdName %CmdName%"
     call SimoNOTE "* %CmdName% Progress - Preparing the environment"
     set CU0080D1=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU0080D1.DAT
     set CU512KSD=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.CU512KSD.DAT
     if exist %CU512KSD% del %CU512KSD%
rem  *
rem  * *******************************************************************
rem  * Step 2, Copy RSEQ file to a VSAM, KSDS with LRECL=512
rem  *
     call SimoNOTE "* %CmdName% Progress - Execute the IVP4IOC5 Program"
     run IVP4IOC5
     if not "%ERRORLEVEL%"== "0" set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %CU0080D1%"
     call SimoNOTE "DataMake %CU512KSD%"
rem  *
     if exist %CU512KSD% goto :EojAok
     set JobStatus=0020
     goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job processing..
rem  *
:EojAok
     call SimoNOTE "* %CmdName% Finished - JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "* %CmdName% ABENDING - JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Prepare

Unless otherwise specified the generated code for the following PCF Members may be compiled and executed on a Linux, UNIX or Windows System with Micro Focus Enterprise Developer or an IBM Mainframe System with ZOS.

Table of Contents Previous Section Next Section IVP-01, 80/80 Copy

The following PCF Member (IVP4IO03.pcf) contains the specifications that will be used to generate a COBOL source member. Once compiled the generated program will read a sequential file with 80-byte, fixed-length records and create a copy of the record sequential file.

*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/SET       BFLAGS NNNNNNNN/NNNNNNNN
/SET       FILE SYSUT1 org=Sequential recfm=FIXED rlen=80 ACCESS=SEQUENTIAL
/SET       FILE SYSUT2 org=Sequential recfm=FIXED rlen=80 ACCESS=SEQUENTIAL
/SET       PROGID IVP4IOC1
/SET       AUTHOR "SIMOTIME TECHNOLOGIES"
*
/DEBUG     FILELIST SYSOUT
*          The following will generate the IDENTIFICATION DIVISION...
/STCBLID   TAG
*          The following will generate the ENVIRONMENT DIVISION...
/STCBLED   IO=Y
/STCBLED   SELECT SYSUT1
/STCBLED   SELECT SYSUT2
*          The following will generate the DATA DIVISION...
/STCBLDD   IO=Y
/STCBLDD   RECORD SYSUT1
/STCBLDD   RECORD SYSUT2
*          The following will generate the WORKING-STORAGE Section...
/STCBLWS   TAG
/STCBLWS   STATUS SYSUT1
/STCBLWS   STATUS SYSUT2
/STCBLWS   BUFFER MESSAGES
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
*          The following will generate the PROCEDURE DIVISION...
/STCBLPD   TAG
/USERSTMT             perform SYSUT1-OPEN
/USERSTMT             perform SYSUT2-OPEN
/USERSTMT             move '00' to SYSUT1-STATUS
/USERSTMT             perform until SYSUT1-STATUS not = '00'
/USERSTMT                 perform SYSUT1-READ
/USERSTMT                 if  SYSUT1-STATUS = '00'
/USERSTMT                     move SYSUT1-REC to SYSUT2-REC
/USERSTMT                     perform SYSUT2-WRITE
/USERSTMT                 end-if
/USERSTMT             end-perform
/USERSTMT             perform SYSUT2-CLOSE
/USERSTMT             perform SYSUT1-CLOSE
/USERSTMT             GOBACK.
/USERSTMT
/USERSTMT        *****************************************************************
/USERSTMT        * The following routines are used to access data files.
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/GENOPEN   SYSUT1 INPUT
/GENREAD   SYSUT1
/GENCLOSE  SYSUT1
*
/GENOPEN   SYSUT2 OUTPUT
/GENWRITE  SYSUT2
/GENCLOSE  SYSUT2
*
/GENZCODE  ABEND
/GENZCODE  MSGBUF


Table of Contents Previous Section Next Section IVP-02, Sequential to Indexed

WIP2

*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/SET       BFLAGS NNNNNNNN/NNNNNNNN
/SET       FILE SYSUT1 name=CU0080D1 org=Sequential recfm=FIXED    rlen=80 ACCESS=SEQUENTIAL
/SET       FILE SYSUT2 name=CU0080K1 org=indexed    recfm=VARIABLE rmin=80 rmax=80 kpos=1 klen=6 ACCESS=SEQUENTIAL
/SET       PROGID IVP4IOC2
/SET       AUTHOR "SIMOTIME TECHNOLOGIES"
*
/DEBUG     FILELIST SYSOUT
*          Generate the IDENTIFICATION DIVISION...
/STCBLID   TAG
*          Generate the ENVIRONMENT DIVISION...
/STCBLED   IO=Y
/STCBLED   SELECT SYSUT1
/STCBLED   SELECT SYSUT2
*          Generate the DATA DIVISION...
/STCBLDD   IO=Y
/STCBLDD   RECORD SYSUT1
/STCBLDD   RECORD SYSUT2
*          Generate the WORKING-STORAGE Section...
/STCBLWS   TAG
/STCBLWS   STATUS SYSUT1
/STCBLWS   STATUS SYSUT2
*                 ....:....1....:....2....:....3....
*STCBLWS   MSG1ST Read RSEQ/80, write KSDS/80-1/6
*STCBLWS   MSGEOJ
/STCBLWS   BUFFER MESSAGES
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
*          Generate the PROCEDURE DIVISION...
/STCBLPD   TAG
/USERSTMT             perform CU0080D1-OPEN
/USERSTMT             perform CU0080K1-OPEN
/USERSTMT             move '00' to CU0080D1-STATUS
/USERSTMT             perform until CU0080D1-STATUS not = '00'
/USERSTMT                 perform CU0080D1-READ
/USERSTMT                 if  CU0080D1-STATUS = '00'
/USERSTMT                     move CU0080D1-REC to CU0080K1-REC
/USERSTMT                     perform CU0080K1-WRITE
/USERSTMT                 end-if
/USERSTMT             end-perform
/USERSTMT             perform CU0080K1-CLOSE
/USERSTMT             perform CU0080D1-CLOSE
/USERSTMT             GOBACK.
/USERSTMT
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/USERSTMT        *****************************************************************
/USERSTMT        * The following routines are used to access data files.
/GENOPEN   SYSUT1 INPUT
/GENREAD   SYSUT1
/GENCLOSE  SYSUT1
*
/GENOPEN   SYSUT2 OUTPUT
/GENWRITE  SYSUT2
/GENCLOSE  SYSUT2
*
/GENZCODE  ABEND
/GENZCODE  MSGBUF


Table of Contents Previous Section Next Section IVP-03, Variable-Length Records

The following PCF Member (IVP4IO03.pcf) contains the specifications that will be used to generate a COBOL source member. Once compiled the generated program will read a sequential file with 80-byte, fixed-length records and create a sequential file with variable-length records.

*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/SET       BFLAGS NNNNNNNN/NNNNNNNN
/SET       FILE SYSUT1 name=CU0080D1 org=Sequential recfm=FIXED    rlen=80        ACCESS=SEQUENTIAL
/SET       FILE SYSUT2 name=CU0080V3 org=Sequential recfm=VARIABLE rmin=4 rmax=80 ACCESS=SEQUENTIAL RECVARY RECMODE
/SET       PROGID IVP4IOC3
/SET       AUTHOR "SIMOTIME TECHNOLOGIES"
*
/DEBUG     FILELIST SYSOUT
*          Generate the IDENTIFICATION DIVISION...
/STCBLID   TAG
*          Generate the ENVIRONMENT DIVISION...
/STCBLED   IO=Y
/STCBLED   SELECT SYSUT1
/STCBLED   SELECT SYSUT2
*          Generate the DATA DIVISION...
/STCBLDD   IO=Y
/STCBLDD   RECORD SYSUT1
/STCBLDD   RECORD SYSUT2
*          Generate the WORKING-STORAGE Section...
/STCBLWS   TAG
/STCBLWS   STATUS SYSUT1
/STCBLWS   STATUS SYSUT2
/STCBLWS   BUFFER MESSAGES
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
*          Generate the PROCEDURE DIVISION...
/STCBLPD   TAG
/USERSTMT             perform CU0080D1-OPEN
/USERSTMT             perform CU0080V3-OPEN
/USERSTMT             move '00' to CU0080D1-STATUS
/USERSTMT             perform until CU0080D1-STATUS not = '00'
/USERSTMT                 perform CU0080D1-READ
/USERSTMT                 if  CU0080D1-STATUS = '00'
/USERSTMT                     move CU0080D1-REC to CU0080V3-REC
/USERSTMT                     if  CU0080V3-REC(80:1) = SPACE
/USERSTMT                         add 79 to ZERO giving CU0080V3-LRECL
/USERSTMT                     else
/USERSTMT                         add 80 to ZERO giving CU0080V3-LRECL
/USERSTMT                     end-if
/USERSTMT                     perform CU0080V3-WRITE
/USERSTMT                 end-if
/USERSTMT             end-perform
/USERSTMT             perform CU0080V3-CLOSE
/USERSTMT             perform CU0080D1-CLOSE
/USERSTMT             GOBACK.
/USERSTMT
/USERSTMT        *****************************************************************
/USERSTMT        * The following routines are used to access data files.
*          ....:....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8....:....9....
/GENOPEN   SYSUT1 INPUT
/GENREAD   SYSUT1
/GENCLOSE  SYSUT1
*
/GENOPEN   SYSUT2 OUTPUT
/GENWRITE  SYSUT2
/GENCLOSE  SYSUT2
*
/GENZCODE  ABEND
/GENZCODE  MSGBUF


Table of Contents Previous Section Next Section Technical Details

This section describes functions that are common with other programs and performs standard administrative or utilitarian tasks.

Table of Contents Previous Section Next Section Generate a COBOL I/O Program

WIP2

Table of Contents Previous Section Next Section PCF Member, the Record Structure

The Process Control File (PCF) is an ASCII/Text file that contains statements (or Records) that will be used to generate the COBOL source code that will be used to access files or VSAM Data Sets. Each statement that is used in the generation process is identified by a "/" in position 1. Positions 2-10 contain a alpha-numeric text string that identifies the statement type. Position 11 must contain a space character. Positions 12-256 contain additional keywords and values based on the statement type.

1. /SET - This statement is used to define variables that will be used in the generation process.
1.1. FILE - This keyword is used to define the basic file specifications. The following is an example of a /SET Statement that is used for file definitions.
/SET       FILE SYSUT1 org=Sequential recfm=FIXED rlen=80 access=sequential
1.1.1. SYSxxxx - where xxxx is UT1-UT10, this keyword identifies the default DD name for a file.
1.1.2. NAME= - this keyword and parameter identifies the User DD Name that will override the SYSxxxx value when a program is generated.
1.1.3. ORG= - Defines the Data Set organization.
1.1.4. RECFM= - Defines the Record Format
1.1.5. RLEN= - Defines the Record Length for files with RECFM=FIXED
1.1.6. RMIN= - Defines the Minimum Record Length for files with RECFM=VARIABLE
1.1.7. RMAX= - Defines the Maximum Record Length for files with RECFM=VARIABLE
1.1.8. ACCESS= - Defines the access mode, the value is SEQUENTIAL or RANDOM.
1.2. AKEY -
2. /STCBLID - Used to create the Identification Division of a COBOL source member.
2.1. TAG - This keyword is used to define the start of the IDENTIFICATION DIVISION for the COBOL source member being generated. The following is an example of a /STCBLID Statement.
/STCBLID   TAG 
3. /STCBLED - Used to create the Environment Division of a COBOL source member.
3.1. The following is an example of the /STCBLED Statements.
/STCBLED   IO=Y 
/STCBLED SELECT SYSUT1
3.2. IO=Y - This keyword is used to define the start of the ENVIRONMENT DIVISION for the COBOL source member being generated.
3.3. SELECT - This keyword is used to create a SELECT statement in the ENVIRONMENT DIVISION of the COBOL source member being generated.
3.3.1. SYSxxxx - This keyword must specify a default DD name that was defined in a preceding /SET statement.
4. /STCBLDD - Used to create the DATA Division of a COBOL source member.
5. WIP
6. /STCBLPD - Used to create the Procedure Division of a COBOL source member.
7. WIP
8. /SYSIN - Used to include or insert user statements into the generated program. The user-defined statements may be instream within the PCF member or an external member.
8.1. The following statement defines the start of the instream data.
/SYSIN     *
Statements following the preceding statement will be copied to the output file.
8.2. The following statement defines the end of the instream data.
/SYSIN     /*
9. WIP

 

Table of Contents Previous Section Next Section Summary

The UTGENRIO utility program runs on a Windows System with Micro Focus Enterprise Developer and generates programs (COBOL Source Code) that may be used to access non-relational data files and VSAM data sets. 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, Comment or Feedback  section of this document.

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

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

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

Table of Contents Previous Section Next Section Downloads and Links

This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.

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

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

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

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

Link to Internet   Link to Server   Explore 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 COBOL Connection for more examples of COBOL programming techniques and sample code.

Link to Internet   Link to Server   Explore an Extended List of Software Technologies that are available for review and evaluation. The software technologies (or Z-Packs) provide individual programming examples, documentation and test data files in a single package. The Z-Packs are usually in zip format to reduce the amount of time to download.

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 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 connection.

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

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

Explore The Micro Focus Web Site for more information about products (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 Comments 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
Non-Relational Data Access, a Generated COBOL Program
Copyright © 1987-2023
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com