Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rm cobol procedure error 204

1,262 views
Skip to first unread message

lba...@sboa.in.gov

unread,
Aug 30, 2006, 8:55:42 AM8/30/06
to
I am using the Flexgen cobol generator on a Unix computer. I have a
program that I want to run overnight in a batch file. I have RM Cobol
and I thought I could just type "runcobol programname.cob" at the
prompt and it would work. But I am getting Cobol procedure error 204.
This error seems to be that it can't find all the subprograms or
something else that it needs to run.

Can anyone tell me what else I need to do to get this to run? A path
statement? A parameter in the runcobol command? Thanks.

Frederico Fonseca

unread,
Aug 30, 2006, 10:28:44 AM8/30/06
to

Indeed it is a PATH that you need.

Before running the program you will need to set variable RUNPATH to
the list of directories containing the programs and eventually the
filenames you will be processing.
e.g. RUNPATH=/usr/progs/myproglib1:/usr/progs/myproglib2

How you set the variable depends on the shell used.

If you are going to run this on the background you should probably set
a shell script to set both the RUNPATH and TERM variables correctly.

Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com

RobH

unread,
Aug 30, 2006, 10:44:02 AM8/30/06
to

It could be that you are not loading the flexgen shared object library,
libflexgen.so. This shared object can be loaded automatically if you place
it in a subdirectory called rmcoboso/ in the same directory as the RM/COBOL
runtime (runcobol). If you do not wish to load the libflexgen.so
automatically, you call always use the -l command line option to specify the
library. The runtime will report the loaded dynamic libraries if you execute
with the -v command line option (e.g., runcobol foo -v ).

If you can find the flexgen shared object library and are still getting a
procedure error 204 then you probably cannot find a COBOL subprogram. You
can use the RUNPATH environment variable to specify the directories where
the COBOL programs (and data files) reside.

-Robert Heady

Liant Software Corp.


<lba...@sboa.in.gov> wrote in message
news:1156942541....@m79g2000cwm.googlegroups.com...

lba...@sboa.in.gov

unread,
Aug 30, 2006, 1:19:37 PM8/30/06
to
Thanks for the response. I thought it was something like that, but I
guess I can not figure out what path to use or I am not using the
correct command. We have AIX 4.2. I have a PATH= statement in the
.profile that I tried using. I typed:

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/flextmp/fg4:
/flextmp/fg4/fg4bin:.

export PATH

and then tried it again with the same error. I have used some other
ones also. I will keep looking for the correct path information. Is
there a file in the flexgen or rm cobol directories that would have the
correct path? Thanks.

lba...@sboa.in.gov

unread,
Aug 30, 2006, 2:12:15 PM8/30/06
to
Thank you very much. I will try your suggestions.

Linda

Frederico Fonseca

unread,
Aug 30, 2006, 2:36:50 PM8/30/06
to
Top posting corrected.

Its not the PATH variable you need to set, but the RUNPATH. Check your
users guide for more information.
PATH is for executables
RUNPATH is RM/COBOL specific and tells the runtime where to find COBOL
objects or FILES

You should also read Flexgen documentation, as I am pretty sure they
will state you need to add their library to the command line using the
"-l" option.

lba...@sboa.in.gov

unread,
Aug 30, 2006, 2:53:15 PM8/30/06
to
Thanks for the help. I will try that.

Linda

lba...@sboa.in.gov

unread,
Sep 1, 2006, 4:19:03 PM9/1/06
to
I was able to get it to work. It was the RUNPATH. Thank you very much
for all of your help!

Linda

0 new messages