Mainframe Oriented Batch Job Submit using JCL Members |
The SimoTime Home Page |
This document provides a list of jobs (or JCL Members) that are available to be submitted to a Mainframe-Oriented System for execution and review. The jobs were originally created to run in an OSVS or MVS environment and continue to run in the ZOS environment today. In addition, all the jobs have been migrated and run in a Micro Focus Server environment on Linux, UNIX or Windows (LUW) systems.
We have made a significant effort to ensure the documents and software technologies are correct and accurate. We reserve the right to make changes without notice at any time. The function delivered in this version is based upon the enhancement requests from a specific group of users. The intent is to provide changes as the need arises and in a timeframe that is dependent upon the availability of resources.
Copyright © 1987-2025
SimoTime Technologies and Services
All Rights Reserved
This section describes what is needed to access the documentation and run the complete suite of batch and online programs that are maintained by SimoTime and offered to our customers as examples, learning tools and reference material.
| ||||||||||
Prepare the Environment to Execute the SimoTime Suite of Batch on Online Programs |
Micro Focus Enterprise Server has the ability to run mainframe-oriented batch jobs. In other words, a user may submit JCL to a server and the batch job will run as it does on the mainframe. Before jobs can be submitted it will be necessary to configure a JES sub-system to accept the JCL submissions. This section provides a link to a separate document that will describe How to Configure a JES Sub-System to run under control of Micro Focus Enterprise Server..
There are a number of ways to submit jobs to the Server and these are covered in the Micro Focus documentation. The scope of this document will focus on two ways to submit jobs.
The programmer's or user's interface is a browser based and is referred to as Enterprise Server Administration or ES/Admin. When the JES function is enabled an ES/Admin JCL Control screen may be displayed. From this screen a user may submit jobs via a point-and-click technique with a capability of browsing a JCL Library (or directory).
The command line interface is a very popular way to submit batch jobs. This interface can be used by individuals, job schedulers or other technologies. A suite of EZ Series commands is provided to help simplify and document the submission of jobs from a command line.
Check out The EZ and SYS1 Series Commands for additional information about submitting jobs.
Note: For each of the jobs described in this document the command line syntax is provided.
This is a very simple, single-step job that executes IEFBR14. Its purpose is to validate the system configuration, the installation of the software and the startup process for the Micro Focus Enterprise Server.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA UVBR00J1
The following shows a listing of the JCL Member for this job.
//UVBR00J1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1,USER=SIMOTIME //* ******************************************************************* //* UVBR00J1.JCL - a JCL Member for Batch Job Processing * //* This JCL Member is provided by SimoTime Technologies * //* (C) Copyright 1987-2019 All Rights Reserved * //* Web Site URL: http://www.simotime.com * //* e-mail: helpdesk@simotime.com * //* ******************************************************************* //* //* Text - Set Condition-Code to ZERO and return to caller //* Author - SimoTime Technologies //* Date - January 24, 1996 //* //* ******************************************************************* //* Step 1 of 1, Execute the program... //* //NULLSTEP EXEC PGM=IEFBR14 //*
On the IBM Mainframe the Customer Master File is a VSAM Keyed Sequential Data Set (referred to as a VSAM, KSDS). On a Windows or UNIX System using Micro Focus the Customer Master File is an Indexed File or Key Sequenced File.
The Customer Master file contains variable length records with the minimum and average record length being the same length of 512 bytes. The key starts in the first position of the record and is 12 bytes in length. The record layout is defined in a COBOL copy file and contains text strings and various numeric formats including zoned-decimal, packed and binary.
| ||||||||
Create a new Customer Master File |
This following two sub-sections describe how to run jobs that produce mailing labels. Check out How to Produce Mailing Labels for additional information.
This job will read a Customer Master File (VSAM, KSDS) and produce a sequential file of 4-across mailing labels that will be sorted in postal code sequence. The following shows the sequence of events and the process for submitting the job.
| ||||||||||
SORT Utility to Sort by Postal Code |
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA STAMLRJ1
This job will read a Customer Master File (VSAM, KSDS) and produce a sequential file of 4-across mailing labels that will be sorted in postal code sequence. The following shows the sequence of events and the process for submitting the job.
| ||||||||||||
Using a Callable COBOL Sort |
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA STAMLRJ2
JCL conditional processing has always presented a challenge and front-end learning curve for programmers that are new to the mainframe. Their first question us. "Why did they do it that way?". Their next statement usually is, "The logic appears to be the reverse of what it should be." The intent of this suite of programs is to help understand this confusion. In our opinion this technique presents a multitude of simplicities that are confusing but they are not complicated.
The following is the mainframe JCL (JCLCONJ1.JCL) example that uses the COND parameter. The first step (NOPARM) will always execute and since there is no parameter specified the COBOL program (JCLCONC1.CBL) will simply set the return code to zero (0) and return to the JCL member. The second step (COND00A) will always execute the COBOL program passing a parameter that will cause the COBOL program to set a Return-Code of zero (0). The third step (COND00B) will execute only if the return code from all the previous steps is zero (0). The JCL will then continue to execute testing various conditions as documented in the JCL member.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA JCLCONJ1
Check out JCL using the COND= Construct for additional information about conditional processing with JCL.
The following is the mainframe JCL (JCLCONJ2.JCL) example that uses the IF, THEN, ELSE and ENDIF statement construct. The first step (NOPARM) will always execute and since there is no parameter specified the COBOL program (JCLCONC1.CBL) will simply set the return code to zero (0) and return to the JCL member. The second step (COND00A) will always execute the COBOL program passing a parameter that will cause the COBOL program to set a Return-Code of zero (0). The third step (COND00B) will execute only if the return code from all the previous steps is zero (0). The JCL will then continue to execute testing various conditions as documented in the JCL member.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA JCLCONJ2
Check out JCL using the IF/THEN/ELSE Constructs for additional information about conditional processing with JCL.
When jobs are submitted to the JES sub-system they are placed in a reader queue and the actual execution is managed by JES. A user may have a requirement to submit a job from within a currently running job or a COBOL program. The Internal Reader (or INTRDR) is what is used to address this requirement.
This suite of programs will describe how to submit a second job from within the current running job using IEBGENER.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA INTRDRJ1
Check out Using the Internal Reader with IEBGENER for additional information about INTRDR.
This suite of programs will describe how to submit a second job from within the current running job using a COBOL program. The advantage of using a COBOL program is access to the records in the JCL member being submitted.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA CBLSUBJ1
Check out Using the Internal Reader with COBOL for additional information about INTRDR.
This suite of programs includes three (3) sample programs that will cause an abnormal termination at execution time.
This job will cause a 0048 ABEND (or ABnormal ENDing) condition when attempting to do an arithmetic calculation and a divide by zero.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA AB0048J1
Check out The ABEND Testing Program for additional information about this ABEND.
This job will cause a 0163 ABEND (or ABnormal ENDing and also known as a S0C7 on the Mainframe) condition when attempting to do an arithmetic calculation and a divide by zero.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA AB0163J1
Check out The ABEND Testing Program for additional information about this ABEND.
This job will cause a 0173 ABEND (or ABnormal ENDing) condition when attempting to do an arithmetic calculation and a divide by zero.
The following statement shows the command line syntax for submitting the job to Enterprise Server.
C:\SIMOSAM1\LOADLIB> EZSUB SIMOBATA AB0173J1
Check out The ABEND Testing Program for additional information about this ABEND.
This document provides a list of jobs (or JCL Members) that are available to be submitted to a Mainframe-Oriented System for execution and review. This document may be used as a tutorial for new programmers or as a quick reference for experienced programmers.
Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.
SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.
This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.
Note: A SimoTime License is required for the items to be made available on a local system or server.
The following links may be to the current server or to the Internet.
Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the icon. If a user has a SimoTime Enterprise License the Documents and Program Suites may be available on a local server and accessed using the icon.
Explore the JCL Connection for more examples of JCL functionality with programming techniques and sample code.
Explore the COBOL Connection for more examples of COBOL programming techniques and sample code.
Explore An Enterprise System Model that describes and demonstrates how Applications that were running on a Mainframe System and non-relational data that was located on the Mainframe System were copied and deployed in a Microsoft Windows environment with Micro Focus Enterprise Server.
Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.
Explore The File Status Return Codes that are used to interpret the results of accessing VSAM data sets and/or QSAM files.
The following links will require an internet connect.
A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection
Explore The Micro Focus Web Site for more information about products (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection.
Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.
This document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.
1. | Send an e-mail to our helpdesk. |
1.1. | helpdesk@simotime.com. |
2. | Our telephone numbers are as follows. |
2.1. | 1 415 763-9430 office-helpdesk |
2.2. | 1 415 827-7045 mobile |
We appreciate hearing from you.
SimoTime Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.
Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.
Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SimoTime has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.
Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com
Return-to-Top |
Mainframe Oriented Batch Jobs, JCL Members to Submit to Enterprise Server |
Copyright © 1987-2025 SimoTime Technologies and Services All Rights Reserved |
When technology complements business |
http://www.simotime.com |