gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] Declaratives in OC


From: vince coen
Subject: Re: [open-cobol-list] Declaratives in OC
Date: Sat, 31 May 2008 18:53:02 +0100
User-agent: KMail/1.9.6

Hi;
On Saturday 31 May 2008, John Culleton wrote:
> I wrote a little program that opens a line sequential file. reads
> through it looking for lines beginning with "\input" , then picks up
> a file name from the same record.  Then it opens another file
> dynamically using the file name discovered. All that works.
>
> The problem comes when the file to be opened doesn't exist. HTCOBOL
> fails silently but OC gives an error message. What I want to do is
> trap the error so that processing can continue. The classic way to do
> that is with a DECLARATIVES section.
>
> Do DECLARATIVES work in OC?  With HTCOBOL?
>
> I can post the complete program but it runs 84 lines.

Now this could be complicated:) Why not just trap for any error (non zero) 
after opening and also consider select optional?

Vince.



-- 
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.

We cannot guarantee the security or confidentiality of 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.

Dykegrove Limited T/A Applewood Computers is a company registered in England
and Wales (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]