[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Bug Report
From: |
Matt Young |
Subject: |
[open-cobol-list] Bug Report |
Date: |
Mon Feb 13 18:03:01 2006 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20060107) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a (possible) bug and I was hoping someone could help me with it.
I am attempting to compile a subprogram called hashsub.cbl. No matter
what I do, I cannot compile with the using clause on the procedure
division. Here is the linkage section and the procedure division in
question:
LINKAGE SECTION.
01 INV-NUM.
05 INV-HALF-1 PIC 99.
05 INV-HALF-2 PIC 99.
01 PAGE-COUNT PIC 99.
01 RETURN-KEY PIC 999.
PROCEDURE DIVISION
USING INV-NUM PAGE-COUNT RETURN-KEY.
1000-HASHSUB.
MOVE 10 TO SUM-OF-HALVES
DIVIDE SUM-OF-HALVES BY PAGE-COUNT GIVING
TRASH-DIVIDE-RESULT REMAINDER RETURN-KEY.
ADD 2 TO RETURN-KEY
EXIT PROGRAM.
here is the error when I compile:
/tmp/cobKFODur.c: In function `main':
/tmp/cobKFODur.c:105: error: too few arguments to function `hashsub'
If I remove the "USING" clause from the procedure division, it compiles
just fine. Also where do I go to see the list of known bugs? Is there
a workaround for this one
- --
Cheers,
Matt Young
address@hidden
GPG Public Key: http://youngdev.net/?page=gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD8ThhOLPtyzxdcQYRAo2sAKCNzwjbgeZcNRBEN5TYOpqs0azxKwCbBBqP
LfSrl8kO7SaaCZD8Rbg7TsQ=
=dIFV
-----END PGP SIGNATURE-----
- [open-cobol-list] Bug Report,
Matt Young <=