Home > Archive > Cobol > October 2005 > How-to know a cob has been compiled
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How-to know a cob has been compiled
|
|
| LEDL800 2005-10-17, 6:55 pm |
| Hi all !
I've a list of .cob w ly updated
I need a quick way to now when a cob has been compiled.
OS is AIX, runtime cobol is
RM/COBOL Runtime - Version 8.01.00 for IBM RS/6000
If i use "runcobol FILE.COB" the date appears but then the program hangs
and i have to kill manually...
Thank you
bye
| |
| clvrmnky 2005-10-17, 6:55 pm |
| On 17/10/2005 10:47 AM, LEDL800 wrote:
> I've a list of .cob w ly updated
>
> I need a quick way to now when a cob has been compiled.
>
> OS is AIX, runtime cobol is
>
> RM/COBOL Runtime - Version 8.01.00 for IBM RS/6000
>
> If i use "runcobol FILE.COB" the date appears but then the program hangs
> and i have to kill manually...
>
If I understand the question, you are trying to ensure that you do not
run a partially complete compiled program. I'm assuming here that a
..cob file is a compiled COBOL program that needs to be run in the COBOL
runtime environment (i.e., it is not linked to run as a native executable.)
This sounds like a build-time problem. Your automated build environment
should be able to notify you when it is done. It should also build
targets in a temporary build directory, copying the target over to the
place you want the compiled code only when it completes successfully.
Other than that, is there an option you can provide to "runcobol" that
tells it to simply check if it can actually run the compiled code you
pass as an argument. I'm thinking of a sort of "verbose, don't run but
show me what you will do" option, if that makes sense in this context.
| |
| Frederico Fonseca 2005-10-17, 6:55 pm |
| On Mon, 17 Oct 2005 14:47:38 GMT, LEDL800 <ledl800@NOSPAMfreemail.it>
wrote:
>Hi all !
>
>
>I've a list of .cob w ly updated
>
>I need a quick way to now when a cob has been compiled.
>
>OS is AIX, runtime cobol is
>
> RM/COBOL Runtime - Version 8.01.00 for IBM RS/6000
>
>
>If i use "runcobol FILE.COB" the date appears but then the program hangs
>and i have to kill manually...
A rmcobol program will fail if it hasn't been compiled correctly.
If your program hangs then there is something else wrong.
To know when a program has been compiled you can run program rmmappgm
and this will output all type of information about the program.
output can be to standard output or to a printer (which can be a
file).
Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
| |
| Richard 2005-10-17, 6:55 pm |
| > then the program hangs
It has probably gone into an infinite loop, for example has a PERFORM
UNTIL stepper > 100 where stepper is PIC 99 (and therefore cannot be >
99), or you have READ AT END but the file failed to OPEN.
Show us the code.
| |
|
| Frederico Fonseca <real-email-in-msg-spam@email.com> wrote in
news:bu48l1tjksvon13ngl1gbo3ckonl1f5ui3@
4ax.com:
> On Mon, 17 Oct 2005 14:47:38 GMT, LEDL800 <ledl800@NOSPAMfreemail.it>
> wrote:
>
>
> A rmcobol program will fail if it hasn't been compiled correctly.
> If your program hangs then there is something else wrong.
>
>
> To know when a program has been compiled you can run program rmmappgm
> and this will output all type of information about the program.
>
>
> output can be to standard output or to a printer (which can be a
> file).
>
>
>
> Frederico Fonseca
> ema il: frederico_fonseca at syssoft-int.com
Thank you !!!!
"runcobol rmmappgm.cob -A=nomefile.cob" is the solution !!!!
Bye
|
|
|
|
|