1752472 Members
7140 Online
108788 Solutions
New Discussion

Cobol Comilation Error

 
SYS ADMIN_7
Advisor

Cobol Comilation Error

Hi All

We are facing Problem in COBOL Compilation on HP UNIX fom last 4 days.


We are able to generate <.int> file which can run through cobrun.
But while making stand alone executable via following
error message comes -

cob -C nolist -xvo ../exe/test1 test1.cob
* Micro Focus COBOL for UNIX V4.0 revision 005 Compiler
* Copyright (C) 1984-1994 Micro Focus Ltd. URN 2XUPK/BMB/01125A
* Accepted - verbose
* Accepted - nolist
* Compiling test1.cob
* Total Messages: 0
* Data: 12864 Code: 8368
* Micro Focus COBOL/2 v4.0 revision XXX Code generator
* Copyright (C) 1984-1994 Micro Focus Ltd. URN 2XUPK/BMB/01125A
* Accepted - verbose
* Accepted - hpoptimize(1)
* Generating test1.int
* Data = 13032 Code = 0 Literals = 1624 Dictionary = 11905
cob: error(s) in code generation: test1.int

Can this happen if some users added to the system.( there is no logic in this)
But one of our coleage told this who added the user and as per him problem started after this,..
Any inputs

Rgds
Suraj
1 REPLY 1
Bruno Ganino
Honored Contributor

Re: Cobol Comilation Error

Suraj, could be permissions of user or directory of destination file.int

Try compilation with option list enabled and after compilation look the list.

Good luck
Bruno
Torino (Turin) +2H