| RELOPS/DSS Documentation | ||||||||||||||||||||||
Managing MicroFocus Cobol |
||||||||||||||||||||||
|
|
|||||||||||||||||||||
To install Micro Focus Cobol, access the system using a PC terminal vt100 emulator
(tnvt,crt,vt100,etc) or using an Unix desktop running an "xterm" window (ie at
the unix prompt type "xterm &", this will create and xterm window which you
should work from).
Note that from now on we will install cobol in the products directory in order to accomodate the new /etc/profile which has the ability to handle multiply versions of cobol. This means cobol will no longer exist in /usr/lib/cobol. If an old version exist here, it will need to be moved to the products directory. The same holds true if an older version such as 4.0 needs to be installed for the first time.
If you will be installing the HP Release of MicroFocus Cobol 4.1 for HP-UX, see that section later in this document.
If you will be installing the Micro Focus Cobol 4.1 on Siemens , Click here to go to that section.
If you will be installing Sequent's Micro Focus Cobol, click here to go to that document.
NOTE: If we do not a media for a particular platform/version you can check the Micro Focus Product Matrix to see if it is available.
If you will be installing Merant's Server Express, click here to go to that section of the document.
Installing Micro Focus Cobol 4.1
For HP-UX system also set the following:
SHLIB_PATH=$COBDIR/coblib
export SHLIB_PATH
For IBM AIX system also set the following:
LIBPATH=$COBDIR/coblib
export LIBPATH
mkdir
/products/mf/cobol-4.0
cd /usr/lib/cobol
find . -print | cpio -pvmud /products/mf/cobol-4.0
cd /usr/lib
rm -rf cobol
ln -s /products/mf/cobol-4.0 /cobol/prod/4.0
NOTE1: Cobol will install its binaries in /usr/bin or /bin. They must be removed. You can use the "rmcobolbin" script found in the disk repository, under /repos1/scripts. If there's nothing in /repos1, go to manual mounts for procedures on mounting /repos1. If the cobol binaries are elsewhere, use the directory name as an argument for the script.
NOTE2: On most HP systems cobol will be in /opt/cobol and will contain a sub-directory named "cobdir". It is this directory that should be symbolically linked. Also, on HP, check the /etc/PATH file to make sure there is no references to any cobol paths.
NOTE: If the repository is not auto mounted, then go to manual mounts for procedures on how to mount the filesystem.
install program. sh ./install | Platform | Serial No. | Key No. |
|---|---|---|
| Solaris | 000611389 | 01010 10000 014A8 C0D1B 1DD4 |
| HP-UX | 000611388 | 01010 10000 014A8 C0A1C 2ED6 |
| AIX | 000611281 | 01010 10000 014A5 E731E 36B8 |
| NCR/MP-RAS | 000644464 | 01010 10000 014A9 A6618 5D7E |
| DEC 4.0B | 000644463 | 01010 10000 014A9 A6211 28E2 |
| OTHER | 000611281 | 01010 10000 014A5 E731E 36B8 |
NOTE: If more than 1 license is requested, additional license keys for Digital, HP, Ibm, Sequent, and Sun are located in /repos1/Misc/mfc-lic-all-4.1.txt. Follow the same procedures as above (F2, enter, F3-install). Then press F6 for more, and then F3 for refresh (this will force the license manager to use the new license database). If you have problems using the function keys, try the forward slash and the number (i.e., instead of F3, use /3).
You should see "mflm_manager" in the list returned from the command.
b. Change the line starting with "COBDIR=" to:
COBDIR=/cobol/prod/4.1
c. Change the line with the "cd" command to:
cd $COBDIR/lmf
mf:23:wait:/etc/mflmrcscript > /dev/null 2>&1
Note for AIX: Use the rmitab command to remove the existing inittab line: Example: # rmitab mf Then, use the mkitab command to add the correct inittab entry:
Example: # mkitab "mf:23:wait:/etc/mflmrcscript > /dev/null 2>&1"NOTE: Be sure to check the "initdefault" line in the file to determine the default run level. If it's not 2 or 3, include the default in the line for the license manager (or it won't start at startup).
You should see version information about the product.
Also, remove the following two lines form the liblist
file:
i/opt/SUNWspro/SC3.0.1/lib/__fstd.o p/opt/SUNWspro/SC3.0.1/lib/__fstd.o
NOTE: In order for cobol to work properly for the standard logins, the system's /etc/profile must be that of the DSS-AUTOMATION version (tl-sun01:/usr/local/psdist/profile.gen) or the DSS-UNIX version (tl-sun01:/usr/local/bin/profile.dss).
cp /products/mf/ocobol-4.1/demo/pi.cbl /tmp
chmod 777 /tmp/pi.cbl
su - oracle (or use any other standard user account)
[Be sure the COBDIR, PATH, and LD_LIBRARY_PATH variables are set correctly.]
cd /tmp
cob -Vup pi.cbl
At this point you should see output from the compiler. To check the compile, run the program by typing the following:
cobrun pi
You should see the calculation of pi.
Installing the HP Release of MicroFocus Cobol 4.1 for HP-UX
NOTE: HP's Release of MicroFocus Cobol 4.1 is also called Object Cobol.
For HPUX 10.20:
| Use APPLICATIONS cdrom dated October 1997 (CD Part Number B3920-13869). | |
| Product to be installed: Object Cobol/UX Developer (B.12.25)... includes both Developer and Run-Time filesets. |
For HPUX 11.0:
| Use APPLICATIONS cdrom dated November 1997 (CD Part Number 24998-12489). | |
| Product to be installed: Object Cobol/UX Developer (B.12.50)... includes both Developer
and Run-Time filesets. |
| mkdir /opt/cobol_prev | |
| /opt/cobol/bin/copy_release /opt/cobol_prev |
Then use swremove to remove all mention of any COBOL product from the system by issuing the following commands:
| swremove -v COBOLDIAG | |
| swremove -v COBOLTBOX | |
| swremove -v COBOLCRT | |
| swremove -v COBOLRT | |
| swremove -v COBOLDEV |
NOTE: Normally a codeword is needed to get the Cobol filesets off the cdrom. For HPUX 10.20, get the codeword from our "HPUX Keycodes" manual. For HPUX 11.0, our current cdrom is unsecured so no codeword is needed.
| Mount the cdrom. | |
| Run swinstall as root. | |
| Select Local CDROM for "Source Depot Type". | |
| Enter your cdrom mount point for "Source Depot Path". | |
| Select OK. | |
| From "Actions" select Add New Codeword and enter your codeword for this cdrom (codeword currently not needed for the HPUX 11.0 cdrom). | |
| You should now get a full listing of what's on the cdrom. Highlight the Object Cobol Developer product. | |
| From "Actions", mark the product for installation. | |
| From "Actions" select Install (analysis). | |
| Once the Analysis Phase finishes successfully, follow the prompts to install the product. | |
| Once Installation is done, Exit out of swinstall and unmount the cdrom. |
NOTE: For more detailed installation procedures and troubleshooting tips, see the file: /opt/cobol/cobdir/docs/hp-relnotes_cbl.txt
| cd /opt/cobol/cobdir | |
| ./hpmfocdsini | |
| The script will display the hostid and hostname. Write this information down as it will be needed to obtain a license key. | |
| Use the defaults. The product will be installed under /usr/local/flexlm. |
Output from the hpmfocdsini script is in /var/tmp/hpmfocdsini.log.
NOTE1: License keys may be obtained via fax or email (through the HP Support Center web site: http://us-support.external.hp.com). The steps below assume you'll be faxing the information to HP.
NOTE2: You'll need a system handle to request a license key. Most of our handles only have 1 license available to them. Check the sheet in the HPUX Keycodes manual for a handle that hasn't been used. Hopefully this is just a temporary solution.
| Fill out a license request form for HP Object Cobol. A blank form should be in the HPUX Keycodes manual. You'll need the hostid, hostname, and system handle. Request only 1 user license. | |
| Fax form to the HP License Center: 800-541-2633 | |
| The License Center should fax back to you a license key within 8 business hours. To
check on the status, call: 650-960-5111. |
| cd /usr/local/flexlm/licenses | |
| vi license.dat (this file may need to be created) | |
| Update license.dat with all 3 lines, related to SERVER, DAEMON, and INCREMENT. | |
| chmod 644 license.dat |
| Check off the system handle used for obtaining the license key. | |
| Also file the sheet having the license key information in the manual. |
| cd /opt/cobol/cobdir/coblib | |
| cp liblist liblist.org | |
| vi liblist and remove the following line: |
c-loops
| cd /repos1/HP (If /repos1 has no data, go to manual mounts for procedures on how to mount /repos1.) | |
| cp flexlm_startup.cob4.1 /sbin/init.d/flexlm_startup Now create a symbolic link, and change permissions/ownership: | |
| cd /sbin/init.d | |
| chmod 555 flexlm_startup | |
| chown bin:bin flexlm_startup | |
| ln -s /sbin/init.d/flexlm_startup /sbin/rc2.d/S950flexlm_startup |
| cd /sbin/init.d | |
| ./flexlm_startup | |
| ps -ef | grep lmgrd (lmgrd should be running) | |
| cd /usr/local/flexlm/bin | |
| ./lmstat -a You should see the following: |
license server UP HPCUPLANGES: UP Users of hpmfcobol: (Total of 2 licenses available)
NOTE: Even though you request only 1 license, the HP Object Cobol provides you with an overdraft license allotment of ten percent of the number of licenses you purchased, rounded up to the next integer. When all purchased licenses are in use, licenses are granted from this overdraft allotment until it is exhausted. A warning message is displayed on stderr each time a license is requested from the overdraft allotment.
You should see version information about the product.
NOTE: In order for cobol to work properly for the standard logins, the system's /etc/profile must be that of the DSS-AUTOMATION version (tl-sun01:/usr/local/psdist/profile.gen) or the DSS-UNIX version (tl-sun01:/usr/local/bin/profile.dss).
cp /opt/cobol/cobdir/demo/pi.cbl /tmp
chmod 777 /tmp/pi.cbl
su - oracle (or use any other standard user account)
cd /tmp
cob -Vup pi.cbl
At this point you should see output from the compiler. To check the compile, run the
program by typing the following:
cobrun pi
You should see the calculation of pi.
Now exit from su - <userid> back to root.
| cd /usr/local/flexlm/bin | |
| ./lmstat -a |
NOTE:You'll see the login you used to test the cobol associated with one of the licenses. With HP Cobol 4.1, the license stays with the user for one hour after the completion of the compile. The license is tied to the specific host machine, user, and ttyname for one hour after the last use of a licensed COBOL component, and is NOT released if the user logs off. There is no way currently to change this time limit.
In order to free up the license you used for testing, lmgrd must be bounced:
| ps -ef | grep flexlm (determine pids of flexlm processes - one for lmgrd and one for HPCUPLANGS) | |
| kill [flexlm pid numbers] | |
| cd /sbin/init.d | |
| ./flexlm_startup |
Now check the status to make sure all licenses are available:
| cd /usr/local/flexlm/bin | |
| ./lmstat -a |
You are now done with the installation of HP Cobol 4.1.
Installing Micro Focus Cobol 4.1 on Siemens
NOTE: If MF Cobol 4.0 is installed in /opt/lib/cobol you will need to move it to the products directory and do a pkgrm of cobol 4.0:
| mkdir -p /products/mf/ocobol-4.0 | |
| cd /opt/lib/cobol; find . -print | cpio -pd /products/mf/ocobol-4.0 | |
| pkginfo -x | grep cobol (You should see cobol40 Micro Focus COBOL V4.0 for UNIX) | |
| pkgrm cobol40 |
Continue on with the install of MFCobol 4.1.
mkdir -p /cobol/prod
mkdir -p /opt/lib/cobol
ln -s /opt/lib/cobol /cobol/prod/4.1
| pkgadd -d /jukebox1/Sni-MFcobol-4.1/cobol_nyms/4_1a00/ds02* | |
| Press enter for All | |
| Enter the path for the Cobol System files: /opt/lib/cobol | |
| Enter the path for the Cobol Driver programs: /opt/bin | |
| Will you be writing Object oriented Cobol programs with this release y/n? N |
The product will now install.
Install the Cobol 4.1 licenses.
| cd /etc/.products/.legit | |
| ftp tl-sun04 (as user root) | |
| cd /repos1/SNI | |
| prompt | |
| mget mfc-lic-sni-4.1.tar | |
| ftp> quit | |
| tar xvf mfc-lic-sni-4.1.tar |
| cob -V |
You should see version information about the product.
NOTE: In order for cobol to work properly for the standard logins, the system's /etc/profile must be that of the DSS-AUTOMATION version (tl-sun01:/usr/local/psdist/profile.gen) or the DSS-UNIX version (tl-sun01:/usr/local/bin/profile.dss).
cp /opt/lib/cobol/demo/pi.cbl /tmp
chmod 777 /tmp/pi.cbl
su - oracle (or use any other standard user account)
cd /tmp
cob -Vup pi.cbl
At this point you should see output from the compiler. To check the compile, run the program by typing the following:
cobrun pi
NOTE: If you receive a ld: error when running cobrun then you will need to install the C++RTS and bug fix SIN3B089 patch from the Siemens CD-DEV-MI (Development Tools and Compiler) CD. Mount the CD on tl-sun01 share the CD and install C++RTS:
| tl-sun01#share -F nfs -o ro /cdrom/cdrom0 | |
| sp-sni01#mount -F nfs -r tl-sun01:/cdrom/cdrom0 /mnt | |
| sp-sni01#cd /mnt/cds_nyms/l*/ | |
| sp-sni01#pkgadd -d /mnt/cds_nyms/l_0c00/ds02* | |
| sp-sni01Select the C++RTS package. | |
| sp-sni01Install Bug Fix SIN3B089. | |
| sp-sni01#cd /mnt/cds_pl_pleks_nyms/l_0e00/ds04* | |
| sp-sni01Select SIN3B089 Test the cobrun again. |
The end of the Siemens Cobol Installation
Installing Micro Focus Cobol 4.0
Micro Focus Cobol 4.0 must be installed in the products directory in order to accomodate the new /etc/profile which has the ability to handle multiply versions of cobol. This means cobol will no longer exist in /usr/lib/cobol. If an old version exist here, it will need to be moved to the products directory.
Note, on HP systems, Micro Focus Cobol is part of the HP application product line which is installed using "swinstall". This process will install cobol in the /opt/cobol/cobdir directory which should be symbolically linked to /cobol/prod/<ver>.
For HP-UX system also set the following:
SHLIB_PATH=$COBDIR/coblib
export SHLIB_PATH
For IBM AIX system also set the following:
LIBPATH=$COBDIR/coblib
export LIBPATH
NOTE1: Cobol will install its binaries in /usr/bin or /bin. They must be removed. You can use the "rmcobolbin" script found in the disk repository, under /repos1/scripts. If there's nothing in /repos1, go to manual mounts for procedures on mounting /repos1. If the cobol binaries are elsewhere, use the directory name as an argument for the script.
NOTE2: On most HP systems cobol will be in /opt/cobol and will contain a sub-directory named "cobdir". It is this directory that should be symbolically linked. Also, on HP, check the /etc/PATH file to make sure there is no references to any cobol paths.
install program. sh ./install You should see version information about the product.
NOTE: In order for cobol to work properly for the standard logins, the system's /etc/profile must be that of the DSS-AUTOMATION version (tl-sun01:/usr/local/psdist/profile.gen) or the DSS-UNIX version (tl-sun01:/usr/local/bin/profile.dss).
cp /products/mf/cobol-4.0/demo/pi.cbl /tmp
chmod 777 /tmp/pi.cbl
su - oracle (or use any other standard user account)
cd /tmp
cob -Vup pi.cbl
At this point you should see output from the compiler. To check the compile, run the program by typing the following:
cobrun pi
You should see the calculation of pi.