Once your products are installed, you can verify that the installation was successful by compiling and running the "TOURHP" program. (Refer to Chapter 4 in Transitioning to ACUCOBOL-GT for detailed information about compiling and running programs in the HP e3000 environment.)
To test your installation,
TOURHP is a special sample program for HP e3000 users that demonstrates how to use the ACUCOBOL-GT compiler and runtime. It also creates a small KSAM file.
:SH
shell/iX> export PATH="$PATH:/ACUCOBOL/bin" shell/iX> export A_TERMCAP="/ACUCOBOL/etc/a_termcap" shell/iX> export A_TERM="hp"
shell/iX> cd /ACUCOBOL/sample shell/iX> ccbl -cp -gd -v TOURHP
In the command shown above,
When you press Enter after typing this command, you should see the following messages:
Start TOURHP
Data Division
Procedure Division
Including Debugging Info
Writing Code Addresses
Compilation complete
Compiling the "TOURHP" program creates an object file in the same directory with the same prefix, "TOURHP", but with an extension of ".acu".
shell/iX> runcbl -c CNFGVAR TOURHP
In this case, the "-c" option tells the runtime to look for the configuration file named "CNFGVAR". This file sets the variable "DEFAULT_HOST" to "KSAM", causing the runtime to create KSAM files instead of Vision files. The runtime automatically selects a file with the ".acu" extension. The "TOURHP" application creates a small KSAM file.
If you get the message "Can't find entry for terminal in /ACUCOBOL/etc/a_termcap ", you need to configure your terminal for ACUCOBOL-GT. For more information, see ACUCOBOL-GT User's Guide > Termminal Manager.You can display the "RELEASE" file using the more command from the shell. For example:
shell/iX> more /ACUCOBOL/RELEASE