[Top][All Lists]

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

Re: [open-cobol-list] Finding errors in source code.

From: vince
Subject: Re: [open-cobol-list] Finding errors in source code.
Date: Sun, 22 Jan 2012 16:13:26 +0000
User-agent: KMail/1.13.5 (Linux/; KDE/4.4.5; i686; ; )

On Sunday 22 Jan 2012 13:47:32 john Culleton wrote:
> I was compiling a program written by someone else and got an
> error message of the form:
> 305 Expected X found Y
> The particular error is not relevant to this post. My question
> is: how do I find line 305?
> 1. Is it the 305th line in the source code?


> 2. Is it the 305th line including all the copybooks?
> 3. Is it the 305th line including copybooks but excluding
>    comment lines?
> 4. Is it something else?
> A part of this problem is the flawed listing found with the -t
> parameter. The comment lines are omitted and in the instant case
> at least huge blocks of blank lines are entered seemingly at
> random. And unless one uses the classic format there are no line
> numbers to use for reference.

I use kate under Linux with kde (but also should work with Gnome with the 
right dependencies installed). This provides line numbers for source code.

On my version it does NOT have a -t option but -E produces progname.i file 
that includes all lines included copy books etc with blank lines in place of * 
or *> etc. However regardless of format (fixed, free) the layout os free and 
left justified which is not the easiest to read so I stick to only looking at 
the source file where the line numbers reported in error msgs match up 
assuming its not reporting within a copybook in which case the line is within 
that (going by memory here).

I assume you are using OC v1.1 and not v1.0. If you are using the older one I 
would recommend you upgrade.


reply via email to

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