I have set up an HTTP CGI server on the AS400.
When I want to call an existing program (PGMA) from within my CGI program
(RESULT.PGM) which resides in a library (LIB: LIBA) other than de CGI
program (LIB: CGIDEV2), I get the message MCH1001 (Attempt to use permanent
system object PGMA without authority.)
Browser URL : http://ashdp2/cgidev2p/result.pgm
HTTP SETTINGS :
The following directive maps to the library where the cgi program is stored.
Exec /cgidev2p/* /QSYS.LIB/CGIDEV2.LIB/* %%EBCDIC%%
The CGI program is executed, and the message appears when the CGI program
does a call to the program PGMA.
I have already added the library LIBA to the JOBD which the HTTP server
uses, else the CGI doesn't find the program PGMA (message : Cannot resolve
to object PGMA. Type and Subtype X'0201' Authority
I suspect that I have to add an extra derective in the HTTP server, but I
don't know which one.
Any help is appreciated. Thanks in advance.