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: John Culleton
Subject: Re: [open-cobol-list] Declaratives in OC
Date: Tue, 3 Jun 2008 08:40:14 -0400
User-agent: KMail/1.9.7

On Saturday 31 May 2008 01:53:02 pm vince coen wrote:
> 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.

I don't have my old manuals and the books I have do not cover these 
areas (FILE STATUS, SELECT OPTIONAL  etc. ). Is there a decent book 
still in print?  There are some examples in the htcobol test suite 
but I need a little more guidance that.

-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm


reply via email to

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