[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Compile error (Maybe GLOBAL problem)
From: |
Gary Cowell |
Subject: |
Re: [open-cobol-list] Compile error (Maybe GLOBAL problem) |
Date: |
Wed, 11 Feb 2009 07:06:36 +0000 (GMT) |
The errors are going to the stderr stream perhaps?
Try
cobc -x filetst.COB > errlist.lst 2>&1
2>&1 says, put the stderr stream to the same place as stdout, which is
errlist.lst
----- Original Message ----
From: Bill Klein <address@hidden>
To: address@hidden
Sent: Wednesday, 11 February, 2009 5:10:26
Subject: [open-cobol-list] Compile error (Maybe GLOBAL problem)
The attached program causes the compiler to have a problem. ("RelLen" not
found - but it is defined and GLOBAL).
Besides wanting suggestions on what to do to avoid the problem, I have
another question.
I wanted to include the "error message" in this post, but when I tried
cobc -x filetst.COB > errlist.lst
I don't get any output in that file (but do see the error message on my
screen). As someone who isn't used to "Unix-type" environments, is there a
way to get the error messages from a problem compile into a file? Sorry if
this is a dumb question, but I just don't know how to do this.