[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here

Chapter 3
After Installation

After HP COBOL is installed, it can be invoked by all users with the COBOL command.

The installation procedure modifies the DCL command table so that the COBOL command is recognized and processed. However, the previous command table is still in effect for those users who are currently logged in. All logged-in users who want to use the COBOL command or the newly updated version of the COBOL command must log out and log in again, or use the following DCL command:


$ SET COMMAND /TABLE=SYS$LIBRARY:DCLTABLES

The following tasks can be performed after HP COBOL is installed:

  • Running the Installation Verification Procedure separately
  • Customizing the HP COBOL messages
  • Making HP COBOL usable on an OpenVMS Cluster System
  • Setting user account privileges
  • Installing HP COBOL as a shared image
  • Running the REFORMAT utility

3.1 Running the Installation Verification Procedure Separately

The Installation Verification Procedure (IVP) runs automatically during installation of the COBOL compiler. It requires the installation of the COBOL compiler on your system. If you want to run the IVP separately to ensure the integrity of installed files should system problems occur, in a privileged account use the following command procedure:


$ @SYS$COMMON:[SYSTEST]COBOL$IVP.COM

3.2 Customizing HP COBOL Error Messages

The PCSI installation automatically copies the HP COBOL message file, COBOL$MSG.MSG, into the system directory [SYSUPD]. You can edit COBOL$MSG.MSG to customize the error messages that users receive when using HP COBOL. Customized messages are often desirable for international users.

You must install HP COBOL before editing the message file. If you install HP COBOL after editing COBOL$MSG.MSG, the software installation will supersede the revised message file in the [SYSMSG] directory. Also, you must have the OpenVMS Message utility installed on your system before editing COBOL$MSG.MSG. The edited version of COBOL$MSG.MSG must be processed through the Message utility before the file can be accessed by HP COBOL.

The following steps explain how to edit the HP COBOL messages and install the customized message file on your system:

  1. Edit the message file.
    Each error message appears on a separate line and is enclosed in angle brackets (< >). You can edit the text portion of the error messages, but for HP COBOL to correctly identify the errors, you must not change the following:
    • The 3- to 9-character mnemonic that appears in the first column
    • The sequence in which the error messages appear in the file
    • The severity level of the error message
    • The number, type, and order of the formatted ASCII output (FAO) arguments that appear in the message
  2. Run the OpenVMS Message utility.
    To translate the new message text into a file that HP COBOL can access, run the text file through the Message utility by entering the following command:


    $ MESSAGE COBOL$MSG
    

    The Message utility creates the object module COBOL$MSG.OBJ.
  3. Enter the LINK command with the /SHARE qualifier to create the shareable image COBOL$MSG.EXE:


    $ LINK/SHARE COBOL$MSG
    
  4. Install COBOL$MSG.EXE in the system directory [SYSMSG]:


    $ COPY COBOL$MSG.EXE SYS$COMMON:[SYSMSG]/PROT=W:RE
    
  5. If HP COBOL is installed as a known image, you must reinstall COBOL$MSG.EXE by entering the following command:


    $ INSTALL REPLACE SYS$MESSAGE:COBOL$MSG 
    

HP COBOL will now generate your customized error messages.

3.3 Making HP COBOL Usable on an OpenVMS Cluster System

If you want to run HP COBOL on multiple nodes of a VMScluster, first check to see that you have the appropriate software license (see Section 1.2). Then, perform the following steps after you install HP COBOL:

  1. Issue the LICENSE LOAD command to activate the license on each node in the VMScluster on which HP COBOL is to be executed.
  2. Use the OpenVMS System Management utility (SYSMAN) to execute a set of commands on all cluster nodes, whether or not the nodes are licensed to use HP COBOL; failure to do so may cause unexpected errors for users.

    Note

    If you are using a mixed-architecture (VAX and Alpha) heterogeneous cluster, before executing these commands, make sure the appropriate logical names have been set to define the scope of the SYSMAN DO commands. For more information, see the OpenVMS system management documentation.

    While logged in as SYSTEM, or as another user name that has the SETPRV privilege or the CMKRNL and SYSPRV privileges, use the SYSMAN utility to update the version of DCLTABLES.EXE available, as follows:


    $ RUN SYS$SYSTEM:SYSMAN
    SYSMAN> SET ENVIRONMENT/CLUSTER
    %SYSMAN-I-ENV, current command environment:
            Clusterwide on local cluster
            Username SYSTEM       will be used on nonlocal nodes
    SYSMAN> DO INSTALL REPLACE SYS$LIBRARY:DCLTABLES.EXE
    %SYSMAN-I-OUTPUT, command execution on node NODE1
    %SYSMAN-I-OUTPUT, command execution on node NODE2
    

    The SYSMAN utility will cause each DO command to be executed on all nodes of the local cluster.
  3. If HP COBOL is installed as a known image, then also do the following:


    SYSMAN> DO INSTALL REPLACE SYS$SYSTEM:COBOL.EXE
    %SYSMAN-I-OUTPUT, command execution on node NODE1
    %SYSMAN-I-OUTPUT, command execution on node NODE2
    
  4. If the HP COBOL messages file is installed as a known image, then also do the following:


    SYSMAN> DO INSTALL REPLACE SYS$MESSAGE:COBOL$MSG.EXE
    %SYSMAN-I-OUTPUT, command execution on node NODE1
    %SYSMAN-I-OUTPUT, command execution on node NODE2
    
  5. Finally, exit from SYSMAN.


    SYSMAN> EXIT
    $
    

3.4 User Account Privileges

To use HP COBOL, each user account must have at least TMPMBX and NETMBX privileges. Use the OpenVMS Authorize utility to determine whether users have the privileges they require.

3.5 Installing HP COBOL as a Shared Image

If you expect HP COBOL to be used extensively on your system, you can reduce the system overhead and memory requirements by installing it as a shared image. To install HP COBOL as a shared image on a system that is currently running, use the OpenVMS Install utility (INSTALL). It is recommended that you install HP COBOL as shared on a system that has been rebooted recently, because the available space in the global page table is less likely to be fragmented. Invoke the OpenVMS Install utility from a privileged account and install HP COBOL as a shared image:


$ INSTALL ADD SYS$SYSTEM:COBOL.EXE /OPEN/SHARED/HEADER_RESIDENT

Add the following line to the appropriate system startup command file so that HP COBOL is available as a shared image each time the system is started:


$ INSTALL ADD SYS$SYSTEM:COBOL.EXE/OPEN/SHARED/HEADER_RESIDENT

The default operating system startup command file, for example, is SYS$MANAGER:SYSTARTUP_VMS.COM (previously named SYSTARTUP_V5.COM). If your site has modularized the system startup procedure using multiple command files, add the lines to the correct file.

To install the message file, use the following commands:


$ INSTALL ADD SYS$MESSAGE:COBOL$MSG.EXE

3.6 REFORMAT Utility

The PCSI installation automatically includes installation of REFORMAT.EXE, the REFORMAT utility. It is ready to run.


Appendix A
Sample Installation

This appendix contains sample logs of the following operations, which are identifical on OpenVMS Alpha and OpenVMS I64:

  • An installation of HP COBOL
  • An Installation Verification (IVP) of HP COBOL
  • A Removal of HP COBOL

A.1 Installation of the Compiler on OpenVMS Alpha and OpenVMS I64

The installation is identical on both OpenVMS Alpha and OpenVMS I64. However, you will see the platform specified in the product name and a four-digit string after the version. The following example shows an installation of V2.9 on an OpenVMS I64 system.


$ PRODUCT INSTALL COBOL


The following product has been selected:
    HP I64VMS COBOL V2.9-xxxx              Layered Product

Do you want to continue? [YES]

Configuration phase starting ...

You will be asked to choose options, if any, for each selected product and for
any products that may be installed to satisfy software dependency requirements.

HP I64VMS COBOL V2.9-xxxx: HP COBOL for OpenVMS I64 Systems

    Copyright 2007 Hewlett-Packard Development Company, L.P.

    This software is the product of Hewlett-Packard Development Company, L.P.

    A valid Product Authorization Key (PAK) is required.

Do you want the defaults for all options? [YES]

Do you want to review the options? [NO]

Execution phase starting ...

The following product will be installed to destination:
    HP I64VMS COBOL V2.9-xxxx              DISK$I64SYS:[VMS$COMMON.]

Portion done: 0%...90%...100%

The following product has been installed:
    HP I64VMS COBOL V2.9-xxxx              Layered Product

%PCSI-I-IVPEXECUTE, executing test procedure for HP I64VMS COBOL V2.9-xxxx ...
%PCSI-I-IVPSUCCESS, test procedure completed successfully

A.2 Installation Verification (IVP) Run Separately



$ @SYS$TEST:COBOL$IVP.COM

 Copyright 2007 Hewlett-Packard Company, L.P.

 Confidential computer software. Valid license from HP and/or its
 subsidiaries required for possession, use or copying.

        Successful test of HP COBOL V2.9-xxxx

$

A.3 Removal of the COBOL Compiler

The removal command operates the same on both OpenVMS Alpha and OpenVMS I64. This example shows the OpenVMS I64 product.



$ PRODUCT REMOVE COBOL

The following product has been selected:
    HP I64VMS COBOL V2.9-xxxx            Layered Product

Do you want to continue? [YES]

The following product will be removed from destination:
    HP I64VMS COBOL V2.9-xxxx            DISK$I64SYS:[VMS$COMMON.]

Portion done: 0%...10%...20%...30%...40%...50%...60%...70%...100%

The following product has been removed:
    HP I64VMS COBOL V2.9-xxxx           Layered Product


Appendix B
Recovering from Errors

This appendix provides information to help you with failures or errors that might occur during product installation or product use.

B.1 Failures During HP COBOL Installations

If PCSI detects any problems during installation, it notifies you and asks if you want to continue the installation.

The following PCSI messages are issued if the PCSI product kit is not found in the specified directory:


$ PRODUCT INSTALL /SOURCE=device:[directory]
%PCSIUI-I-NOMATCH, no products found matching: COBOL
%PCSIUI-E-NOPROD, no products found on which to perform this operation
%PCSIUI-E-ABORT, fatal error encountered - operation terminated

The following PCSI and RMS messages are issued if the PCSI product kit is not found in the specified directory and you have defined the logical name PCSI$SOURCE:


$ PRODUCT INSTALL /SOURCE=device:[directory]
%PCSI-E-OPENIN, error opening PCSI$SOURCE:[SYSUPD]*-*-*-%%%%%-*-*.PCSI*;
 as input
-RMS-F-DEV, error in device name or inappropriate device type for operation
%PCSI-E-S_OPFAIL, operation failed
%PCSIUI-E-ABORT, fatal error encountered - operation terminated

The following PCSI messages are issued when the installation and the IVP test procedure execute properly:


$ PRODUCT INSTALL /SOURCE=device:[directory]
   .
   .
   .
The following product has been installed:
DEC AXPVMS COBOL V2.9-xxxx
   .
   .
   .
%PCSI-I-EXETSTOK, end of test procedure; completed with no errors

The following PCSI messages are issued when the COBOL installation fails only because the IVP test procedure fails.

Note

This failure is in the IVP test procedure. After reporting the failure it asks you if you wish to terminate the installation. If you answer YES at this advanced stage (100%), the installation terminates quietly. The product has bee n installed on the system.


$ PRODUCT INSTALL /SOURCE=device:[directory]

The PRODUCT INSTALL fails, with the following messages:


Portion Done: 10%...30%...40%...70%...80%...90%...100%
%PCSI-I-PRCOUTPUT, output from subprocess follows...
%LICENSE-F-NOAUTH, DEC COBOL use is not authorized on this node
-LICENSE-F-NOLICENSE, no license is active for this software product
-LICENSE-I-SYSMGR, please see your system manager
%SYSTEM-F-ABORT, abort

The IVP test procedure fails, with the following messages:


%PCSI-E-EXETSTFAIL, end of test procedure; completed with errors;
 status returned from DCL follows
-SYSTEM-F-ABORT, abort
%PCSI-E-OPFAILED, operation failed
Terminating is strongly recommended.  Do you want to terminate? [YES] y

B.2 Problems During HP COBOL Use

This section describes problems that might occur when you use HP COBOL.

B.2.1 Other Problems

If you encounter a problem while using HP COBOL, see the section on Troubleshooting Tips in the Release Notes. If the problem is unresolved, report it to Hewlett-Packard. If you have a Software Product Services Support Agreement, contact HP Services by the method specified in your support agreement.

When you initially contact HP Services, please indicate the following:

  • The name (OpenVMS Alpha or OpenVMS I64) and the version number of the operating system you are using
  • The product name (HP COBOL) and the version number of HP COBOL you are using
  • The hardware system you are using, such as a model number
  • A very brief description of the problem (one sentence if possible)
  • How critical the problem is

When you submit information electronically or are speaking on the phone to the appropriate HP COBOL support specialist, you can provide more detailed information. The information should include the specific commands used to compile and link the program, the error messages displayed, and relevant detailed information (possibly including source program listings). Please attempt to narrow the cause of the problem to a specific module or lines of code.

HP Services personnel may ask for additional information, such as listings of any command files, INCLUDE and COPY files, relevant data files, and so forth. If the program is longer than 50 lines, submit a copy of it electronically or provide machine-readable media (CD-ROM or magnetic tape).

Previous Contents Contents