The SORT Program
Create an Empty KSDS Cluster
  Table of Contents  v-16.01.01 srtksd01.htm 
  Introduction
  CMD Files, Micro Focus SORT
  Create KSDS, CMD Parameters
  SRTKSDW1, Command File
  SYSOUT for SORT
  Create KSDS, Parameter File
  SRTKSDW2, Command File
  Control File for SORT Specifications
  SYSOUT for SORT
  JCL Members
  Create KSDS using IDCAMS
  KSDCRTJ1, JCL Member
  SYSPRINT for IDCAMS
  Create KSDS using RECORG
  KSDCRTJ8, JCL Member
  Special Handling
  Set the Environment
  Display and Log Messages
  Technical Details
  JCL Conversion Considerations
  JES Utility Programs
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

This suite of programs will describe how to use the Micro Focus SORT program and a Windows command file to create an empty Key-Sequenced-Data-Set (or VSAM, KSDS>. This function is similar to the DELETE/DEFINE function of IDCAMS. Two sample JCL members are included that describe how to create a VSAM cluster using JCL on a Mainframe System with ZOS or a Linux, UNIX or Windows System with Micro Focus.

Note: Micro Focus provides support for a Job Entry System (JES) that uses Job Control Language (JCL) along with a set of utility programs for managing a batch environment that accesses relational data tables, traditional file structures and VSAM data sets.
Therefore, it is not necessary to convert JCL to another job scripting language (i.e. Windows command files) when migrating a batch application from a Mainframe Systems to a Windows System using Micro Focus.
However, if you have a utilitarian program that you want to run outside a server that is configured for mainframe sub-system support this would be a viable approach for creating an empty KSDS.

Refer to the Technical Details section of this document for details about things to consider for a JCL conversion and JES replacement.

The Windows Command Files, Control Files and documentation are provided in a single zipped file called SRTKSD01.ZIP. This zipped file may be downloaded from the SimoTime Web site. In the Windows environment the files and source member names have file extensions.


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

Table of Contents Previous Section Next Section CMD Files, Micro Focus SORT

This section provides a suite of Windows Command Files that may be used to execute the Micro Focus SORT program in a Windows environment to create an empty Key-Sequenced-Data-Set (KSDS).

Table of Contents Previous Section Next Section Create KSDS, CMD Parameters

This example will create an empty KSDS. The SORT specifications are included as command line parameters.

Table of Contents Previous Section Next Section SRTKSDW1, Command File

The following Windows Command File (SRTKSDW1.cmd) is used to create the empty Key-Sequenced-Data-Set (KSDS).

@echo OFF
rem  * *******************************************************************
rem  *               SRTKSDW1.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   - Use MFSORT, create an Empty Key-Sequenced-Data-Set (KSDS)
rem  * Author - SimoTime Technologies
rem  * Date   - January 01, 1989
rem  *
rem  * This example uses the Micro Focus SORT Program to create an
rem  * empty KSDS Cluster.
rem  *
rem  * Step 1, Set the environment
rem  * Step 2, Execute the SORT program.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Set the global environment variables...
rem  *
     set CmdName=SRTKSDW1
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     set SYSOUTSAVE=%SYSOUT%
     set SYSOUTUSER=%BaseLib1%\LOGS\SYSOUT_%CMDNAME%.txt
     set SYSOUT=%SYSOUTUSER%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 2, Create an Empty KSDS Cluster...
rem  *
     call SimoNOTE "Identify Create a VSAM, KSDS Cluster"
     set SORTIN=NUL:
     set SORTOUT=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat
     if  exist %SORTOUT% erase %SORTOUT%
     MFSORT SORT FIELDS=COPY use %SORTIN% RECORD F,256 ORG LS give %SORTOUT% RECORD F,80 ORG IX KEY (1,6,P)
     if ERRORLEVEL = 1 set JobStatus=0020
     set SYSOUT=%SYSOUTSAVE%
     if not "%JobStatus%" == "0000" goto :EOJNOK
     if exist %SORTOUT% goto :EOJAOK
        call SimoNOTE "ABENDING JobStep EOJNOK, Sort Failure..."
        goto :EOJNOK
rem  *
rem  * *******************************************************************
rem  * End of Job Processing...
rem  *
:EOJNOK
     call SimoNOTE "ABENDING JobName %CmdName%, JobStatus %JobStatus%"
     call SimoNOTE "ABENDING Message JobStatus %JobStatus%"
     goto :EOJEND
:EOJAOK
     if exist %SORTOUT% call SimoNOTE "Produced DataSet %SORTOUT%"
     call SimoNOTE "Finished JobName %CmdName%"
:EOJEND
     call SimoNOTE "Conclude SYSOUT is %SYSOUTUSER%"
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section SYSOUT for SORT

The following is the SYSOUT file that is produced by executing the SORT program.

          Micro Focus MFJSORT Utility 3.0.00

          take c:\SimoSAM1\DEVL\PARMLIB\SRTKSD80.ctl use NUL: RECORD F,256 ORG LS give c:\
          * Sort using a User-Defined KSDS Output
          * ..:....1....:....2....:....3....:....4....:....5....:....6....:....7.
           SORT FIELDS=COPY
SORT204I: ********************* Sort Statistics *********************
SORT205I: INPUT  file 'NUL:'
                                 0 record(s) input.
                                 0 record(s) used.
SORT206I: OUTPUT file 'c:\SimoSAM1\DEVL\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat'
                                 0 record(s) used.
                                 0 record(s) output.
SORT399I: End of Micro Focus MFJSORT Utility.

 

Table of Contents Previous Section Next Section Create KSDS, Parameter File

This example will create an empty KSDS. The SORT specifications are included in a separate parameter file.

Table of Contents Previous Section Next Section SRTKSDW2, Command File

The following Windows Command File (SRTKSDW2.cmd) is used to create the empty Key-Sequenced-Data-Set (KSDS).

@echo OFF
rem  * *******************************************************************
rem  *               SRTKSDW2.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   - Use MFSORT, create an Empty Key-Sequenced-Data-Set (KSDS)
rem  * Author - SimoTime Technologies
rem  * Date   - January 01, 1989
rem  *
rem  * This example uses the Micro Focus SORT Program to create an
rem  * empty KSDS Cluster.
rem  *
rem  * Step 1, Set the environment
rem  * Step 2, Execute the SORT program.
rem  *
rem  * *******************************************************************
rem  * Step 1 of 2, Set the global environment variables...
rem  *
     set CmdName=SRTKSDW2
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%, User is %USERNAME%"
     set SYSOUTSAVE=%SYSOUT%
     set SYSOUTUSER=%BaseLib1%\LOGS\SYSOUT_%CMDNAME%.txt
     set SYSOUT=%SYSOUTUSER%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 2, Create an Empty KSDS Cluster...
rem  *
     call SimoNOTE "Identify Create a VSAM, KSDS Cluster"
     set SYSIN=%BaseLib1%\PARMLIB\SRTKSDX2.ctl
     set SORTIN=NUL:
     set SORTOUT=%BaseLib1%\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat
     if  exist %SORTOUT% erase %SORTOUT%
     MFSORT take %SYSIN%
     if ERRORLEVEL = 1 set JobStatus=0020
     set SYSOUT=%SYSOUTSAVE%
     if not "%JobStatus%" == "0000" goto :EOJNOK
     if exist %SORTOUT% goto :EOJAOK
        call SimoNOTE "ABENDING JobStep EOJNOK, Sort Failure..."
        goto :EOJNOK
rem  *
rem  * *******************************************************************
rem  * End of Job Processing...
rem  *
:EOJNOK
     call SimoNOTE "ABENDING JobName %CmdName%, JobStatus %JobStatus%"
     call SimoNOTE "ABENDING Message JobStatus %JobStatus%"
     goto :EOJEND
:EOJAOK
     if exist %SORTOUT% call SimoNOTE "Produced DataSet %SORTOUT%"
     call SimoNOTE "Finished JobName %CmdName%"
:EOJEND
     call SimoNOTE "Conclude SYSOUT is %SYSOUTUSER%"
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Control File for SORT Specifications

The following file (SRTKSDX2.ctl) is the parameter file (or control file) that contains the sort specifications.

* Sort using a User-Defined KSDS Output
* ..:....1....:....2....:....3....:....4....:....5....:....6....:....7.
 SORT FIELDS=COPY
  use NUL: RECORD F,256 ORG LS
  give C:\SIMOSAM1\DEVL\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat RECORD F,80 ORG IX KEY (1,6,P)
* End of User Specifications
*

Table of Contents Previous Section Next Section SYSOUT for SORT

The following is the SYSOUT file that is produced by executing the SORT program.

          Micro Focus MFJSORT Utility 3.0.00

          take c:\SimoSAM1\DEVL\PARMLIB\SRTKSDX2.ctl
          * Sort using a User-Defined KSDS Output
          * ..:....1....:....2....:....3....:....4....:....5....:....6....:....7.
           SORT FIELDS=COPY
            use NUL: RECORD F,256 ORG LS
            give C:\SIMOSAM1\DEVL\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat RECORD F,80 ORG IX
          * End of User Specifications
          *
SORT204I: ********************* Sort Statistics *********************
SORT205I: INPUT  file 'NUL:'
                                 0 record(s) input.
                                 0 record(s) used.
SORT206I: OUTPUT file 'C:\SIMOSAM1\DEVL\DATA\APPL\SIMOTIME.DATA.SRTKSD80.dat'
                                 0 record(s) used.
                                 0 record(s) output.
SORT399I: End of Micro Focus MFJSORT Utility.

 

Table of Contents Previous Section Next Section JCL Members

This section provides a suite of JCL Members that may be used to create an empty VSAM Key-Sequenced-Data-Set (KSDS).

Table of Contents Previous Section Next Section Create KSDS using IDCAMS

This example will create an empty KSDS. The IDCAMS specifications are included as in-stream data in the JCL Member.

Note:  This is the commonly used method for creating an empty VSAM Cluster.

Table of Contents Previous Section Next Section KSDCRTJ1, JCL Member

The following JCL Member (KSDCRTJ1.jcl) is used to create the empty Key-Sequenced-Data-Set (KSDS).

//KSDCRTJ1 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 6 bytes
//* characters starting at the first position in the record.
//* The record length is 80 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   1   This is a single step job.
//*
//VKSDCRT1 EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
 DEFINE    CLUSTER  (NAME(SIMOTIME.DATA.VKSD0080)             -
                    TRACKS(45 15)                             -
                    RECORDSIZE(80 80)                         -
                    FREESPACE(10 15)                          -
                    KEYS(6 0)                                 -
                    INDEXED)                                  -
           DATA     (NAME(SIMOTIME.DATA.VKSD0080.DAT)         -
                    CISZ(8192))                               -
           INDEX    (NAME(SIMOTIME.DATA.VKSD0080.IDX))
/*
//*

Table of Contents Previous Section Next Section SYSPRINT for IDCAMS

The following is the SYSPRINT file that is produced by executing the IDCAMS program.

      Micro Focus  MFJAMS Utility Version SEE60.02.00.000_20110524
      Copyright (C) Micro Focus IP Development Limited 1997-2011. All rights reserved.


                 DEFINE    CLUSTER  (NAME(SIMOTIME.DATA.VKSD0080)             -
                                    TRACKS(45 15)                             -
                                    RECORDSIZE(80 80)                         -
                                    FREESPACE(10 15)                          -
                                    KEYS(6 0)                                 -
                                    INDEXED)                                  -
                           DATA     (NAME(SIMOTIME.DATA.VKSD0080.DAT)         -
                                    CISZ(8192))                               -
                           INDEX    (NAME(SIMOTIME.DATA.VKSD0080.IDX))
 JCLAM0113I(00) - ENTRYNAME DEFINED [SIMOTIME.DATA.VKSD0080]
 JCLAM0113I(00) - ENTRYNAME DEFINED [SIMOTIME.DATA.VKSD0080.DAT]
 JCLAM0113I(00) - ENTRYNAME DEFINED [SIMOTIME.DATA.VKSD0080.IDX]  

 

Table of Contents Previous Section Next Section Create KSDS using RECORG

This example will create an empty KSDS. This approach uses the information from the DD statement to create an empty VSAM data set.

Table of Contents Previous Section Next Section KSDCRTJ8, JCL Member

The following JCL Member (KSDCRTJ8.jcl) is used to create the empty Key-Sequenced-Data-Set (KSDS).

//KSDCRTJ8 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 from DD statement.
//* Author - SimoTime Technologies
//* Date   - January 24, 1996
//*
//* This job will create a VSAM, KSDS data set. The key is 6 bytes
//* characters starting at the first position in the record.
//* The record length is 80 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   1   This is a single step job.
//*
//VKSDCRT1 EXEC PGM=IEFBR14
//SYSLOG   DD  DSN=SIMOTIME.DATA80S2.VKSD0080,
//             DISP=(NEW,CATLG,KEEP),
//             STORCLAS=MFI,
//             SPACE=(TRK,5),
//             RECORG=KS,LRECL=80,DSORG=VSAM,KEYLEN=6,KEYOFF=0
//SYSOUT   DD  SYSOUT=*
//


Table of Contents Previous Section Next Section Special Handling

This section provides additional detail about the commonly used or shared routines that set the environment and log job messages.

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.

@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 Technical Details

When migrating a batch application from a Mainframe System to a Linux, UNIX or Windows System our first choice would be to stick with JCL for the following reasons. Depending on the customers use of JCL this could be a major conversion.

Table of Contents Previous Section Next Section JCL Conversion Considerations

Possible items that need to be considered are as follows.

1. GDG usage, conversion and support.
2. The usage, conversion and support of Concatenated Data Sets.
3. In-stream Data
4. Parameter substitution
5. PDS usage and support
6. JCL PROC’s and INCLUDES
7. Overrides in PROC’s
8. Use of Spooling (SYSOUT=*), etc…
9. Use of INTRDR
10. Use of EXEC CICS SPOOL
11. Use of conditional processing
12. Parameter passing using SYSPARM and/or SYSIN

 

Table of Contents Previous Section Next Section JES Utility Programs

In addition to a JCL conversion it is important to consider the following, “Micro Focus provides a JES Sub-System with spooling, catalog, utilities, batch resource allocation and management.” To manage a system the loss of the JES functionality may be an even bigger challenge. The JES spooling information is quite often used as an audit trail and information may be extracted for charge backs and billing purposes. This is a much bigger task than converting JCL members to another scripting language.

The Micro Focus JES Mainframe Sub System supplies the following utility programs.

1. DFSORT,ICEMAN,SYNCSORT and SORT, to perform sort/merge operations
2. DSNTEP2, to execute any SQL statement that can be executed dynamically
3. IDCAMS, to manage VSAM data sets among others
4. IEBCOMPR to compare two sequential or partitioned data sets
5. IEBCOPY, to copy or merge partitioned data sets
6. IEBGENER, to copy sequential data sets
7. IEBUPDTE, to create or modify sequential or partitioned data sets
8. IEFBR14, to provide a dummy program facility by simply returning to the caller
9. IKJEFT01, IKJEFT1A, IKJEFT1B to submit TSO commands in batch mode
10. IRXJCL, to run a REXX exec in MVS batch mode
11. IEBDG, to create test data
12. and more…

 

Table of Contents Previous Section Next Section Summary

The purpose of this suite of programs is to provide examples for sorting files in a Mainframe environment or a Windows environment using Micro Focus technologies. This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers.

In the world of programming there are many ways to solve a problem. This documentation and software were developed and tested on systems that are configured for a SIMOTIME environment based on the hardware, operating systems, user requirements and security requirements. Therefore, adjustments may be needed to execute the jobs and programs when transferred to a system of a different architecture or configuration.

SIMOTIME Services has experience in moving or sharing data or application processing across a variety of systems. For additional information about SIMOTIME Services or Technologies please contact us using the information in the  Contact or Feedback  section of this document.

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

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

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

Table of Contents Previous Section Next Section Downloads and Links

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

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

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

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

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

Link to Internet   Link to Server   Explore how to sort ASCII-encoded Files into an EBCDIC collating sequence or EBCDIC-encoded files into an ASCII collating sequence using the alternate collating or ALTSEQ function of the Mainframe SORT or the ALTSEQ function of the Micro Focus SORT.

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

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

Table of Contents Previous Section Next Section Internet Access Required

The following links will require an internet connect.

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

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

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

Table of Contents Previous Section Next Section Glossary of Terms

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

Table of Contents Previous Section Next Section Comments or Feedback

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

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

 

We appreciate hearing from you.

Table of Contents Previous Section Next Section Company Overview

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

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

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

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


Return-to-Top
Create a VSAM, KSDS using the SORT Program
Copyright © 1987-2025
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com