Performance Tracking
I/O Oriented Batch Applications & Sort
  Table of Contents  v-24.01.01 - pt1one01.htm 
  Introduction
  Data File Sizes and Structure
  Data Files (Small)
  Data Files (Medium)
  Data Files (Large)
  Performance Adjustments
  Data File Locations
  Input and Output Files
  Sort Work Files
  EXTFH Configuration File
  Environment Variables for SORT
  Test Cases
  Test-01, Small Sized Files
  Test-01, Create Test Files
  Test-01, File Extract, Sort and Print
  Test-02, Medium Sized Files
  Test-02, Create Test Files
  Test-02, File Extract, Sort and Print
  Test-03, Large Sized Files
  Test-03, Create Test Files
  Test-03, File Extract, Sort and Print
  Elapsed Times, Expected & Actual
  Expect, Calculate Elapsed Time
  Actual, Calculate Elapsed Time
  Actual, Elapsed Time by Job Step
  Ancillary Functions
  Set the Environment
  Display and Log Messages
  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

This document will demonstrate and describe how to establish a set of baseline performance metrics by calculating elapsed time for batch jobs from information extracted from the Micro Focus JES output.

Note:  The baseline performance metrics are established by running the test programs on a dedicated system. The test programs will be the only programs running on the system.

A production system usually provides a balance of resources based on job priority to multiple jobs running concurrently. A single task is not allowed to consume the entire system while others wait. The goal is to provide an acceptable level of system performance for all jobs instead of optimal performance for a single job.


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 Data File Sizes and Structure

The references to Small, Medium and Large files (or VSAM Data Sets) have specific meanings when used in the context of this document. The terms are used to refer to a file that contains fixed length records of 512 bytes in length. The Indexed File (or VSAM, KSDS) has a primary key of 12 bytes starting in position 1.

Record-Count Size and Comments
500,000 approximately 260 megabytes, within the context of this document this will be considered a small file.
2,000,000 approximately 1.056 gigabytes, within the context of this document this will be considered a medium file.
8,000,000 approximately 4.224 gigabytes, within the context of this document this will be considered a large file. This will test the capabilities of exceeding a previous file size limit of 4 gigabytes.
  File Sizes for Test Cases

Table of Contents Previous Section Next Section Data Files (Small)

For the smaller file (less than 500 megabytes) the default settings should provide satisfactory results and performance tuning would be a matter of choice. The defaults usually provide a balance between performance and the use of available resources.

Table of Contents Previous Section Next Section Data Files (Medium)

For the medium size files (approaching two gigabyte) some performance tuning and resource allocation may be required. The allocation of additional memory is usually required to meet performance objectives.

Table of Contents Previous Section Next Section Data Files (Large)

For the large files (exceeding two gigabyte) performance tuning and allocation of additional resources is usually a requirement. Additional memory and the distribution of files (i.e. SORTIN and SORTOUT) across different physical disk drives may be required. Additional consideration will be required to obtain the necessary resources to meet the performance objectives. This will usually have an impact on other applications running on the system.

For the large files exceeding two (2) gigabytes it will be necessary to configure the Micro Focus sub-system to support these larger files. The following shows the records in an EXTFH.CFG file that would be required to enable the larger file support.

[XFH-DEFAULT]
filemaxsize=8
idxformat=8
filepointersize=8

The EXTFH.CFG may be named in accordance with company standards and then referenced (or mapped) using an environment variable.

C:\> set EXTFH=drive:\directory-name\myconfigfilename.ext

Table of Contents Previous Section Next Section Performance Adjustments

For batch jobs one of the significant items that affects performance is the speed of the external storage (usually physical disk units) and how the external storage devices are allocated to the batch environment. For batch jobs multiple devices are preferred.

Table of Contents Previous Section Next Section Data File Locations

The physical location of the file to be sorted (SORTIN) and the new sorted file (SORTOUT) and the physical location of the sort work files will affect the performance or run time of a sort process.

Table of Contents Previous Section Next Section Input and Output Files

Splitting the SORTIN and SORTOUT across two different disk drives can result in an improvement in elapsed sorting time for the Windows environment. However, benchmarking has indicated that having the sort work files on a different physical drive has a greater impact on performance.

In many cases the location of the SORTIN and SORTOUT may be predefined to be in concurrence with a company’s systems and security standards. If there is flexibility in file locations the “ES/MTO Batch Jobs (Advanced Functions)” describes an alternate method for assigning the physical location of the SORTOUT file.

Table of Contents Previous Section Next Section Sort Work Files

For the large file sorts the location of the sort work files is a key element affecting performance. The allocation of the sort work files to a separate physical disk (a very fast disk or a Solid State Device (SSD)) with contiguous space usually results in a significant improvement in performance.

The TEMP and TMP environment variables are used to define the directory for the sort work files. Only one is required and if both are specified the TMP will be used. The following is an example.

Set TMP=X:\SORTTEMP

Also, during the benchmark we found it was important to have adequate, contiguous disk space available. When using a badly fragmented drive for the sort work files the performance was not as good and was inconsistent. Shifting to a drive with contiguous disk space resulted in a significant and consistent performance improvement.

We did notice that under certain ABEND conditions (i.e. killing a Server Execution Process or SEP) the sort work files were not deleted. For large file sorting this left a large work file allocated on the drive. This was automatically corrected by the next sort job.

Table of Contents Previous Section Next Section EXTFH Configuration File

The following show the content of the EXTFH Configuration file used by the Test Cases.

[XFH-DEFAULT]
filemaxsize=8
idxformat=8
filepointersize=8
INDEXCOUNT=32
IGNORELOCK=ON
READSEMA=OFF
USEVSAMKEYDEFS=OFF

Table of Contents Previous Section Next Section Environment Variables for SORT

The following are the environment variables that are used by the test cases to improve the elapsed run time of the SORT program.

rem  *
rem  * Resource Allocation and Performance for SORT and non-Relational Data
rem  set MFJSENGINE=SYNCSORT
     set SORTSCHEME=1
     set SORTSPACE=500000000
     set TMP=C:\SORTWORK

Table of Contents Previous Section Next Section Test Cases

The following sub-sections provide additional detail for executing the test cases in a Micro Focus Server environment.

Table of Contents Previous Section Next Section Test-01, Small Sized Files

This test case will create and process a small-sized test file containing 500,000 records (or approximately 260 megabytes). The elapsed processing time is used as a baseline reference for expected performance.

Table of Contents Previous Section Next Section Test-01, Create Test Files

The following JCL member (PT1SMLJ1.jcl) will define the VSAM Cluster for the primary test file and then execute a procedure to populate the VSAM Data Set.

//PT1SMLJ1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       PT1SMLJ1.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   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//*
//         SET  CUSTNAME=SIMOTIME.DATA.PTCUSSML
//         SET  SPECNAME=SIMOTIME.DATA.PT080SML
//*
//* *******************************************************************
//* Step 1 of 5, Delete a previously created specifications file.
//*
//PARMUNDO EXEC PGM=IEFBR14
//OBFCTL80 DD  DSN=&SPECNAME,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 5, Create & populate a Specifications or Behavior  file
//*
//PARMDOIT EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  DUMMY
//* :....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8
//SYSUT1   DD  *
* A comment is identified by an asterisk (*) in position one (1)
* ..:....1....:....2....:....3....:....4....:....5....:....6....
/CTL FLAGS=FFFF0100
/CTL RECORDS=500000
/*
//SYSUT2   DD  DSN=&SPECNAME,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 3 of 5, Delete a previously created customer master file...
//*
//DELKSDS  EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
 DELETE    SIMOTIME.DATA.PTCUSSML CLUSTER PURGE
 IF LASTCC=8 THEN SET MAXCC=0
/*
//*
//* *******************************************************************
//* Step 4 of 5, Define a new cluster.
//*
//CRTKSDS  EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
 DEFINE    CLUSTER  (NAME(SIMOTIME.DATA.PTCUSSML)             -
                    TRACKS(45,15)                             -
                    INDEXED)                                  -
           DATA     (NAME(SIMOTIME.DATA.PTCUSSML.DAT)         -
                    KEYS(12,0)                                -
                    RECORDSIZE(512,512)                       -
                    FREESPACE(10,15)                          -
                    CISZ(8192))                               -
           INDEX    (NAME(SIMOTIME.DATA.PTCUSSML.IDX))
/*
//*
//* *******************************************************************
//* Step 5 of 5, Populate a Customer Master file
//POPULATE EXEC PT1POPP1
//*

The following JCL PROCedure (PT1POPP1.prc) will populate the VSAM Data Set for the primary test file.

//PT1POPP1 PROC
//* *******************************************************************
//*        PT1POPP1.prc - a JCL Procedure Batch Job Processing        *
//*      This JCL Procedure is provided by SimoTime Technologies      *
//*           (C) Copyright 1987-2018 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//* Step   5   This is a single step job.
//*
//POPULATE EXEC PGM=OBFDATC2
//STEPLIB  DD  DISP=OLD,DSN=SIMOTIME.PDS.LOADLIB
//OBFCTL80 DD  DISP=OLD,DSN=&SPECNAME
//FNAMEF01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEF01
//FNAMEM01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEM01
//LASTNAME DD  DISP=OLD,DSN=SIMOTIME.DATA.LASTNAME
//POSTCODE DD  DISP=OLD,DSN=SIMOTIME.DATA.POSTCODE
//STREET01 DD  DISP=OLD,DSN=SIMOTIME.DATA.STREET01
//OBF1CUST DD  DISP=OLD,DSN=&CUSTNAME
//SYSOUT   DD  SYSOUT=*
//*
//         PEND

Table of Contents Previous Section Next Section Test-01, File Extract, Sort and Print

The following JCL member (PT1SMLJ2.jcl) will read the primary VSAM Data Set and produce four-across mailing labels that are sorted into a postal code sequence.

//PT1SMLJ2 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*       PT1SMLJ2.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   - Create four-across mailing label file
//* Author - SimoTime Technologies
//* Date   - January 01, 1989
//*
//* The first step illustrates the use of IEFBR14 and DD statements
//* with the DISP=(MOD,DELETE,DELETE) to delete files.
//*
//* The second step illustrates the use of a COBOL program to read
//* a VSAM, Keyed Sequential Data Set (KSDS) and creates a sequential
//* file the omits the records with a PO Box as the street address.
//* This program also illustates the technique for passing a parameter
//* from JCL to COBOL.
//*
//* The third step illustrates the use the SORT program to
//* sort a Sequential file by zip code.
//*
//* The fourth step illustrates the use of a COBOL program that reads
//* the sorted,sequential file and creates a Sequential File formatted
//* for four-across mailing labels.
//*
//* The COBOL program also provides an example of using a two
//* dimensional array.
//*
//* This set of programs will run on a mainframe under MVS or on
//* a Personal Computer running Windows and Mainframe Express or
//* Net Express by Micro Focus.
//*
//*                     ************
//*                     * PT1SMLJ2 *
//*                     ********jcl*
//*                          *
//*                     ************
//*                     * IEFBR14  *
//*                     ********utl*
//*                          *
//*    ************     ************     ************
//*    * PTCUSSML *-----* STAMLRC1 *-----* CUSTTEMP *
//*    *******ksds*     ********cbl*     *******rseq*
//*                          *  *
//*                          *  *        ************
//*                          *  ***call*** SIMOROAD *
//*                          *           *******rseq*
//*                          *                *
//*                          *           ************
//*                          *           * SIMOPARS *
//*                          *           *******rseq*
//*                          *
//*    ************     ************     ************
//*    * CUSTTEMP *-----*   SORT   *-----* CUSTSORT *
//*    *******rseq*     ********utl*     *******rseq*
//*                          *
//*                          *
//*    ************     ************     ************
//*    * CUSTSORT *-----* STAMLRC2 *-----* CUSTTEXT *
//*    *******rseq*     ********cbl*     *******rseq*
//*                          *
//*                          *
//*                     ************
//*                     *   EOJ    *
//*                     ************
//*
//*
//* *******************************************************************
//         SET WORK=SML
//         SET CUSTNAME=SIMOTIME.DATA.PTCUSSML
//* *******************************************************************
//* Step 1 of 4, Delete any previously created file...
//* *******************************************************************
//*
//QSAMDELT EXEC PGM=IEFBR14
//MAILTEMP DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILSORT DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 4, Read KSDS and create Sequential File without PO Boxes
//*              The PARM=NOPOBOX tells the program not to include
//*              records that have PO Box addresses.
//* *******************************************************************
//*
//ADDRST02 EXEC PGM=STAMLRC1,PARM='NOPOBOX'
//CUSTMAST DD  DSN=&CUSTNAME,DISP=SHR
//MAILTEMP DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 3 of 4, Sort by Zip Code...
//* *******************************************************************
//*
//SORTST03 EXEC PGM=SORT,COND=(0,LT),
//             REGION=1024K
//SYSIN    DD  DSN=SIMOTIME.PDS.PARMLIB(STAMLRT1),DISP=SHR
//SORTIN   DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=OLD
//SORTWK01 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK02 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK03 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTOUT  DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 4 of 4, Read Sorted file, create 4-across mailing label file
//*              The program looks for a PARM=n where n is a number
//*              from 1-4 specifying the number of labels across a
//*              row. If this parameter is missing the default is 4.
//* *******************************************************************
//*
//MAILST04 EXEC PGM=STAMLRC2,COND=(0,LT)
//MAILSORT DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=OLD
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*

Table of Contents Previous Section Next Section Test-02, Medium Sized Files

This test case will create and process a medium-sized test file containing 2,000,000 records (or approximately 1.056 gigabytes). The elapsed processing time is used as a baseline reference for expected performance.

Table of Contents Previous Section Next Section Test-02, Create Test Files

The following JCL member (PT1MEDJ1.jcl) will define the VSAM Cluster for the primary test file and then execute a procedure to populate the VSAM Data Set.

//PT1MEDJ1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*        This program 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   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//*
//         SET  CUSTNAME=SIMOTIME.DATA.PTCUSMED
//         SET  SPECNAME=SIMOTIME.DATA.PT080MED
//*
//* *******************************************************************
//* Step 1 of 5, Delete a previously created specifications file.
//*
//PARMUNDO EXEC PGM=IEFBR14
//OBFCTL80 DD  DSN=&SPECNAME,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 5, Create & populate a Specifications or Behavior  file
//*
//PARMDOIT EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  DUMMY
//* :....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8
//SYSUT1   DD  *
* A comment is identified by an asterisk (*) in position one (1)
* ..:....1....:....2....:....3....:....4....:....5....:....6....
/CTL FLAGS=FFFF0100
/CTL RECORDS=2000000
/*
//SYSUT2   DD  DSN=&SPECNAME,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 3 of 5, Delete a previously created customer master file...
//*
//DELETE   EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 DELETE    SIMOTIME.DATA.PTCUSMED   -
           FILE (PTCUSMED)          -
           PURGE                    -
           ERASE                    -
           CLUSTER
 SET       MAXCC = 0
/*
//*
//* *******************************************************************
//* Step 4 of 5, Define a new cluster.
//*
//DEFINE   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
 DEFINE    CLUSTER  (NAME(SIMOTIME.DATA.PTCUSMED)             -
                    TRACKS(45,15)                             -
                    INDEXED)                                  -
           DATA     (NAME(SIMOTIME.DATA.PTCUSMED.DAT)         -
                    KEYS(12,0)                                -
                    RECORDSIZE(512,512)                       -
                    FREESPACE(10,15)                          -
                    CISZ(8192))                               -
           INDEX    (NAME(SIMOTIME.DATA.PTCUSMED.IDX))
/*
//*
//* *******************************************************************
//* Step 5 of 5, Populate a Customer Master file
//POPULATE EXEC PT1POPP1
//*

The following JCL PROCedure (PT1POPP1.prc) will populate the VSAM Data Set for the primary test file.

//PT1POPP1 PROC
//* *******************************************************************
//*        PT1POPP1.prc - a JCL Procedure Batch Job Processing        *
//*      This JCL Procedure is provided by SimoTime Technologies      *
//*           (C) Copyright 1987-2018 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//* Step   5   This is a single step job.
//*
//POPULATE EXEC PGM=OBFDATC2
//STEPLIB  DD  DISP=OLD,DSN=SIMOTIME.PDS.LOADLIB
//OBFCTL80 DD  DISP=OLD,DSN=&SPECNAME
//FNAMEF01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEF01
//FNAMEM01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEM01
//LASTNAME DD  DISP=OLD,DSN=SIMOTIME.DATA.LASTNAME
//POSTCODE DD  DISP=OLD,DSN=SIMOTIME.DATA.POSTCODE
//STREET01 DD  DISP=OLD,DSN=SIMOTIME.DATA.STREET01
//OBF1CUST DD  DISP=OLD,DSN=&CUSTNAME
//SYSOUT   DD  SYSOUT=*
//*
//         PEND

Table of Contents Previous Section Next Section Test-02, File Extract, Sort and Print

The following JCL member (PT1MEDJ2.jcl) will read the primary VSAM Data Set and produce four-across mailing labels that are sorted into a postal code sequence.

//PT1MEDJ2 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*        This program 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   - Create four-across mailing label file
//* Author - SimoTime Technologies
//* Date   - January 01, 1989
//*
//* The first step illustrates the use of IEFBR14 and DD statements
//* with the DISP=(MOD,DELETE,DELETE) to delete files.
//*
//* The second step illustrates the use of a COBOL program to read
//* a VSAM, Keyed Sequential Data Set (KSDS) and creates a sequential
//* file the omits the records with a PO Box as the street address.
//* This program also illustates the technique for passing a parameter
//* from JCL to COBOL.
//*
//* The third step illustrates the use the SORT program to
//* sort a Sequential file by zip code.
//*
//* The fourth step illustrates the use of a COBOL program that reads
//* the sorted,sequential file and creates a Sequential File formatted
//* for four-across mailing labels.
//*
//* The COBOL program also provides an example of using a two
//* dimensional array.
//*
//* This set of programs will run on a mainframe under MVS or on
//* a Personal Computer running Windows and Mainframe Express or
//* Net Express by Micro Focus.
//*
//*                     ************
//*                     * PT1MEDJ2 *
//*                     ********jcl*
//*                          *
//*                     ************
//*                     * IEFBR14  *
//*                     ********utl*
//*                          *
//*    ************     ************     ************
//*    * PTCUSLRG *-----* STAMLRC1 *-----* CUSTTEMP *
//*    *******ksds*     ********cbl*     *******rseq*
//*                          *  *
//*                          *  *        ************
//*                          *  ***call*** SIMOROAD *
//*                          *           *******rseq*
//*                          *                *
//*                          *           ************
//*                          *           * SIMOPARS *
//*                          *           *******rseq*
//*                          *
//*    ************     ************     ************
//*    * CUSTTEMP *-----*   SORT   *-----* CUSTSORT *
//*    *******rseq*     ********utl*     *******rseq*
//*                          *
//*                          *
//*    ************     ************     ************
//*    * CUSTSORT *-----* STAMLRC2 *-----* CUSTTEXT *
//*    *******rseq*     ********cbl*     *******rseq*
//*                          *
//*                          *
//*                     ************
//*                     *   EOJ    *
//*                     ************
//*
//*
//* *******************************************************************
//         SET WORK=MED
//         SET CUSTNAME=SIMOTIME.DATA.PTCUSMED
//* *******************************************************************
//* Step 1 of 4, Delete any previously created file...
//* *******************************************************************
//*
//QSAMDELT EXEC PGM=IEFBR14
//MAILTEMP DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILSORT DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 4, Read KSDS and create Sequential File without PO Boxes
//*              The PARM=NOPOBOX tells the program not to include
//*              records that have PO Box addresses.
//* *******************************************************************
//*
//ADDRST02 EXEC PGM=STAMLRC1,PARM='NOPOBOX'
//CUSTMAST DD  DSN=&CUSTNAME,DISP=OLD
//MAILTEMP DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 3 of 4, Sort by Zip Code...
//* *******************************************************************
//*
//SORTST03 EXEC PGM=SORT,COND=(0,LT),
//             REGION=1024K
//SYSIN    DD  DSN=SIMOTIME.PDS.PARMLIB(STAMLRT1),DISP=SHR
//SORTIN   DD  DSN=SIMOTIME.&WORK..CUSTTEMP,DISP=OLD
//SORTWK01 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK02 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK03 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTOUT  DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 4 of 4, Read Sorted file, create 4-across mailing label file
//*              The program looks for a PARM=n where n is a number
//*              from 1-4 specifying the number of labels across a
//*              row. If this parameter is missing the default is 4.
//* *******************************************************************
//*
//MAILST04 EXEC PGM=STAMLRC2,COND=(0,LT)
//MAILSORT DD  DSN=SIMOTIME.&WORK..CUSTSORT,DISP=OLD
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*

Table of Contents Previous Section Next Section Test-03, Large Sized Files

This test case will create and process a large-sized test file containing 8,000,000 records (or approximately 4.224 gigabytes). The elapsed processing time is used as a baseline reference for expected performance.

Table of Contents Previous Section Next Section Test-03, Create Test Files

The following JCL member (PT1LRGJ1.jcl) will define the VSAM Cluster for the primary test file and then execute a procedure to populate the VSAM Data Set.

//PT1LRGJ1 JOB SIMOTIME,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*        This program 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   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//*
//         SET  CUSTNAME=SIMOTIME.DATA.PTCUSLRG
//         SET  SPECNAME=SIMOTIME.DATA.PT080LRG
//*
//* *******************************************************************
//* Step 1 of 5, Delete a previously created specifications file.
//*
//JOBSETUP EXEC PGM=IEFBR14
//OBFCTL80 DD  DSN=&SPECNAME,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 5, Create & populate a Specifications or Behavior  file
//*
//PARMDOIT EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  DUMMY
//* :....1....:....2....:....3....:....4....:....5....:....6....:....7....:....8
//SYSUT1   DD  *
* A comment is identified by an asterisk (*) in position one (1)
* ..:....1....:....2....:....3....:....4....:....5....:....6....
/CTL FLAGS=FFFF0100
/CTL RECORDS=8000000
/*
//SYSUT2   DD  DSN=&SPECNAME,
//             DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//* *******************************************************************
//* Step 3 of 5, Delete a previously created customer master file...
//*
//DELETE   EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 DELETE    SIMOTIME.DATA.PTCUSLRG   -
           FILE (PTCUSLRG)          -
           PURGE                    -
           ERASE                    -
           CLUSTER
 SET       MAXCC = 0
/*
//*
//* *******************************************************************
//* Step 4 of 5, Define a new cluster.
//*
//DEFINE   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
 DEFINE    CLUSTER  (NAME(SIMOTIME.DATA.PTCUSLRG)             -
                    TRACKS(45,15)                             -
                    INDEXED)                                  -
           DATA     (NAME(SIMOTIME.DATA.PTCUSLRG.DAT)         -
                    KEYS(12,0)                                -
                    RECORDSIZE(512,512)                       -
                    FREESPACE(10,15)                          -
                    CISZ(8192))                               -
           INDEX    (NAME(SIMOTIME.DATA.PTCUSLRG.IDX))
/*
//*
//* *******************************************************************
//* Step 5 of 5, Populate a Customer Master file
//POPULATE EXEC PT1POPP1
//*

The following JCL PROCedure (PT1POPP1.prc) will populate the VSAM Data Set for the primary test file.

//PT1POPP1 PROC
//* *******************************************************************
//*        PT1POPP1.prc - a JCL Procedure Batch Job Processing        *
//*      This JCL Procedure is provided by SimoTime Technologies      *
//*           (C) Copyright 1987-2018 All Rights Reserved             *
//*             Web Site URL:   http://www.simotime.com               *
//*                   e-mail:   helpdesk@simotime.com                 *
//* *******************************************************************
//*
//* Text   - Create an empty VSAM, KSDS data set using IDCAMS.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is twelve
//* characters starting at the first position in the record.
//* The record length is 512 characters.
//*
//* This set of programs will run on a mainframe under MVS or on a
//* Personal Computer with Windows and Micro Focus Mainframe Express.
//*
//* *******************************************************************
//* Step   5   This is a single step job.
//*
//POPULATE EXEC PGM=OBFDATC2
//STEPLIB  DD  DISP=OLD,DSN=SIMOTIME.PDS.LOADLIB
//OBFCTL80 DD  DISP=OLD,DSN=&SPECNAME
//FNAMEF01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEF01
//FNAMEM01 DD  DISP=OLD,DSN=SIMOTIME.DATA.FNAMEM01
//LASTNAME DD  DISP=OLD,DSN=SIMOTIME.DATA.LASTNAME
//POSTCODE DD  DISP=OLD,DSN=SIMOTIME.DATA.POSTCODE
//STREET01 DD  DISP=OLD,DSN=SIMOTIME.DATA.STREET01
//OBF1CUST DD  DISP=OLD,DSN=&CUSTNAME
//SYSOUT   DD  SYSOUT=*
//*
//         PEND

Table of Contents Previous Section Next Section Test-03, File Extract, Sort and Print

The following JCL member (PT1LRGJ2.jcl) will read the primary VSAM Data Set and produce four-across mailing labels that are sorted into a postal code sequence.

//PT1LRGJ2 JOB SIMOTIME,ACCOUNT,CLASS=1,MSGCLASS=0,NOTIFY=CSIP1
//* *******************************************************************
//*        This program 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   - Create four-across mailing label file
//* Author - SimoTime Technologies
//* Date   - January 01, 1989
//*
//* The first step illustrates the use of IEFBR14 and DD statements
//* with the DISP=(MOD,DELETE,DELETE) to delete files.
//*
//* The second step illustrates the use of a COBOL program to read
//* a VSAM, Keyed Sequential Data Set (KSDS) and creates a sequential
//* file the omits the records with a PO Box as the street address.
//* This program also illustates the technique for passing a parameter
//* from JCL to COBOL.
//*
//* The third step illustrates the use the SORT program to
//* sort a Sequential file by zip code.
//*
//* The fourth step illustrates the use of a COBOL program that reads
//* the sorted,sequential file and creates a Sequential File formatted
//* for four-across mailing labels.
//*
//* The COBOL program also provides an example of using a two
//* dimensional array.
//*
//* This set of programs will run on a mainframe under MVS or on
//* a Personal Computer running Windows and Mainframe Express or
//* Net Express by Micro Focus.
//*
//*                     ************
//*                     * PT1LRGJ2 *
//*                     ********jcl*
//*                          *
//*                     ************
//*                     * IEFBR14  *
//*                     ********utl*
//*                          *
//*    ************     ************     ************
//*    * PTCUSLRG *-----* STAMLRC1 *-----* CUSTTEMP *
//*    *******ksds*     ********cbl*     *******rseq*
//*                          *  *
//*                          *  *        ************
//*                          *  ***call*** SIMOROAD *
//*                          *           *******rseq*
//*                          *                *
//*                          *           ************
//*                          *           * SIMOPARS *
//*                          *           *******rseq*
//*                          *
//*    ************     ************     ************
//*    * CUSTTEMP *-----*   SORT   *-----* CUSTSORT *
//*    *******rseq*     ********utl*     *******rseq*
//*                          *
//*                          *
//*    ************     ************     ************
//*    * CUSTSORT *-----* STAMLRC2 *-----* CUSTTEXT *
//*    *******rseq*     ********cbl*     *******rseq*
//*                          *
//*                          *
//*                     ************
//*                     *   EOJ    *
//*                     ************
//*
//*
//* *******************************************************************
//         SET WORK=LRG
//         SET WORK2=LRG2
//         SET WORK3=LRG3
//         SET CUSTNAME=SIMOTIME.DATA.PTCUSLRG
//* *******************************************************************
//* Step 1 of 4, Delete any previously created file...
//* *******************************************************************
//*
//JOBSETUP EXEC PGM=IEFBR14
//MAILTEMP DD  DSN=SIMOTIME.&WORK2..CUSTTEMP,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILSORT DD  DSN=SIMOTIME.&WORK3..CUSTSORT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(MOD,DELETE,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//*
//* *******************************************************************
//* Step 2 of 4, Read KSDS and create Sequential File without PO Boxes
//*              The PARM=NOPOBOX tells the program not to include
//*              records that have PO Box addresses.
//* *******************************************************************
//*
//ADDRST02 EXEC PGM=STAMLRC1,PARM='NOPOBOX'
//CUSTMAST DD  DSN=&CUSTNAME,DISP=OLD
//MAILTEMP DD  DSN=SIMOTIME.&WORK2..CUSTTEMP,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 3 of 4, Sort by Zip Code...
//* *******************************************************************
//*
//SORTST03 EXEC PGM=SORT,COND=(0,LT),
//             REGION=1024K
//SYSIN    DD  DSN=SIMOTIME.PDS.PARMLIB(STAMLRT1),DISP=SHR
//SORTIN   DD  DSN=SIMOTIME.&WORK2..CUSTTEMP,DISP=OLD
//SORTWK01 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK02 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTWK03 DD  UNIT=SYSDA,SPACE=(CYL,55)
//SORTOUT  DD  DSN=SIMOTIME.&WORK3..CUSTSORT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=244,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*
//* *******************************************************************
//* Step 4 of 4, Read Sorted file, create 4-across mailing label file
//*              The program looks for a PARM=n where n is a number
//*              from 1-4 specifying the number of labels across a
//*              row. If this parameter is missing the default is 4.
//* *******************************************************************
//*
//MAILST04 EXEC PGM=STAMLRC2,COND=(0,LT)
//MAILSORT DD  DSN=SIMOTIME.&WORK3..CUSTSORT,DISP=OLD
//MAILTEXT DD  DSN=SIMOTIME.&WORK..CUSTTEXT,DISP=(NEW,CATLG,DELETE),
//             STORCLAS=MFI,SPACE=(TRK,5),
//             DCB=(RECFM=FB,LRECL=192,DSORG=PS)
//SYSOUT   DD  SYSOUT=*
//*

Table of Contents Previous Section Next Section Elapsed Times, Expected & Actual

The following is a summary of the elapsed time for each of the test cases. The elapsed times were created by programmatically accessing the JES Spool Output produced by the Micro Focus Server.

Table of Contents Previous Section Next Section Expect, Calculate Elapsed Time

The job execution to establish a baseline was performed on a dedicated system. The test cases were 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.

20121222,22:22:31,JOB16609,PT1SMLJ1,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:22:44,JOB16609,PT1SMLJ1,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:00:13
20121222,22:22:44,JOB16610,PT1SMLJ2,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:23:00,JOB16610,PT1SMLJ2,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:00:16
20121222,22:23:01,JOB16611,PT1MEDJ1,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:23:43,JOB16611,PT1MEDJ1,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:00:42
20121222,22:23:43,JOB16612,PT1MEDJ2,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:24:36,JOB16612,PT1MEDJ2,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:00:53
20121222,22:24:36,JOB16613,PT1LRGJ1,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:27:21,JOB16613,PT1LRGJ1,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:02:45
20121222,22:27:21,JOB16614,PT1LRGJ2,                 ,mfuser  ,JOB ,STARTED ,        ,
20121222,22:30:40,JOB16614,PT1LRGJ2,                 ,mfuser  ,JOB ,ENDED   ,0000    ,00:03:19

Note:  The preceding information is saved in an ASCII/Text file in a Comma-Separated-Values (or CSV) format. The file may be easily imported into a Microsoft Excel spread sheet.

Table of Contents Previous Section Next Section Actual, Calculate Elapsed Time

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

Table of Contents Previous Section Next Section Actual, Elapsed Time by Job Step

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
20140418 21:53:41 JCLCM0188I JOB17995 JOB STARTED PT1LRGJ2      
20140418 21:53:41 JCLCM0190I JOB17995 STEP STARTED PT1LRGJ2 JOBSETUP    
20140418 21:53:41 JCLCM0191I JOB17995 STEP ENDED PT1LRGJ2 JOBSETUP 0000 00:00:00
20140418 21:53:41 JCLCM0190I JOB17995 STEP STARTED PT1LRGJ2 ADDRST02    
20140418 21:59:08 JCLCM0191I JOB17995 STEP ENDED PT1LRGJ2 ADDRST02 0000 00:05:27
20140418 21:59:08 JCLCM0190I JOB17995 STEP STARTED PT1LRGJ2 SORTST03    
20140418 21:59:52 JCLCM0191I JOB17995 STEP ENDED PT1LRGJ2 SORTST03 0000 00:00:44
20140418 21:59:52 JCLCM0190I JOB17995 STEP STARTED PT1LRGJ2 MAILST04    
20140418 22:00:17 JCLCM0191I JOB17995 STEP ENDED PT1LRGJ2 MAILST04 0000 00:00:25
20140418 22:00:18 JCLCM0182I JOB17995 JOB ENDED PT1LRGJ2   0000 00:06:37

Table of Contents Previous Section Next Section Ancillary Functions

This section provides additional detail about Micro Focus Server usage and configuration.

Table of Contents Previous Section Next Section Set the Environment

A command file (ENV1BASE.cmd) is called from other command files to set commonly used environment variables. This provides a single point of definition. The following is a listing of the contents of the command file.

@echo OFF
rem  * *******************************************************************
rem  *               ENV1BASE.cmd - a Windows Command File               *
rem  *        This program is provided by SimoTime Technologies          *
rem  *           (C) Copyright 1987-2021 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Provide a single point to set common environment variables.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * Set the commonly used environment variables. This is used to provide
rem  * a single point for managing the commonly used environment variables.
rem  *
     set SimoLIBR=c:\SimoLIBR
     set BASELIB1=c:\SIMOSAM1\DEVL
     set BASELIB8=c:\SimoSAM8
     set BaseWIP1=c:\SimoSAM1\WIP1
     set DATAZERO=c:\SIMODATA\DEVL\DATA\ZERO
     set BASEAPP=%BaseLib1%
     set BASESYS=%BaseLib1%\SYS1
     set BASECAT=%BaseLib1%\DATA
     set UMAPALIB=%BASECAT%\ASC1
     set UMAPELIB=%BASECAT%\EBC1
     set SYSLOG=%BASESYS%\LOGS\SYSLOG_USER.DAT
     set SYSOUT=%BASEAPP%\LOGS\SYSOUT_SIMSAM01.txt
     set SLZMSG=%BASEAPP%\LOGS\SLZMSG_USER.TXT
     set PostNOTE=%BASEAPP%\LOGS\JOBLOG_SIMONOTE.TXT
     set SIMONOTE=%BASEAPP%\LOGS\JOBLOG_SIMONOTE.txt
     set USERPOST=%BASEAPP%\LOGS\ASSIGNED_USER_POST_FILE.txt
     if [%1]==[] goto NO_POST
     set SYSOUT=%BaseLib1%\LOGS\SYSOUT_%1.txt
     call SIMONOTE "+ ENV1BASE *"
     call SIMONOTE "+ ENV1BASE ********************************************************************%1"
     call SIMONOTE "+ ENV1BASE is preparing the System Environment..."
     call SIMONOTE "+ SIMOLIBR is %SIMOLIBR%"
     call SIMONOTE "+ MIFOSYS1 is %MIFOSYS1%"
     call SIMONOTE "+ BASELIB1 is %BASELIB1%"
:NO_POST
     call SIMONOTE "+ SIMONOTE Job Log File is %SIMONOTE% "
rem  *
     set MQBASE=C:\Program Files\IBM\WebSphere MQ
rem  *
rem  * Set the location for the Apache-Tomcat Server...
     set CATALINA_HOME=C:\APACHETC\apache-tomcat-7.0.52
rem     set CATALINA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_112
rem  *
rem  * Set the Environment for the Java Environment...
rem     set JAVABASE=C:\APACHETC\apache-tomcat-7.0.52
     set JAVABASE=C:\Program Files (x86)\Java\jdk1.8.0_112
     set JAVASDK="%JAVABASE%\bin"
     set JAVA_HOME=%JAVABASE%
     set JRE_HOME=%JAVABASE%
     set SIMOTCAT=%CATALINA_HOME%\webapps\simotcat
     set SIMPACKS=%CATALINA_HOME%\webapps\simotcat\WEB-INF\classes\simpacks
rem  *
rem  * Set the environment for the Micro Focus technology...
     set MIFOEDEV=C:\Program Files (x86)\Micro Focus\Enterprise Developer
     set MIFOVCBL=C:\Program Files (x86)\Micro Focus\Visual COBOL Build Tools
     set MIFOESTU=C:\Program Files (x86)\Micro Focus\Studio Enterprise Edition 6.0
     set MIFOEMFE="C:\Program Files (x86)\Micro Focus\Mainframe Express"
rem  *
rem  * Large file support, performance tuning and record locking of the File Handler
     set EXTFH=%BASESYS%\CONFIG\EXTFHBIG.CFG
rem  *
rem  * For IMS Support
     set ES_IMSLIB=%BASEAPP%\IMSLIB
     set ES_ACBLIB=%BASEAPP%\IMSLIB
rem  *
rem  * EZASOKETS Check EZASOKETS Enabled box or set ES_EZASOKET_SUPPORT=YES
     set EZACONFG=BASESYS1\CONFIG\EZACONFG.dat
rem  *
rem  * Resource Allocation and Performance for SORT and non-Relational Data
rem  set MFJSENGINE=SYNCSORT
     set SORTSCHEME=1
     set SORTSPACE=750000000
     set TMP=C:\SORTWORK
rem  *
     set ES_ALLOC_OVERRIDE=%BASESYS%\CONFIG\CATMAPA1.cfg
rem  * For CORE_ON_ERROR function, ABEND Dump
rem  *     set COBCONFIG_=%BASESYS%\CONFIG\diagnose.cfg
rem  *
rem  * Consolidated Trace Facility (CTF)
rem  *     set MFTRACE_CONFIG=%BASESYS%\CONFIG\ctf.cfg
rem  *     set MFTRACE_LOGS=c:\ctflogs
rem  *
rem  * For Job Restart, ABEND Recovery
     set MF_UCC11=Y
     set ES_JES_RESTART=Y
rem  *
rem  * Set environment for MFBSI (Micro Focus Batch Scheduling Interface)
     set ES_EMP_EXIT_1=mfbsiemx
     set MFBSI_DIR=%BASESYS%\LOGS\%JESSERVERNAME%
     set MFBSIEOP_CMD=ENABLE
     set MFBSIEOP_CSV=ENABLE
     set MFBSIEOP_HTM=ENABLE
     set MFBSIEOP_XML=ENABLE
rem  *
rem  * Set Behavior and Trace Flags for GETJOBDD
rem  *   Position=12345678/12345678
     set JDDFLAGS=nnnWnnnn/YYnnnnnn
rem  *
rem  * If not already set then set the PATH for Micro Focus Directories
     if "%SIMOPATH%" == "Y" goto JUMPPATH
     if "%MIFOSYS1%" == "EDEV" goto JUMPEDEV
     if "%MIFOSYS1%" == "VCBL" goto JUMPVCBL
     if "%MIFOSYS1%" == "ESTU" goto JUMPESTU
     if "%MIFOSYS1%" == "EMFE" goto JUMPEMFE
:JUMPEDEV
     set path=%BASESYS%\LOADLIB;%MIFOEDEV%\bin;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOEDEV%\CPYLIB
     set MIFOBASE=%MIFOEDEV%
     goto JUMPPATH
:JUMPVCBL
     set path=%MIFOVCBL%\bin;%MIFOVCBL%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set MIFOBASE=%MIFOVCBL%
     goto JUMPPATH
:JUMPESTU
     set MIFOBASE=%MIFOESTU%\Base
     set MIFOBIN=%MIFOBASE%\bin
     set path=%BASESYS%\LOADLIB;%MIFOBASE%;%MIFOBIN%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOBASE%\SOURCE
     goto JUMPPATH
:JUMPEMFE
     set MIFOBASE=%MIFOEMFE%\Base
     set MIFOBIN=%MIFOBASE%\bin
     set path=%BASESYS%\LOADLIB;%MIFOBASE%;%MIFOBIN%;%JAVASDK%;%BASEAPP%\JAVA;%PATH%;
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%;%MIFOBASE%\SOURCE
     goto JUMPPATH
rem  *
:JUMPPATH
     set SIMOPATH=Y
rem  *
     set MAINFRAME_FLOATING_POINT=true
     set COBIDY=%BASEAPP%\COBIDY
     set COBPATH=.;%BASEAPP%\LOADLIB;%BASEAPP%\LOADLIB\GNTS;%BASESYS%\LOADLIB;%SimoLIBR%
     set LIBPATH=.;%BASEAPP%\LOADLIB;%BASEAPP%\LOADLIB\GNTS;%BASESYS%\LOADLIB;%SimoLIBR%
     set TXDIR=%BASESYS%\LOADLIB;%MIFOBASE%
     set CobCpy=%BASEAPP%\CobCpy1;%BASEAPP%\CobCpy2;%BASEAPP%\CobCpy6;%SimoLIBR%
rem  *
     set USERCLASS=%BASELIB1%\LOADLIB
     set CLASSPATH=.
     set CLASSPATH=%CLASSPATH%;%JAVABASE%
     set CLASSPATH=%CLASSPATH%;%JAVABASE%\lib
     set CLASSPATH=%CLASSPATH%;\%USERCLASS%\simpacks
     set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\simotcat\WEB-INF\classes
     set CLASSPATH=%CLASSPATH%;C:\APACHETC\apache-tomcat-7.0.52\webapps\simotcat\WEB-INF\classes\simpacks
rem  *
     if "%MIFOSYS1%" == "ESTU" set CLASSPATH=%CLASSPATH%;%MIFOBIN%
     if "%MIFOSYS1%" == "EDEV" set CLASSPATH=%CLASSPATH%;%MIFOEDEV%
     if "%MIFOSYS1%" == "VCBL" set CLASSPATH=%CLASSPATH%;%MIFOVCBL%
     if "%MIFOSYS1%" == "VCBL" set CLASSPATH=%CLASSPATH%;%MIFOVCBL%\bin\mfcobol.jar
rem  *
     set JobStatus=0000
     call SIMONOTE "+ ENV1BASE is returning to caller"


Table of Contents Previous Section Next Section Display and Log Messages

The following is a listing of the contents of the (SIMONOTE.cmd) command file. This command will display a message to the screen and write a "Date/Time stamped" message to a log file.

@echo OFF
rem  * *******************************************************************
rem  *               SIMONOTE.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    - Display message on screen and write to a log file.
rem  * Author  - SimoTime Technologies
rem  *
rem  * This script may be called from other scripts and expects a single
rem  * parameter enclosed in double quotes. The double quotes will be
rem  * removed. Before writing to the log file a date and time stamp
rem  * will be inserted in front of the message text.
rem  *
rem  * Note: The tilde (~) removes leading/trailing double-quotes.
rem  *
if "%SimoNOTE%" == "" set SimoNOTE=c:\SimoLIBR\LOGS\SimoTime.LOG
echo %date% %time% %~1>> %SimoNOTE%
echo %~1

Table of Contents Previous Section Next Section Summary

This document will demonstrate and describe how to establish a set of baseline performance metrics by calculating elapsed time for batch jobs from information extracted from the Micro Focus JES output. 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 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.

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 a check-point list for performance tuning a Micro Focus Server environment for batch processing.

Link to Internet   Link to Server   Explore how to calculate elapsed times for batch jobs using the JES Log files produced by Micro Focus Enterprise Server.

Link to Internet   Link to Server   Explore How to Configure a Micro Focus Server to support Large Files with the physical file sizes exceeding four (4) gigabytes.

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 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 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 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
Performance Tracking and Tuning
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com