Net Cob Win App Distribution Guide
Net Cob Win App Distribution Guide
Distribution Guide
First Edition: February 2009
The contents of this guide may be revised without prior notice. No part of this document may be
reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Fujitsu Limited.
Copyright 2009 Fujitsu Limited.
Preface
Fujitsu NetCOBOL provides you with the environment and tools to create
sophisticated applications. While developing these applications, all of the supporting
code and programs are available to you as part of the installed NetCOBOL product.
When it is time to put your applications on other user's machines, which may not
have NetCOBOL installed, it is necessary to install the appropriate runtime routines
on those machines.
This manual describes the Distribution of Applications, runtimes and merge modules
available to you, and explains how to use them.
Audience
COBOL programmers responsible for building and delivering applications to users
who do not have Fujitsu NetCOBOL installed on their machines.
Trademarks
InstallShield is a registered trademark or trademark of Macrovision Corporation, or
other Macrovision companies, in the United States of America and/or other countries.
Microsoft, Active X, Visual Basic, Windows, Windows Vista, and Windows 2000 are
either trademarks or registered trademarks of Microsoft Corporation in the United
States and/or other countries.
NetCOBOL is a trademark or registered trademark of Fujitsu Limited or its
subsidiaries in the United States or other countries or in both.
Other company names and product names are trademarks or registered trademarks
of individual companies.
The form acts as an application creation window. Italics are occasionally used for emphasis.
“PowerCOBOL User’s Guide” References to other publications or chapters within
See Chapter 6, “Creating an Executable publications are in quotation marks.
Program.”
WRITE report-record
However, you are probably aware that a lot more is going to happen when that
statement is executed than a simple WRITE to a file. Within PowerFORM, you create
all the fixed text, specify different fonts for different fields, add graphical elements
such as lines or boxes and specify where particular data should be printed on the
page. When you execute a WRITE, the COBOL system needs to pass your data to
special PowerFORM code that knows how to combine that data with the definition of
the print form that you created using the PowerFORM utility. This special
PowerFORM code is what we refer to as the PowerFORM Runtime – it is the code
required to make your PowerFORM programs work at execution time.
MOVE A TO B
This program still has to be loaded into the Microsoft Windows operating system,
initialized appropriately, started and stopped in the correct manner. It may also have
to carry some other code to respond to messages from the Windows system – even
though the programmer is making no attempt to receive or respond to those
messages. For a single program, it might be reasonable to build all that code into
one object module. However, when you start building 20 or 30 such programs
together, it makes more sense to have all the load, initialize, start, stop etc. code
built into common modules that can be called from each program. So common
environment-related tasks are one reason a COBOL runtime makes sense.
Another reason is that even a simple statement like MOVE A TO B can involve a lot of
work for the COBOL compiler – particularly if A and B have different data
descriptions. There are hundreds of ways each of A and B can be described and
thousands of possible combinations of source and target data types (for example
move a PIC 99V99 COMP item to a PIC 9(10).9 item, or to a PIC 9V9(5) item or ...).
Often it is better to have the compiler invoke common, highly tested routines to
make the transformations, than have the compiler attempt to generate specific code
for every possible move.
Thus, the best way of giving you compact, highly reliable, execution-time support for
your COBOL code is to provide a runtime system that implements all the functions
required by today's COBOL programs.
Chapter 1. Introduction 9
"/s" is the "silent mode" installation option which suppresses the Setup.exe
initialization window. To suppress all dialogs you need to combine the /s option with
the /v option.
"/v" is the option to pass options from the InstallShield program to the MSI
installation program. Some relevant MSI options are documented below. Note that
the "/" preceding the MSI option has to be provided, so to pass the "/qn" option you
enter "/v/qn" in the command line. Also, if the MSI option contains spaces, it must
be enclosed in quotes.
<msi option> Is one of the MSI installation program options. These are documented
fully in Microsoft Installer documentation. Here is a brief summary of the options.
qn - No user interface
qb - Basic user interface
qr - Reduced user interface with a modal dialog box displayed at the end of the
installation.
qf - Full user interface with a modal dialog box displayed at the end.
qn+ - No user interface except for a modal dialog box displayed at the end.
qb+ - Basic user interface with a modal dialog box displayed at the end. The
modal box is not displayed if the user cancels the installation.
qb- - Basic user interface with no modal dialog boxes.
(Microsoft documentation contains the comment: “Please note that /qb+- is not a
supported user interface level”)
Chapter 1. Introduction 11
For example, to execute the COBOL Runtime installer with no interface you would
execute the command:
FujitsuNetCOBOL.exe /s /v/qn
Only PowerCOBOL Can install all Can install all Can install all -
controls application files application files application and
runtime files
and settings
ActiveX controls Can only install Required for Can invoke the -
created using application registry "Make
PowerCOBOL files. settings. Can Installer"
also install all setup.exe and
application files install all
application and
runtime files
and settings
ActiveX controls Can only install Can only install Can install Register the
created outside applications application files application and controls.
PowerCOBOL files runtime files
and register
DLL’s placed in
RegSrv32
folder
Where:
Underlined text – indicates a method that is required, but may be used along with
one or more of the other installation methods.
Using the COBOL Wrapper is the recommended route because it can be useful
whichever types of control you are using. It has the added advantages of installing
12 Chapter 1. Introduction
the runtime support, having options to cater for other installation issues (see next
section), and can also install runtime support for PowerFORM and standard COBOL
applications.
NetCOBOL Runtime installers are required by development package which you use to
develop your application.
[NetCOBOL Standard Edition]
You need to install below runtime installer to run your application.
COBOL Runtime: FujitsuNetCOBOL.exe
[NetCOBOL Professional Edition]
You need to install below runtime installer to run your application.
COBOL Runtime: FujitsuNetCOBOL.exe
PowerCOBOL Runtime: FujitsuPowerCOBOL.exe
[NetCOBOL Enterprise Edition]
You need to install below runtime installer to run your application.
COBOL Runtime: FujitsuNetCOBOL.exe
PowerCOBOL Runtime: FujitsuPowerCOBOL.exe
PowerFORM Runtime: FujitsuPowerFORM.exe
J Adapter Class Runtime: FujitsuClass.exe
The COBOL Server Runtime is available if you bought the Enterprise Edition. This
runtime installer includes the Web subroutine for the Server application. The server
runtime can run multithreaded applications.
NOTES:
• All runtimes need Microsoft Visual C++ 2005 runtime. Please get it from
Microsoft Web site. And, install it before NetCOBOL Runtimes are installed.
• PowerCOBOL Runtime needs Microsoft Data Access Component (MDAC)
version 2.8.0000.00 or later. Please get it from Microsoft Web site. And,
install it before PowerCOBOL Runtimes are installed.
14 Chapter 2. Using the Runtime Installers
Chapter 3. Using the Merge Modules
The runtime systems for NetCOBOL components are available as Windows Installer
merge modules for integrating into installers based on MSI technology. This allows
seamless installation of runtimes in any MSI-based installer. This section describes
the different merge modules, and provides guidance for choosing the correct merge
modules depending on your application. The runtimes are covered under the same
EULA as other separate runtime installers, and your rights to distribute these
runtimes in your installers are bound to this agreement.
Note: The NetCOBOL Runtime Merge Modules can be used to build an installer that
will work on all Windows operating systems, including Windows Vista and later
operating systems.
Note that prior versions of NetCOBOL for Windows are not installed in this
manner, so you will need to uninstall any earlier versions of the runtime
before installing the V9 version of the runtime.
The stand-alone runtime installers are listed below, and can coexist with the
NetCOBOL merge modules.
COBOL Runtime: FujitsuNetCOBOL.exe
PowerCOBOL Runtime: FujitsuPowerCOBOL.exe
PowerFORM Runtime: FujitsuPowerFORM.exe
J Adapter Class Runtime: FujitsuClass.exe
COBOL Server Runtime: FujitsuNetCOBOLSVR.exe
• All runtimes need Microsoft Visual C++ 2005 runtime. This can be obtained
from Microsoft’s web site. It must be installed before NetCOBOL Runtimes
are installed.
For more information on using merge modules based on Windows Installer
technology, refer to the Windows Installer documentation available from Microsoft.