gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] TABLES and TEXT


From: vince
Subject: Re: [open-cobol-list] TABLES and TEXT
Date: Thu, 21 Feb 2013 23:14:06 +0000
User-agent: KMail/4.6.1 (Linux/2.6.39.4-5.1-desktop; KDE/4.6.5; x86_64; ; )

Hi

To work out what is wrong wee need to see the source code.
However that said, it seems you are using reserved words as your variable 
names and that's a serious no-no so change them. You can eg, just add say 1 
eg, table1, text1 etc for err 4, 30, 51.
 
Vince

On Thursday 21 Feb 2013 19:03:28 Robert Wolfe wrote:
> Hi all!
> 
> New to COBOL and trying to learn it by looking at online resources plus
> working with my housemate, who does RPG and COBOL programming on the
> iSeries platform.
> 
> I am working on a small program that uses tables and when I go to run the
> cobc -x command to compile the code, I get the following errors:
> 
> address@hidden:~/cobol$ cobc -x tables.cob
> tables.cob:4: Error: 'table' reserved word, but not supported yet
> tables.cob:30: Error: 'text' reserved word, but not supported yet
> tables.cob:19: Error: Level 01 item 'result' cannot have OCCURS clause
> tables.cob:27: Error: Level 01 item 'res-text' cannot have OCCURS clause
> tables.cob: In section 'main':
> tables.cob:51: Error: 'text' reserved word, but not supported yet
> 
> If it helps any, 'cobc --version' returns the following information:
> 
> address@hidden:~/cobol$ cobc --version
> cobc (OpenCOBOL) 1.1.0
> Copyright (C) 2001-2009 Keisuke Nishida / Roger While
> Built    Feb 21 2013 10:50:17
> Packaged Feb 06 2009 10:30:55 CET
> 
> Thanks for any insight anyone can give this newbie.
-- 
IMPORTANT – This email and the information in it may be confidential, legally 
privileged and/or protected by law. It is intended solely for the use of the 
person to whom it is addressed. If you are not the intended recipient, please 
notify the sender immediately and do not disclose the contents to any other 
person, use it for any purpose, or store or copy the information in any 
medium. Please also delete all copies of this email and any attachments from 
your system.

If this is an encrypted email it is your responsibility to maintain the 1024 
byte key system even for one-use keys. Once mail has been sent the sending key 
is not kept and therefore a replacement mail cannot be resent.

We cannot guarantee the security or confidentiality of non encrypted email 
communications. We do not accept any liability for losses or damages that you 
may suffer as a result of your receipt of this email including but not limited 
to computer service or system failure, access delays or interruption, data 
non-delivery or mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belongs to Applewood Computers.
Should you communicate with anyone at Applewood Computers by email, you 
consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or 
relating to any agreement concerted practice or other practice that could 
infringe UK or EC competition legislation (unless it is against Security 
requirements).

Dykegrove Limited T/A Applewood Computers is a company registered in England 
(number 01681349) whose registered office is at Applewood House, Epping Road, 
Roydon, Essex, CM19 5DA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]