Hi,
When I compile the example on this link ( https://community.microfocus.com/microfocus/cobol/net_express__server_express/w/knowledge_base/1589/what-is-a-quick-way-to-test-whether-server-express-can-compile-and-run) with this command:
tehpu091!hpemsm1:/tmp/cob_test [353]> cob -x -v -Q +k -o pi pi.cbl
cob32 -C nolist -x -v -Q +k -o pi pi.cbl
* Micro Focus Server Express V5.1 revision 000 Compiler
* Copyright (C) 1984-2009 Micro Focus (IP) Limited. URN RXCPV/AA0/00000H
* Accepted - verbose
* Accepted - nolist
* Compiling pi.cbl
* Total Messages: 0
* Data: 2548 Code: 365
* Micro Focus Server Express V5.1.00 Code Generator
* Copyright (C) 1984-2009 Micro Focus (IP) Ltd. All rights reserved
* Accepted - verbose
* Generating pi
* Data: 2092 Code: 1712 Literals: 96 Dynamic: 716800
Entry points defined in module: pi.o
*PII
pi
cob32: error opening: /var/opt/aat/d/hp/shr/ems/tmp/cobAAAa13219/a.out
tehpu091!hpemsm1:/tmp/cob_test [355]> ls -l
total 144
-r-------- 1 hpemsm1 users 4055 Oct 28 21:22 pi.cbl
-rw------- 1 hpemsm1 users 2304 Oct 28 21:53 pi.int
-rw------- 1 hpemsm1 users 41472 Oct 28 21:53 pi.idy
-rw------- 1 hpemsm1 users 3587 Oct 28 21:53 pi.o
Why doesn't the linker generate a executable file?
The program can be run with "cobrun":
tehpu091!hpemsm1:/tmp/cob_test [356]> cobrun pi
CALCULATION OF PI
NEXT TERM IS 0.000000000000
PI IS 3.141592653589
tehpu091!hpemsm1:/tmp/cob_test [359]> echo $TMPDIR
/var/opt/aat/d/hp/shr/ems/tmp
tehpu091!hpemsm1:/tmp/cob_test [357]> uname -a
HP-UX tehpu091 B.11.23 U 9000/800 3817456798 unlimited-user license
Thanks in advance.
Regards,
Jose Luis.