The UNIX Option enables you to off-load application development from a UNIX system to Net Express. This means that you can create applications on a PC, using the tools provided by Net Express, and then deploy them, when ready, on a UNIX system that has a version of MERANT Micro Focus COBOL for UNIX installed.
Note: To use the UNIX Option you need to install some software, and to change some configuration files, on the UNIX system. To do this, you need to have superuser access to your UNIX system, and to possess the relevant skills to configure your UNIX system. In particular, you need to know how to:
If you are not familiar with these tasks, ask your UNIX system administrator.
You should also be familiar with the effects of using DNS on UNIX systems, and basic network problems. If you are not, then ask your UNIX system administrator.
The UNIX Option comprises:
See the chapter Publishing
Applications for details on using Publisher. See the chapter
Set-up for details on configuring Publisher.
Some syntax that you can use in Net Express COBOL is incompatible with COBOL for UNIX. If you compile on Net Express a program with the WARNINGS(2) Compiler directive set, the Compiler displays warning messages if it finds incompatible syntax. However, it is not possible for the Compiler to flag all incompatibilities; you will have to check for some of these yourself. The chapter Portability Issues lists the syntax that the Compiler can flag as incompatible, and describes syntax incompatibilities for which you should check.
The process of deploying and rebuilding an application on a UNIX system is called "publishing". The UNIX Option provides a tool, Publisher, that handles the publishing process.
Note: You cannot publish to a UNIX system applications that have been generated on Net Express using the Data Access Wizard.
The development process for creating a deployable application is:
If you want to use Net Express to edit and rebuild a COBOL application that already exists on a UNIX system, you will need to import the application into Net Express. The chapter Importing UNIX Applications into Net Express describes how to do this.
The Server Control Program (SCP) provides a standardized set of facilities that enable communication between Net Express and the UNIX system. It must be installed on the UNIX system before any you can publish an application. See the appendix Installing SCP and Samba for information on installing SCP.
PowerTerm is supplied with the UNIX Option so that you can start a terminal (Telnet) connection from your PC to your UNIX system. This enables you to:
Because PowerTerm enables you to use COBOL tools on the remote system, the button-bar at the bottom of the PowerTerm window has been changed from its standard settings. The button-bar is set by the UNIX Option so that the buttons are F1 to F10, plus /A (Alt) and /C (Ctrl). The buttons have been set this way as the tools provided with Toolbox (in COBOL V3.2 and V4.0 for UNIX) or the Development Environment Menu System (Object COBOL V4.1 and Server Express) use the F1 to F10 function keys, and the Alt and Ctrl keys to navigate through their menu systems. By setting the button-bar in this way, you can use the mouse to click buttons on the button-bar to move around the menus of COBOL tools.
PowerTerm is also configured by the UNIX Option to have a default terminal emulation of SCO-ANSI (this terminfo is supplied with the COBOL for UNIX product), and thus the display is set to 25 lines, instead of the default of 24, to match the COBOL tools.
If you need to set the button-bar to emulate other key presses or hot keys, or want to reset the number of lines displayed, see the PowerTerm help.
The case of literals - particularly filenames - can cause problems when
publishing applications to a UNIX system. In general, the PC ignores the
case of a filename so that, for example,
FiLeName1; on UNIX
filename1 would be regarded as a filename distinct
FILENAME1. As a consequence of this:
For example, say you create a program called myapp.cbl.
Depending on the application and the operating system you used to save the
program, or the network protocol you are using to connect to your UNIX
system, the real filename might be, for example, myapp.cbl
(Windows NT), Myapp.cbl (Windows 95) or MYAPP.CBL (on some
versions of Novell). Windows regards all these versions of the filename as
the same, but to UNIX they are all different. So, if you create a program
that contains the code
call myapp.cbl, the call will work as
expected on Windows, but cause problems on the UNIX system as the filename
of the published program might be myapp.cbl, or Myapp.cbl.
To overcome these problems, you can configure the Publisher to handle filenames in particular ways. For information see the chapter Publisher Set-up.
A character version of Dialog System is installed with the UNIX Option to enable you to develop applications for deployment on UNIX. When creating an application using character Dialog System, you must ensure it picks up the correct versions of certain files, and not the versions from regular Dialog System. To ensure this, copy the files ds-cntrl.mf and ds-cntrl.ans from c:\Program Files\MERANT\Net Express\Unix\Dschar\Source into your application's project directory. You must do this before creating the project.
Copyright © 2000 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.