JES Log Scanner
Create CSV File with Elapsed Time
|The SimoTime Home Page|
The ability to review the results of batch job executions is a requirement for regression testing. The JES Spool provides the basic information. However, summarizing the information and calculating elapsed time for jobs and job steps takes additional time and effort. The MFJESLOG Utility Program is used with Micro Focus Enterprise Server to programmatically summarize this information and provides a summary file that may be easily imported into an Excel Spreadsheet.
Additional information about this program may be obtained by sending an e-mail to:
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-2019
SimoTime Technologies and Services
All Rights Reserved
The MFJESLOG utility program will scan the Micro Focus JES Spool Output and write the information to a CSV File that can be easily imported into an Excel Spread Sheet. The utility has an optional feature to write to an HTML file or ASCII/Text File.
This program provides presentation alternatives for reviewing or sharing the contents of the Micro Focus JES log. The MFJESLOG program will read a JES Spool file created by Micro Focus and produce an HTML or CSV file with job and job step information such as start, stop and elapsed times along with the Job Name, Job Number and the condition code at the end of each step and at the end of job.
The following command file (EZJESLOG.cmd) describes how to use the MFJESLOG program.
@echo OFF rem * ******************************************************************* rem * EZJESLOG.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: email@example.com * rem * ******************************************************************* rem * rem * ESA, Enterprise Server Administration rem * JES Log Presentation or Sharing Alternatives rem * rem * The following two environment variables identify the location of rem * the input and output files. rem * rem * SOURCEDIR - Identifies the directory for the input spool files. rem * TARGETDIR - Identifies the directory for the output files. rem * rem * The following four environment variables identify the functions rem * to enable. rem * rem * MFJESLOG_CSV - If set to "ENABLE" a CSV file will be created with rem * a summary of start, stop and elapsed times for the rem * job and the job steps. rem * rem * MFJESLOG_HTM - If set to "ENABLE" an HTML document will be created rem * with a summary of start, stop and elapsed times for rem * the job and the job steps. rem * rem * MFJESLOG_LOG - If set to "ENABLE" a copy of the JES File will be rem * created with a summary of start, stop and elapsed rem * times for the job and the job steps. rem * rem * MFJESLOG_JOB - If set to "ENABLE" an entry for the EOJ information rem * is added to the end of the file. rem * rem * Note: the names of the output files are in the following format. rem * MFJESLOG.JobName.JobNumber.Date.Time.ext rem * set CmdName=EZJESLOG call ..\Env1BASE rem * set SOURCEDIR=%BaseLib1%\DATA\SPOOL set TARGETDIR=%BaseLib1%\LOGS\MFJESLOG set LSTNAME=%TARGETDIR%\SIMOTIME.UTIL.LSTFILE.TXT if exist %LSTNAME% erase %LSTNAME% dir /on /b /a-d %SOURCEDIR%\MFE*.DAT>%LSTNAME% rem * set MFJESLOG_MSG=DISABLE set MFJESLOG_HTM=ENABLE set MFJESLOG_LOG=ENABLE set MFJESLOG_XML=ENABLE set MFJESLOG_JOB=REPLACE set MFJESLOG_LST=ENABLE rem * rem * Set the Job File Name for EOJ Summary log File. set JOBFILE=%TARGETDIR%\MIFOJES2.SUMMARY.LOGFILE.CSV rem * call SimoNOTE "*******************************************************%CmdName%.CMD" call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%" call SimoNOTE "%LSTNAME% run MFJESLOG if not "%ERRORLEVEL%" == "0" goto EOJNOK rem * if exist %LSTNAME% erase %LSTNAME% rem * :EOJAOK call SimoNOTE "DataMAKE %JOBFILE% " echo Finished JobName %CmdName%, User is %USERNAME% goto END rem * :EOJNOK echo ABENDING JobName %CmdName%, User is %USERNAME% rem * :END if not "%SimoMODE%" == "BATCH" (Start NotePad %JOBFILE% echo *)
The job execution was performed on a test system . The test cases were executed in a re-constructed test environment but may not have been the only jobs running on the system.
Reviewing JES Output to review the results of job execution can be very time consuming. The following summary of elapsed time for each of the test cases was created by programmatically accessing the JES Spool Output produced by the Micro Focus Server.
The following shows the CSV file created by the JES Spool Scanner program that calculates elapsed times for all the jobs in the SPOOL folder.
20140418,16:43:14,JOB17973,PT1SMLJ1, ,mfuser ,JOB ,STARTED , , 20140418,16:43:27,JOB17973,PT1SMLJ1, ,mfuser ,JOB ,ENDED ,0000 ,00:00:13 20140418,16:43:43,JOB17974,PT1SMLJ2, ,mfuser ,JOB ,STARTED , , 20140418,16:44:02,JOB17974,PT1SMLJ2, ,mfuser ,JOB ,ENDED ,0000 ,00:00:19 20140418,16:46:14,JOB17976,PT1MEDJ1, ,mfuser ,JOB ,STARTED , , 20140418,16:46:57,JOB17976,PT1MEDJ1, ,mfuser ,JOB ,ENDED ,0000 ,00:00:43 20140418,16:58:59,JOB17978,PT1MEDJ2, ,mfuser ,JOB ,STARTED , , 20140418,16:59:58,JOB17978,PT1MEDJ2, ,mfuser ,JOB ,ENDED ,0000 ,00:00:59 20140418,21:16:25,JOB17992,PT1LRGJ1, ,mfuser ,JOB ,STARTED , , 20140418,21:19:11,JOB17992,PT1LRGJ1, ,mfuser ,JOB ,ENDED ,0000 ,00:02:46 20140418,21:53:41,JOB17995,PT1LRGJ2, ,mfuser ,JOB ,STARTED , , 20140418,22:00:18,JOB17995,PT1LRGJ2, ,mfuser ,JOB ,ENDED ,0000 ,00:06:37
The following shows the HTM output created by the JES Spool Scanner program that calculates elapsed time by job step for each job.
|Date||Time||JCL Message||Job Number||Job or Step||Condition||Job Name||Step Name||Return Code||Elapsed Time|
The MFJESLOG utility program will scan the Micro Focus JES Spool Output and write job information to a CSV File or an HTML file. The program is part of the SIMOTIME Library and will execute on a Windows System with Micro Focus Enterprise Server . This document may be used as a tutorial for new programmers or as a quick reference for experienced programmers.
In the world of programming there are many ways to solve a problem. This document and the links to other documents are intended to provide a greater awareness of the Data Management and Application Processing alternatives.
The 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 send an e-mail to: firstname.lastname@example.org or call 415 883-6565. We appreciate hearing from you.
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.
Explore How to Calculate Elapsed Processing Times that will be used as a baseline reference when processing small, medium and large data files. This test case is intended for the Micro Focus Server environment and requires the SIMOTIME Library to be installed.
Explore a complete list of the SimoTime Callable Routines or Utility Programs. This includes the callable routines and utility programs for the Micro Focus environment.
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.
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 to interpret the results of accessing VSAM data sets and/or QSAM files.
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 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 copyrighted and maintained by SimoTime Technologies.
If you have any questions, suggestions, comments or feedback please call at 1 415 827-7045 or send an e-mail to: email@example.com
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 at 1 415 827-7045 or send an e-mail to: firstname.lastname@example.orgAlso, check the web site at http://www.simotime.com
|JES Log Presentation or Sharing|
|Copyright © 1987-2019
SimoTime Technologies and Services
All Rights Reserved
|When technology complements business|