PDS to a Windows Folder
Test Case 02, PDS Copy & IEBPTPCH
  Table of Contents  v-16.01.01 - tc02pds3.htm 
  Introduction
  Items Provided with Test Case 02
  Items to be Created by Test Case 02
  Execution Tasks
  1. Unload, ZOS-PDS to Sequential File
  2. FTP Sequential File, ZOS to Windows
  3. Use Sequential File, Populate Folder
  4. Review/Validate Results
  Preparation Tasks
  Create a Directory Structure
  Configure a Batch Server Instance
  Technical Details
  FTP Specifications
  Directives Files, COBOL Compile
  Compile using Mainframe Dialect
  Compile using Micro Focus Dialect
  Set Environment Variables
  Display and Log Messages
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Comments or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

The primary objective of this test case is to describe and demonstrate a process to transfer the application assets from a Mainframe System running ZOS to a Windows System running Micro Focus Enterprise Developer. The process should use existing technologies that are currently available on the mainframe system. Any system changes to the mainframe or the installation of additional software on the mainframe should be avoided.

A secondary objective is to describe and demonstrate how to transfer, convert and maintain the non-relational data structures used by the application. This includes the transfer and conversion of sequential files and VSAM Data Sets.

Note:  It is important to note the intent of Test Case 02 is not simply to do a one-time transfer of the application and data. The intent is to describe and demonstrate a low-cost, repeatable process that may be used as a model for transferring additional applications and data.

FTP is available on the mainframe to be used as the transfer methodology between the Mainframe and a Windows System.

The standard IBM Utility programs are available for data manipulation of the non-relational data structures. Third party products such as FileAid are not available.

After the transfer and conversion the non-relational data structures on the Windows System should conform to the Micro Focus File or Data formats.
 
1. Using FTP as the transfer method describe the process for transferring all the EBCDIC-encoded members in a partitioned data set (PDS) from the mainframe System to ASCII-encoded files in a folder on a Windows System.
2. Using FTP as the transfer method describe the process for transferring an EBCDIC-encoded record sequential file from a Mainframe System to an ASCII-encoded record sequential file that is accessible on a Windows System with Micro Focus Enterprise Server.
2.1. The tasks within the transfer and conversion processes should be scripted and have the capability to execute in an automated and unattended environment.
2.2. The record sequential file may contain packed and/or binary data.
3. Using FTP as the transfer method describe the process for transferring an EBCDIC-encoded VSAM/KSDS from a Mainframe System to an ASCII-encoded Data Set that is accessible on a Windows System with Micro Focus Enterprise Server.

 

Test Case 02 is a series of tasks with the execution divided between the Mainframe System and the Windows System. The 1st task is performed on the Mainframe System and will use the standard IEBPTPCH Utility program to unload members from a PDS into a sequential file that will be transferred via FTP. The 2nd task is performed on the Windows System and will use FTP to get the sequential file from the Mainframe System to the Windows System. The 3rd task is performed on the Windows System and will read the sequential file and write multiple members into a Windows Folder.


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 Items Provided with Test Case 02

Test Case 02 (TC02) includes a suite of application assets that are stored in Partitioned Data Sets (PDS's) on a ZOS Mainframe System.

1. Application Assets
1.1. A suite of Partitioned Data Sets (PDS's) that exist on the Mainframe System.
1.2. Availability of FTP on a Mainframe System and a Windows System for doing file transfers.
1.3. Availability of the standard IBM Utility programs on a Mainframe System. This includes SORT, IEFBR14, IEBGENER, IEBPTPCH, IDCAMS and more.
2. Non-Relational Data Structures
2.1. A Record Sequential File (TESTCASE.TC01.TC01XFER.dat) that was created on the Mainframe System using IDCAMS/REPRO to create an EBCDIC-encoded, Record Sequential file from the original VSAM/KSDS. This was done in order to use FTP in BINARY mode to transfer the file. This RSEQ file may be used to re-create the VSAM/KSDS in the Micro Focus environment.
2.2. A Record Sequential File (TESTCASE.TC01.TC01ZOS2.dat) that is a copy of the Phone List File that was created by the extract step that reads the VSAM/KSDS. This file is to be used as part of a compare process after Text Case 01 is executed in the Micro Focus environment.

 

Table of Contents Previous Section Next Section Items to be Created by Test Case 02

A "Prepare" process (or System Configuration) must be performed to set environment variables, create a directory structure, configure a Micro Focus Server Instance and create the utility programs that will do various data file converts and compares. The following is a list of the tasks.

1. System Preparation
1.1. Create a process to set the necessary Environment Variables.
1.2. Create a directory structure to support a development environment.
1.3. Configure a Micro Focus batch server instance that will run Test Case 01 using ASCII-encoded, non-relational data structures. Describe and demonstrate how this is accomplished.
2. Utility Programs and Processes
2.1. Create a repeatable conversion process for the non-relational data structures used in Test Case 01. This repeatable process should serve as a model for converting other non-relational data structures. The conversion process should run in a development, test and production environment on a ZOS Mainframe or a Linux, UNIX or Windows System using Micro Focus Enterprise Server. Describe and demonstrate how this is accomplished.
2.1.1. Create a batch job using a Windows command file that will convert the EBCDIC-encoded Record Sequential File (TESTCASE.TC01.TC01XFER.dat) to an ASCII-encoded VSAM/KSDS.
2.1.2. Create a batch job using a Windows command file that will convert the EBCDIC-encoded Record Sequential File (TESTCASE.TC01.TC01ZOS2.dat) to an ASCII-encoded Record Sequential File.
2.2. Create a batch job using a JCL Member that will process the ASCII-encoded VSAM/KSDS and create a Record Sequential (RSEQ) phone list file that is sorted using an EBCDIC collating sequence.
2.3. Create a batch job using a Windows Command File that will process the ASCII-encoded VSAM/KSDS (that has packed numeric fields) and create a Line Sequential (LSEQ or ASCII/Text) phone list file that has a Comma-Separated-Values (CSV) record structure.
2.4. Create a batch job using a Windows Command File that will compare the phone list file created on the mainframe with the phone list file created in the Micro Focus environment.
3. Documentation
3.1. Create documentation for the preceding items.
3.2. The documentation should be easily viewed from devices that have browser capability.

 

Table of Contents Previous Section Next Section Execution Tasks

The original test case consisted of one job (a JCL member and a JCL/PROC member) that executed a COBOL program and the SORT utility program. The test case is currently executed on a ZOS Mainframe System that is an EBCDIC-encoded environment.

The test case has been expanded and now includes a second JCL member that is expected to execute on an LUW System using Micro Focus and configured for an ASCII-encoded environment. The JCL member includes a set of sort specifications that will sort the ASCII-encoded output file into and EBCDIC collating sequence.

The original and expanded test case components were migrated to a Windows/7 System with Micro Focus Enterprise Server (this includes both Enterprise Studio and Enterprise Developer). The COBOL program was compiled in the new environment and the JCL was submitted to the Micro Focus Server and executed as expected.

Table of Contents Previous Section Next Section 1. Unload, ZOS-PDS to Sequential File

The following flow chart shows the processing logic for the job that is submitted and executed on the mainframe.

             
TC02ZSJ3
jcl
Submit the Job to unload PDS to RSEQ
   
IEFBR
utll
   
   
TC02RS81
rseq
Step-1: Delete previously created files
   
   
   
   
   
TC02RS80
rseq
   
MFI01.SIMOPROD.JCL
pds
 
 
IEBPTPCH
utl
 
 
TC02RS81
rseq
Step-2: Unload content of PDS to Sequential File
   
TC02RS81
rseq
   
   
SORT
utl
   
   
TC02RS80
rseq
Copy RSEQ81 to RSEQ80
   
   
   
TC02PDS3
In-Stream Specifications
   
   
   
   
   
SYSOUT
spool
Read in-stream specs, write SORT info
   
EOJ
End-Of-Job
 
Overview, Test Case 02, Unload a PDS to a Record Sequential File (RSEQ)

 

The following JCL member (TC02ZSJ3.jcl) is submitted and executed on an IBM Mainframe System running ZOS. The job will use IEBPTPCH to copy all the members in a PDS to a record sequential file.

//TC02ZSJ3 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                 *
//* *******************************************************************
//* Subject: JCL to UNLOAD the content of a PDS to a Sequential File. *
//* Author:  SimoTime Technologies                                    *
//* Date:    January 1, 1998                                          *
//*********************************************************************
//* Step 1 of 3, Delete previously created files.
//*
//PREPARE  EXEC PGM=IEFBR14
//SYSUT2   DD  DSN=MFI01.SIMOTIME.RSEQ81.JCL,
//             DISP=(MOD,DELETE,DELETE),
//             SPACE=(CYL,(5,5),RLSE),
//             UNIT=SYSALLDA,
//             DCB=(RECFM=FB,LRECL=81,BLKSIZE=0)
//SORTOUT   DD DSN=MFI01.SIMOTIME.RSEQ80.JCL,
//             DISP=(MOD,DELETE,DELETE),
//             SPACE=(CYL,(5,5),RLSE),
//             UNIT=SYSALLDA,
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//*
//*********************************************************************
//* Step 2 of 3, Copy PDS Members to a Sequential File.
//*
//S1RSEQ81 EXEC PGM=IEBPTPCH
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  DISP=SHR,DSN=MFI01.SIMOPROD.JCL
//SYSUT2   DD  DSN=MFI01.SIMOTIME.RSEQ81.JCL,
//             DISP=(NEW,CATLG,DELETE),
//             SPACE=(CYL,(5,5),RLSE),
//             UNIT=SYSALLDA,
//             DCB=(RECFM=FB,LRECL=81,BLKSIZE=0)
//SYSIN    DD  *
 PUNCH TYPORG=PO
/*
//*
//*********************************************************************
//* Step 3 of 3, Use SORT to COPY/Format to 80-byte Sequential File.
//*
//STEP0100  EXEC  PGM=SORT
//SYSOUT    DD SYSOUT=*
//SORTIN    DD DSN=MFI01.SIMOTIME.RSEQ81.JCL,DISP=SHR
//SORTOUT   DD DSN=MFI01.SIMOTIME.RSEQ80.JCL,
//             DISP=(NEW,CATLG,DELETE),
//             SPACE=(CYL,(5,5),RLSE),
//             UNIT=SYSALLDA,
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSIN     DD *
 SORT FIELDS=COPY
 INREC FIELDS=(2,80)
/*
//

Table of Contents Previous Section Next Section 2. FTP Sequential File, ZOS to Windows

The following Windows Command file (TC02GT81.cmd) is executed on a Windows System and will use FTP to transfer the Sequential File from the Mainframe System to the Windows System.

@echo OFF
echo * *******************************************************************
echo *          TC02GT81.cmd - a Windows Command File            *
echo *         This program is provided by SimoTime Technologies         *
echo *           (C) Copyright 1987-2019 All Rights Reserved             *
echo *             Web Site URL:   http://www.simotime.com               *
echo *                   e-mail:   helpdesk@simotime.com                 *
echo * *******************************************************************
echo *
rem  * Text    - JCL to UNLOAD the content of a PDS to a Sequential File.
rem  * Author  - SimoTime Technologies
rem  * Date    - December 12, 2003
rem  * Version - 04.01.20
rem  *
     call ..\ENV1BASE
     set CmdName=TC02GT81
     call SimoNOTE "*-----------------------------------------------------*%CmdName%"
     call SimoNOTE "* Starting CmdName %CmdName%"
     set FTPLIST=%BASELIB1%\PARMLIB\TC02GET3.ctl
     call SimoNOTE "* Continue FTPXFER %FTPLIST%"
rem  *
     ftp -s:%FTPLIST% CSIMVS.MICROFOCUS.COM
rem  *
     call SimoNOTE "* Validate FTPXFER %FTPLIST%"
rem  *
     call SimoNOTE "* Finished CmdName %CmdName%"
     if not "%1" == "nopause" pause

Explore the content of the TC02GET3 that is referenced when the FTP program is executed. This member contains the script that is used to define the FTP processing steps.

Table of Contents Previous Section Next Section 3. Use Sequential File, Populate Folder

This job (a Windows Command File) is not part of the baseline for Test Case 02. This job was created as Task 03 in order to describe and demonstrate how to expand the PDS Members in a single sequential file (created by IEBPTPCH) into multiple PDS members in a Windows folder (or directory).

The following Windows Command File (TC02EXW3.cmd) is used to read the UNWRAPD1 file (MFI01.SIMOTIME.RSEQ81.JCL.txt) and create multiple files (or PDS Members) in a Windows folder.

@echo OFF
rem  * *******************************************************************
rem  *               TC02EXW3.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   - Read an IEBPTPCH sequential file and write separate files.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  *
rem  *                     ************
rem  *                     * TC02EXW3 *
rem  *                     ********cmd*
rem  *                          *
rem  *                          *
rem  *    ************     ************       ************
rem  *    * UNWRAPD1 ******* UNWRAPC3 ********* UNWRAPD2 *
rem  *    * Note: 01 *     *          *   *   * Note: 02 *
rem  *    *******lseq*     ********cbl*   *   *******lseq*
rem  *                          *         *
rem  *                          *         *   ************
rem  *                          *         ***** UNWRAPD3 *
rem  *                          *             * Note: 03 *
rem  *                          *             *******lseq*
rem  *                     ************
rem  *                     *   EOJ    *
rem  *                     ************
rem  *
rem  *    Note 01: UNWRAPD1 is an ASCII/Text file containing multiple
rem  *             source members. Each source member is preceded by a
rem  *             -PUNCH statement.
rem  *    Note 02: UNWRAPD2 is an ASCII/Text file containing a simple list
rem  *             of the -PUNCH statements.
rem  *    Note 03: UNWRAPD3 may be multiple source members that are
rem  *             dynamically allocated based on the list of PUNCH
rem  *             statements that are identified in UNWRAPD2.
rem  * *******************************************************************
rem  * Step   1   Set the Environment...
rem  *
     set CmdName=TC02EXW3
     call ..\Env1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
:DeleteQSAM
     call SimoNOTE "StepInfo Delete previously created file"
     set UNWRAPD1=%BaseLib1%\DATA\FTP1\MFI01.SIMOTIME.RSEQ81.JCL.txt
     set UNWRAPD2=%BaseLib1%\DATA\WRK1\SIMOTIME.CODE.IEBPTPCH.txt
     set UNIPATH=%BaseLib1%\DATA\Wrk2
rem  *
rem  * *******************************************************************
rem  * Step   2   Edit input, create new output files...
rem  *
     call SimoNOTE "StepInfo Execute the UNWRAPC3 Program"
     run UNWRAPC3
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
     call SimoNOTE "DataTake %UNWRAPD1%"
     call SimoNOTE "DataMake %UNWRAPD2%"
     call SimoNOTE "PathMake %UNIPATH%"
rem  *
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section 4. Review/Validate Results

The following shows the content of the SYSLOG file that is produced as a result of an "EQUAL" compare.

*** 2013/09/13 12:25:33:51 ********************************************************************************
*** 2013/09/13 12:25:33:52 * TC02CPC3 Compare LSEQ, max=1024 with SYSUT3 v13.09.12   helpdesk@simotime.com
*** 2013/09/13 12:25:33:52 * TC02CPC3 This Data File Compare Member was generated by SimoTime Technologies
*** 2013/09/13 12:25:33:52 ********************************************************************************
*** 2013/09/13 12:25:33:52 Starting  - Compare LSEQ, max=1024 with SYSUT3          http://www.SimoTime.com
*** 2013/09/13 12:25:33:52 *******************************************************************************
*** 2013/09/13 12:25:33:52 Conclude  - Compare LSEQ, max=1024 with SYSUT3
*** 2013/09/13 12:25:33:52 000000122 - Record count for SYSUT1
*** 2013/09/13 12:25:33:52 000000122 - Record count for SYSUT2
*** 2013/09/13 12:25:33:52 000000000 - NOT Equal count for compare is ZERO
*** 2013/09/13 12:25:33:52 000000122 - Number of matching record pairs for Compare Task
*** 2013/09/13 12:25:33:52 000000000 - NOT Equal count for compact is ZERO
*** 2013/09/13 12:25:33:52 Finished  - Compare LSEQ, max=1024 with SYSUT3          http://www.SimoTime.com

 

The following Windows Command File (TC02CPW1.cmd) is used to compare the list file produced by the TC02EXW3 command with a directory listing produced by the Windows "DIR" command. Both files will be sorted prior to doing the record-by-record compare.

@echo OFF
rem  * ************************************************************************
rem  *                 TC02CPW1.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   - Compare two Data Files and track record inserts and deletes.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * *******************************************************************
rem  * Step 1 of 3, Set Environment, Delete any previously created file.
rem  *
     set CmdName=TC02CPW1
     call ..\Env1BASE
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting JobName %CmdName%"
     call SimoNOTE "InfoNote Set the Environment"
     set SYSLOG=%BaseLib1%\LOGS\TESTCASE.TC02.TC02CPW1.dat
     run SYSLOGC8
     set SYSOUT=%BaseLib1%\DATA\SPOOL\TESTCASE.TC02.TC02SP09.txt
     if exist %SYSOUT% erase %SYSOUT%
     set SYSUT1=%BaseLib1%\DATA\TXT1\TESTCASE.TC02SORT.DLISTING.txt
     set SYSUT2=%BaseLib1%\DATA\TXT1\TESTCASE.TC02SORT.IEBPTPCH.txt
     if exist %SYSUT1% erase %SYSUT1%
     if exist %SYSUT2% erase %SYSUT2%
rem  *
rem  * *******************************************************************
rem  * Step 2 of 3, Sort the two files to be compared.
rem  *
     call SimoNOTE "InfoNote JobStep Sort the two files to be compared"
     set SORTIN=%BaseLib1%\DATA\APPL\TESTCASE.TC02.DLISTING.txt
rem  * Create and sort a directory listing...
     dir /on /b %BaseLib1%\DATA\WRK2\*.*>%SORTIN%
     MFSORT SORT FIELDS=(1,8,CH,A) use %SORTIN% ORG LS give %SYSUT1%
rem  * Sort the file created by the IEBPTPCH program...
     set SORTIN=%BaseLib1%\DATA\WRK1\TESTCASE.TC02.IEBPTPCH.txt
     MFSORT SORT FIELDS=(15,8,CH,A) use %SORTIN% ORG LS give %SYSUT2%
rem  *
rem  * *******************************************************************
rem  * Step 3 of 3, Compare two non-relational Line Sequential Files
rem  *              with 1024-byte-maximum-LRECL, ASCII-encoded records.
rem  *
     call SimoNOTE "Identify JobStep Do the File Compare"
     set SYSUT3=%BaseLib1%\PARMLIB\TC02CP03.ctl
     run TC02CPC3
     if not "%ERRORLEVEL%" == "0" set JobStatus=0010
     if not "%JobStatus%" == "0000" goto EojNok
rem  *
rem  * *******************************************************************
rem  *
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     set SYSLOGVR=%SYSLOG%
     set SYSLOGLS=%BASELIB1%\LOGS\TESTCASE.TC02.TC02CPW1.txt
     if exist %SYSLOGLS% erase %SYSLOGLS%
     run SYSLOGC1
     call SimoNOTE "Conclude SysOut is %SYSOUT%"
     call SimoNOTE "Conclude SysLog is %SYSLOG%"
     call SimoNOTE "Conclude TxtLog is %SYSLOGLS%"
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Preparation Tasks

A Data Migration effort presents a user with a number of choices. For non-relational data structures the decision process will leverage a variety of skills and a broad knowledge base that may be acquired through training, experience, research and assistance.

Test Case 02 (TC02) will focus on the tasks involved in transferring PDS Members from a Mainframe System to a Linux, UNIX or Windows System with Micro Focus Enterprise Server/Developer.

Table of Contents Previous Section Next Section Create a Directory Structure

Test Case 02 will focus on the development environment.

Link to Internet   Link to Server   Explore a Directory Structure for a Development Environment that supports the execution of business applications using Micro Focus Enterprise Server.

Table of Contents Previous Section Next Section Configure a Batch Server Instance

The purpose of this section is to describe how to configure a JES sub-system (or Server Instance) that will run under Micro Focus Enterprise Server. To run all the jobs in Test Case 02 it will be necessary to populate the catalog with a minimum number of Partitioned Data Sets (or PDS's).

Link to Internet   Link to Server   Explore how to Configure a Batch JES sub-system (or Server Instance) that will run under Micro Focus Enterprise Server and execute batch jobs using JCL.

 

Table of Contents Previous Section Next Section Technical Details

This section contains information about items that are used by the mainline Job Scripts and/or Programs.

Table of Contents Previous Section Next Section FTP Specifications

The following member (TC02GET3.ctl) contains the FTP specifications to download a sequential file from the Mainframe System to a Windows System.

UserID
Password
CD ..
PWD
ASCII
GET  MFI01.SIMOTIME.RSEQ81.JCL  D:\TC02\DATA\FTP1\MFI01.SIMOTIME.RSEQ81.JCL.txt
QUIT

Note:  The Specifications or control information is stored in the PARMLIB Partitioned-Data-Set (PDS).

Table of Contents Previous Section Next Section Directives Files, COBOL Compile

This section will describe the directives files that are used when compiling the COBOL programs that are used in Test Case 02.

Table of Contents Previous Section Next Section Compile using Mainframe Dialect

The following member (OS390AscCBLBAT.dir) is the directives file that is used to compile the COBOL programs that conform to the OS390 dialect. The compiled programs may be executed using JCL or a Windows Command line.

DIALECT"OS390"
CHARSET"ASCII"
ASSIGN"EXTERNAL"
IDXFORMAT"8"
IBMCOMP
NOTRUNC
HOSTNUMMOVE
HOSTNUMCOMPARE
NOSIGN-FIXUP
HOSTARITHMETIC
CHECKNUM
NOOPTIONAL-FILE
NOHOSTFD
NOQUERY
SSRANGE
COBIDY
ANIM
outdd"SYSOUT 121 L"
SHARE-OUTDD
DATE
TIME
DATAMAP
settings
list()
noform

Table of Contents Previous Section Next Section Compile using Micro Focus Dialect

The following member (MiFoAscIBMcomp.dir) is the directives file that is used to compile the COBOL programs that conform to the Micro Focus dialect. The compiled programs are typically executed using a Windows Command line.

DIALECT"MF"
CHARSET"ASCII"
ASSIGN"EXTERNAL"
IDXFORMAT"8"
IBMCOMP
NOTRUNC
RTNCODE-SIZE"2"
NOOPTIONAL-FILE
NOHOSTFD
NOQUERY
COBIDY
NOANIM
outdd"SYSOUT 121 L"
SHARE-OUTDD
DATAMAP
settings
list()
noform

Table of Contents Previous Section Next Section Set Environment Variables

The following is a Windows CMD File (ENV1BASE.cmd) that is called to set the common or shared environment variables for a development environment that will support the execution of Test Case 02.

@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 Windows CMD File (SIMONOTE.cmd) that is called to display a user message to the screen and post the message to a log file. This provides a consistent method for viewing a jobs progress during execution or reviewing the job results some time after the job has been executed.

@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

The primary objective of this test case is to describe and demonstrate a process to transfer the application assets from a Mainframe System running ZOS to a Windows System running Micro Focus Enterprise Developer. 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 How to Generate a Data File Convert Program using simple specification statements in a Process Control File (PCF). This link to the User Guide includes the information necessary to create a Process Control File and generate the COBOL programs that will do the actual data file conversion. The User Guide contains a list of the PCF statements that are used for the data file convert process.

Link to Internet   Link to Server   Explore How to Generate a Data File Compare, Validate or Hex-Dump Program using simple specification statements in a Process Control File (PCF). This link to the User Guide includes the information necessary to create a Process Control File and generate the COBOL programs that will do a data file compare, accumulate summary totals with a record count or produce a Hex-Dump of records in a VSAM, KSDS based on a list of user-defined keys. The User Guide contains a list of the PCF statements that are used for the data file compare, validate or dump process.

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 evolution of application software from conception to retirement. This document includes an overview of how to setup a Development, Test and Production environment on a Windows System using 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 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 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
Test Case 02, PDS Copy using IEBPTPCH
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com