Operating System - HP-UX
1825008 Members
2679 Online
109678 Solutions
New Discussion юеВ

Compiling with micrfocus express

 
SOLVED
Go to solution
Shaamil
Frequent Advisor

Compiling with micrfocus express

Hi all
I have a major problem.
I am running HP-ux 11.00 64bit with microfocus serverexpress. & i get the following error when compiling a program (any program).

Cannot load CMDLINE.SAV +000000000000014605
cob64: error(s) in compilation: temp.cbl

The program am am running below:
This is a non sybase application. In fact pasted below is the application I am trying to run.

identification division.
* *************************************
* *************************************
*
program-id. temp.cbl.
environment division.
configuration section.
source-computer. unix.
object-computer. unix.
*
input-output section.
*file-control.
*data division.
*file section.
*
working-storage section.
*
01 w1-temp pic 99.
*
/
procedure division.
main-control section.

move 1 to w1-temp.
stop run 0.
exit-a00.
exit.

P.S.
I use to have hp-ux 10.20 32bit Micrfocus cobol runtime & developer bundel.
Server Express is as per HP the new release of microfocus cobol.
PLEASE HELP!!!!!!!!!
HP is the greatest
10 REPLIES 10
Alex Glennie
Honored Contributor
Solution

Re: Compiling with micrfocus express

Check if COBDATA is set during the compile and unset it.

From Appendix A of the "Server Express User's Guide":
"If you intend to use COBOL development system programs, we recommend
that you first unset COBDATA, as many of these programs open data
files and are thus affected by the value of COBDATA."
Shaamil
Frequent Advisor

Re: Compiling with micrfocus express

Hi
I removed the COBDATA from my .profile & I got a liitle further thank you.
Now though I get a different error.

Bad magic number whenever we try to compile something.

When we try to run a program, we get dld.sl error.

Any suggestions ????
Thanks
HP is the greatest
Alex Glennie
Honored Contributor

Re: Compiling with micrfocus express

yes post the full error please as cobol is not my best subject .....

early recommendations :

install the latest libc and dld.sl patches
Steve Steel
Honored Contributor

Re: Compiling with micrfocus express

Hi

what does ll -d /lib /usr/lib give

/lib should be a link to /usr/lib


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Shaamil
Frequent Advisor

Re: Compiling with micrfocus express

Hi the following is error messages from diffrent programs

# make inv15
* 001-F Internal error 38. Contact technical support
* Error occurred in inv15.cob at line 6646
cob64: error(s) in code generation: inv15.int
*** Error exit code 1

Stop.

I checked the file & looks fine.

make inv02a
cob64: bad magic number:
*** Error exit code 1

Stop.
HP is the greatest
Alex Glennie
Honored Contributor

Re: Compiling with micrfocus express

First thing to try is to confirm this is not a licensing issue try and compile some of the test programs provided with the product. see /opt/lib/cobol/demo/debug

My advise would then be install PHCO_28425 & PHSS_28434 along with Steve's suggestion.

Is this the latest version of Server Express, if not have you installed the latest Service Pack ?

Contact the vendor ie if you purchased this from HP contact your local sales suport offce, if you purchased it from MF contact their support perhaps ?

what is at line 6646 ?

not too sure I'll be of too much help from here on in .... any cobol developers out there ?


susan gregory_1
Valued Contributor

Re: Compiling with micrfocus express

Does the error still happen if you do the following:

$ export COBDIR=/opt/lib/cobol
$ export SHLIB_PATH=/opt/lib/cobol/lib
$ export LD_LIBRARY_PATH=/opt/lib/cobol/lib
$ export PATH=/opt/lib/cobol/bin:/opt/bin/cobol:$PATH
$ export COBMODE=64
$ cob -x temp.cbl

Shaamil
Frequent Advisor

Re: Compiling with micrfocus express

Hi all
I got the compiling to work when we changed from cob32 to cob64.
I have a problem now with the license manager.

MF-LMF:Wed Apr 30 09:04:36 2003: LMF Starting
MF-LMF:Wed Apr 30 09:04:36 2003: Pipe Create Error
MF-LMF:Wed Apr 30 09:04:36 2003: ENOENT(2): No such file or directory
MF-LMF:Wed Apr 30 09:04:36 2003: LMF Closing Down

I only have have 1 licence (1unit), so i am not sure if that is the issue.
Please help!!!!!
Thanks in advance...

HP is the greatest
Shaamil
Frequent Advisor

Re: Compiling with micrfocus express

Hi all
I got the compiling to work when we changed from cob64 to cob32.
I have a problem now with the license manager.

MF-LMF:Wed Apr 30 09:04:36 2003: LMF Starting
MF-LMF:Wed Apr 30 09:04:36 2003: Pipe Create Error
MF-LMF:Wed Apr 30 09:04:36 2003: ENOENT(2): No such file or directory
MF-LMF:Wed Apr 30 09:04:36 2003: LMF Closing Down

I only have have 1 licence (1unit), so i am not sure if that is the issue.
Please help!!!!!
Thanks in advance...

HP is the greatest
Shaamil
Frequent Advisor

Re: Compiling with micrfocus express

Please ignore the first reply.
Error in that one.
I changed from con64 to cob32.
I am running a 64bit OS, but compiling under 32bit????
HP is the greatest