CGI on AS400
Posted on 2002-04-22
Some time ago I created a RPG-program that generates a web page on the AS400. (in the /QSYS.LIB/STCKLIB.LIB, so not in a folder)
This page is updated 2 times a day. Because the update time is only 2 to 3 seconds, I like to call this program with a CGI script.
I already did the following:
- I changed the output from a Source file to buffer like :
C EVAL #LINE = SRCDTA
C EVAL #LENGTH = %len(%trim(#LINE))
C CALLB 'QtmhWrStout'
C PARM #LINE
C PARM #LENGTH
C PARM #ERR
- I tried to make a CGI script from some examples, but I can not figureout how to do this.
Is there anybody who knows how to build such CGI-script and how to run it ?