  Apache, with COBOL and DCL CGI? 
 The Question is:
 
We have installed Apache on our Alpha server and are trying to convert web
 programs to work with Apache.  We use DCL to call cobol programs from the web.
  When I put the following code in a DCL procedure and run it on the web I get
 the following error in
the log.
 
DCL procedure:
$ write sys$output f$fao("!AS!/!/","Content-type: text/plain")
$ SHOW SYSTEM/NOPROC
 
Error log:
Fri Feb  6 15:09:34 2004] [error] [client 151.141.86.248] couldn't spawn child
 process: /www2$root/cgi002/fwaga082e.com
06-Feb-2004 15:09:51 [204038DC] GENERIC_SOCKETPAIR_inet: SYS$ASSIGN() - 2312
 
Do you know what might be causing this problem?
 The Answer is :
&gt;We have installed Apache on our Alpha server and are trying to convert 
&gt; programs to work with Apache.  We use DCL to call cobol programs from the w
&gt;  When I put the following code in a DCL procedure and run it on the web I 
&gt; the following error
&gt;the l
 
&gt;Error l
&gt;Fri Feb  6 15:09:34 2004] [error] [client 151.141.86.248] couldn't spawn ch
&gt; process: /www2$root/cgi002/fwaga082e.
&gt;06-Feb-2004 15:09:51 [204038DC] GENERIC_SOCKETPAIR_inet: SYS$ASSIGN() - 2
 
    For your Apache account, what is your setting for Prclm? I don't
    know if this is the issue on your system, but we use
 
	Prclm: 20
 
    and I was able to do the following on our OpenVMS Alpha V7.2-1
    system:
 
http://afscob.zko.dec.com/cgi-bin/test-cobol
OpenVMS V7.2-1  on node AFSCOB   8-FEB-2004 07:49:20.12  Uptime  36 18:18:00
 
Compiling/linking/running COBOL program ...
 
In COBOL program TEST-COBOL
 
 
APACHE$ROOT:[CGI-BIN]TEST-COBOL.COB;1
 
identification division.
program-id. test-cobol.
environment division.
data division.
procedure division.
p1.	display "In COBOL program TEST-COBOL". stop run.
 
APACHE$COMMON:[CGI-BIN]TEST-COBOL.COM;1
 
$ write sys$output f$fao("!AS!/!/","Content-type: text/plain")
$ SHOW SYSTEM/NOPROC
$ create test-cobol.cob
identification division.
program-id. test-cobol.
environment division.
data division.
procedure division.
p1.	display "In COBOL program TEST-COBOL". stop run.
$ write sys$output "Compiling/linking/running COBOL program ..."
$ cobol test-cobol
$ link test-cobol
$ run test-cobol
$ type test-cobol.co*
$ delete test-cobol.exe;,.obj;,.cob;
$ exit
 Answer written or last revised on  8-FEB-2004 
