- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- error in cobol compilation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 08:36 AM
08-03-2006 08:36 AM
error in cobol compilation
response:
"as: unrecognized option `-41'
/opt/mfcobol/cobdir/bin/cob: error(s) in assembling /var/tmp/cobBAAa13298/%cob0.s"
These are running Cobol41 with these bundles - B2430EB, B2432EB, B2433EB, and B2435.
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 08:42 AM
08-03-2006 08:42 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 08:50 AM
08-03-2006 08:50 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 08:54 AM
08-03-2006 08:54 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 08:59 AM
08-03-2006 08:59 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 09:14 AM
08-03-2006 09:14 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 09:34 AM
08-03-2006 09:34 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 12:17 PM
08-03-2006 12:17 PM
Re: error in cobol compilation
HP's as(1) gives these messages:
$ as -41 #PA
as: warning 2: Unknown option "-41" ignored.
$ as -41 #IPF
error 2005: invalid option '-41'
The foreign devil as(1) gives:
$ /usr/local/bin/as -41
/usr/local/bin/as: unrecognized option `-41'
Of course in both cases it doesn't like the -41. Is there a way to get a verbose output from cob, -v?
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 12:42 PM
08-03-2006 12:42 PM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 01:51 AM
08-04-2006 01:51 AM
Re: error in cobol compilation
"/opt/cobol/cobdir/bin/cob -V nolist -x -v -o /tmp/cobtest
as: unrecognized option `-41'
/opt/mfcobol/cobdir/bin/cob: error(s) in assembling /var/tmp/cobBAAa26968/ldtaab.s"
The -V nolist line was the first part of the returned message on both servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 02:00 AM
08-04-2006 02:00 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 02:02 AM
08-04-2006 02:02 AM
Re: error in cobol compilation
-C nolist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 02:18 AM
08-04-2006 02:18 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 02:21 AM
08-04-2006 02:21 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 03:33 AM
08-04-2006 03:33 AM
Re: error in cobol compilation
cp /opt/cobol/cobdir/demo/tictac.cbl /tmp
cd /tmp
cob -V -v -x -o tictac tictac.cbl
Here is the output on my box, please post yours so that we can compare (I've also set cobopt to match your settings):
[marvin]/tmp: echo ${COBOPT}
sh: COBOPT: Parameter not set.
[marvin]/tmp: echo ${COBDIR}
/opt/cobol/cobdir
[marvin]/tmp: cob -V -v -x -o tictac tictac.cbl
version @(#)cob.c 1.254
PRN=O1UPR/BMD:8e.B4.13.06
PTI=NLS
PTI=Y2K
cob -C nolist -V -v -x -o tictac tictac.cbl
* Micro Focus COBOL for UNIX V4.1 revision 040 Compiler
* Copyright (C) 1984-1999 MERANT International URN O1UPR/BMB/01345T
* Accepted - verbose
* Accepted - nolist
* Compiling tictac.cbl
* Total Messages: 0
* Data: 2536 Code: 1313
* Micro Focus COBOL for Unix V4.1 revision 040 Code generator
* Copyright (C) 1984-1999 MERANT International URN OXUPR/BM0/00000T
* Accepted - verbose
* Accepted - hpoptimize(1)
* Generating tictac.int
* Data: 2704 Code: 0 Literals: 280
cob: Entry points defined in module: tictac.o
*tictac
TICTAC
_HP_tictac
[marvin]/tmp:
[marvin]/tmp:
[marvin]/tmp: ls -l tictac*
-rwxrwx--x 1 cstephen bsp 36864 Aug 4 10:30 tictac
-rw-r--r-- 1 cstephen sys 7882 Aug 4 09:41 tictac.cbl
-rw-rw---- 1 cstephen bsp 3584 Aug 4 10:30 tictac.int
-rw-rw---- 1 cstephen bsp 7160 Aug 4 10:30 tictac.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:38 AM
08-04-2006 08:38 AM
Re: error in cobol compilation
cd /tmp
root@ddah0826:/home/acampb07: cd /tmp
root@ddah0826:/tmp: cob -V -v -x -o tictac tictac.cbl
version @(#)cob.c 1.248
PRN=OXUPR/ZZB:8c.l5.13.03
PTI=NLS
PTI=LMF
PTI=ASLMF
PTI=Y2K
cob -C nolist -V -v -x -o tictac tictac.cbl
* Micro Focus COBOL for UNIX V4.1 revision 030 Compiler
* Copyright (C) 1984-1999 MERANT International URN OXUPR/ZZ0/00000V
* Accepted - verbose
* Accepted - nolist
* Compiling tictac.cbl
* Total Messages: 0
* Data: 2536 Code: 1313
* Micro Focus COBOL for Unix V4.1 revision 030 Code generator
* Copyright (C) 1984-1999 MERANT International URN OXUPR/ZZ0/00000V
* Accepted - verbose
* Accepted - hpoptimize(1)
* Generating tictac.int
* Data: 2704 Code: 0 Literals: 280
cob: Entry points defined in module: tictac.o
*tictac
TICTAC
_HP_tictac
as: unrecognized option `-41'
cob: error(s) in assembling /var/tmp/cobBAAa18880/%cob0.s
root@ddah0826:/tmp: root@ddah0826:/tmp: ls -l tic*
-rw------- 1 root sys 7882 Aug 4 15:23 tictac.cbl
-rw------- 1 root sys 3584 Aug 4 15:23 tictac.int
-rw------- 1 root sys 7276 Aug 4 15:23 tictac.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 09:21 AM
08-04-2006 09:21 AM
Re: error in cobol compilation
Try this command and also this time echo ${COBDIR} and ${COBOPT} -- which may be unset so it is apples to apples.
We're going to add -A -V to make the assembler output it's version:
[marvin]/tmp:
[marvin]/tmp: echo ${COBDIR}
/opt/cobol/cobdir
[marvin]/tmp: echo ${COBOPT}
sh: COBOPT: Parameter not set.
[marvin]/tmp: cob -V -v -x -A -V -o tictac tictac.cbl
version @(#)cob.c 1.254
PRN=O1UPR/BMD:8e.B4.13.06
PTI=NLS
PTI=Y2K
cob -V -v -x -A -V -o tictac tictac.cbl
* Micro Focus COBOL for UNIX V4.1 revision 040 Compiler
* Copyright (C) 1984-1999 MERANT International URN O1UPR/BMB/01345T
* Accepted - verbose
* Compiling tictac.cbl
* Total Messages: 0
* Data: 2536 Code: 1313
* Micro Focus COBOL for Unix V4.1 revision 040 Code generator
* Copyright (C) 1984-1999 MERANT International URN OXUPR/BM0/00000T
* Accepted - verbose
* Accepted - hpoptimize(1)
* Generating tictac.int
* Data: 2704 Code: 0 Literals: 280
cob: Entry points defined in module: tictac.o
*tictac
TICTAC
_HP_tictac
as: HP92453-03 UX.11.01.17 PA-RISC 2.0 Assembler
as: HP92453-03 UX.11.01.17 PA-RISC 2.0 Assembler
[marvin]/tmp:
----------------------------------------
What I am beginning to wonder is did you install ANSI/C along with COBOL because both are required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 07:49 AM
08-07-2006 07:49 AM
Re: error in cobol compilation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 07:52 AM
08-07-2006 07:52 AM