This chapter describes differences in file handling between COBOL Workbench and Mainframe Express that might require you to make alterations in existing applications that you are migrating, or to change familiar methods of working.
The biggest difference in file handling is the use of catalogs in Mainframe Express. These will be familiar to mainframe users. In turning a COBOL Workbench application into a Mainframe Express project, you can use the Mfextmap Migration Tool (see below) to populate your catalog.
You don't need the catalog if your application only uses IMS or SQL databases or files managed by CICS.
Apart from that, file handling is unchanged, but there are differences in the tools available. These changes are given in the next section.
This section advises on what to use where a COBOL Workbench feature is not in Mainframe Express or has changed. Where we believe you can continue using a COBOL Workbench feature without change, it is not mentioned. This book does not cover enhancements.
Facility to use an environment variable to map a COBOL filename to a physical file on disk.
Included, but the recommended method is to use the catalog to perform DD mappings.
Utility to monitor running of Fileshare applications.
Utility to transfer files between the PC and the mainframe
MFA Drag & Drop does a similar job to File Transfer Aid. You can upload and download files, and have them automatically converted between character sets. You can also use SourceConnect and DataConnect to have files participate fully in your application while leaving them residing on the mainframe.
You need the separate Micro Focus product Mainframe Access (MFA) running on the mainframe to use these facilities.
File to correlate DD names used in COBOL programs to their associated PC filenames.
Usable for backward compatibility.
See the chapter Your Mfextmap File.
Create entries in the project catalog (using the Allocate or Add Existing Dataset function or the MFJAMS utility) for the datasets used by the project and ensure JCL DD or TSO ALLOCATE statements are used before the program is invoked.
Setting in extfh.cfg configuration file to determine whether locks set within one run unit are recognized by other programs within that same run unit.
Included, with the following change - the default is now ON. The format of this entry is:
|RUNITLOCKDETECT=ON/OFF||ON||[xfh-default]||Locks are recognized by other programs in the same run unit|
Utility to generate trace information on file handling, which can be used by Micro Focus to help in problem determination.
Included, with the following change. Control of XFHTRACE is now done not with a separate configuration file but via the standard file handling configuration file, extfh.cfg. The entries to control XFHTRACE are:
|TRACE=ON/OFF||OFF||The tag for the file, or [xfh-default] to affect all files.||Turns tracing on or off|
|TRACEFILE=filename||xfhtrace.xfh||[xfh-default]||File to contain the trace information.|
Copyright © 2001 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.