Problem:
This is a demo program that shows how to share files between different instances of the same class.
Many people are confused as to where file definitions should reside in an OO COBOL program.
Resolution:
=========================================================== Micro Focus
N E T E X P R E S S
=========================================================== PROJECT OOFILESDEMO
===============
DATE CREATED: 10-08-2007
=============
BUILD W/RELEASE: Tested with V5.0 with Websync 03 applied
================
TABLE OF CONTENTS
=================
INTRODUCTION
SOURCE FILES
REQUIREMENTS
OPERATION
REFERENCES
INTRODUCTION
============
This sample project contains 2 programs and demonstrates how to share file handling between one or more object instances.
It will define the SELECT and FD statements in the object instance and will then perform various I-O on the indexed file created.
SOURCE FILES:
=============
Program Files
Description
=============================================
CALLFILES.CBL: This program is the main program
INSTANCEFILES.CBL: This is the object program which is invoked by CALLFILES
Copy Files:
REQUIREMENTS:
=============
If you run this more than once then you need to delete the indexed files created
OPERATION:
==========
Open up project OOFileDemo.app.
From the project menu of the IDE select buld all.
Select single step dbugging so that you can see how it works.