Chapter 1: Introduction

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 Micro Focus COBOL for UNIX installed.

Notes:

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:

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.

Overview of Publishing Applications

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:

  1. Create and develop an application using the Net Express tools.
  2. Set the WARNING"2" Compiler directive. Compile the application. Syntax incompatible with COBOL for UNIX is flagged. Change the syntax as required. Check the chapter Portability Issues for details of any other syntax that might cause problems to COBOL for UNIX. Recompile as necessary.
  3. When you have an application that builds without errors:
    1. Set up Publisher for this project. See the chapter Publisher Set-up for details. You normally only need to do this once for the project.
    2. Publish the application. For details see the chapter Publishing Applications.
  4. Run the application on the UNIX system. If run-time errors occur, fix them using Net Express, rebuild the application, and republish.

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

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 your Server Express documentation for information on installing SCP, or download SCP from SupportNet.

PowerTerm

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.

Case Sensitivity

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" is equivalent to "FILENAME1" or "FiLeName1"; on UNIX systems "filename1" would be regarded as a filename distinct from "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) 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 works as expected on Windows, but causes 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.

Character Dialog System

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 the full path of Net Express\Unix\Dschar\Source into your application's project directory. You must do this before creating the project.


Copyright © 2007 Micro Focus (IP) Ltd. All rights reserved.