Re: rm cobol procedure error 204



Top posting corrected.
On 30 Aug 2006 10:19:37 -0700, lbaker@xxxxxxxxxxx wrote:

Frederico Fonseca wrote:
On 30 Aug 2006 05:55:42 -0700, lbaker@xxxxxxxxxxx wrote:

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.
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
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.

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.



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



Relevant Pages

  • Re: rm cobol procedure error 204
    ... But I am getting Cobol procedure error 204. ... A parameter in the runcobol command? ... a shell script to set both the RUNPATH and TERM variables correctly. ... I will keep looking for the correct path information. ...
    (comp.lang.cobol)
  • Re: rm cobol procedure error 204
    ... But I am getting Cobol procedure error 204. ... A parameter in the runcobol command? ... Before running the program you will need to set variable RUNPATH to ... I will keep looking for the correct path information. ...
    (comp.lang.cobol)
  • Re: New "base document" available
    ... COBOL, ... That is not normally how command lines are constructed. ... unless Keyword parameters are being employed. ... 15 clp-name usage pointer. ...
    (comp.lang.cobol)
  • Re: COBOL stored procedure for DB2
    ... I've gone back to the IBM documentation, to remind myself of the requirements for building and executing COBOL SP's using Object COBOL 4.1, rather than Server Express. ... The stored procedure is loaded under the control of DB2 -- as opposed to the client-side environment -- hence DB2 will need to inherit the COBOL environment for the purposes of executing the stored procedure. ... confirm the cob command used for creating the SP module. ... exec sql begin declare section end-exec. ...
    (comp.lang.cobol)
  • Re: COBOL stored procedure for DB2
    ... for building and executing COBOL SP's using Object COBOL 4.1, ... Before building a stored procedure on AIX 4.2.1 using the Micro Focus 4.1 ... confirm the cob command used for creating the SP module. ... exec sql begin declare section end-exec. ...
    (comp.lang.cobol)