Pathway/iTS Web Client Programming Manual (G06.24+)

How to Compile, Build, and Maintain a Pathway/iTS
Web Client
Compaq NonStop Pathway/iTS Web Client Programming Manual520270-001
2-2
1. Prepare the SCREEN COBOL Object File
1. Prepare the SCREEN COBOL Object File
Before you run the converter, organize the SCREEN COBOL object (POBJ) file so that
repeated conversions can be done easily.
First, copy the SCREEN COBOL object file to be converted to the desired volume and
subvolume.
If the SCREEN COBOL object program has its symbols stripped, rebuild the object file
with symbols. The converter uses the symbols when creating equivalent Java variable
names. The equivalent symbolic names the converter creates when symbols are
available help make the converted code readable and maintainable. If the converter
cannot locate symbols, it generates an error and does not convert that program unit.
For each application, verify that all the program units that make up this application are
in a single SCREEN COBOL object file, including the program that is specified in the
INITPROG parameter. Doing this enables you to convert the entire application in a
single invocation of the converter. In addition, this organization of the SCREEN
COBOL object code makes it easier to regenerate the Java and HTML files when you do
future enhancements in SCREEN COBOL.
In the sample application, you would move the program units LOG1, LOG2, INV1, and
INV2 into a single SCREEN COBOL object file.
2. Create a Configuration File
Create a configuration file to contain the default values the converter will use. By
creating a configuration file, you can avoid having to repeatedly specify frequently used
values. In addition, because the default compile (build) environment is the Compaq
NonStop™ Kernel operating system OSS, you must specify a configuration file if your
compile environment is the Microsoft® Windows NT® operating system.
Example 2-1
shows a sample configuration file called mycfg.
Example 2-1. Sample Configuration File for mycfg
[Screen Section]
Background = mylogo.gif;
Foreground = Black;
Font Type = Courier;
Font Size = 12;
[Convert Environment]
Java Location = \system.$java.appa;
HTML Location = \system.$html.appa;
[Compile Environment]
OS = NSK;
[Deployment Environment]
Web Root = /usr/webserver/root;
[Limits Section]