TechTip: Work with CGI Spooled Files (WRKCGISPLF)
** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
I would like to thank Steven for sharing this program to us. I finally have it running after many tries. From my URL I typed http://myiseries/cgi-bin/wrkcgisplf. I am using CONFIG as my HTTP server instance and had to add 2 directives as shown below (seq# 01020 & 01030). The protection directives (seq#00470 to 00620) are for allowing only valid AS400 users to run this program and viewing only spooled files that they have access to. If you opt not to include these protection directives, make sure that your outqueues DSPDTA parameter is set to *YES. Don't forget to stop and start the DEFAULT http server after applying the changes. 00470 Protection WRKSPLF { 00480 PasswdFile %%SYSTEM%% 00490 ACLOverride Off 00500 PostMask All 00510 GetMask All 00520 AuthType Basic 00530 ServerID Work_with_Spooled_Files 00540 UserID %%CLIENT%% 00550 } 00620 Protect /cgi-bin/wrkcgisplf WRKSPLF 01020 Map /cgi-bin/* /QSYS.LIB/YOURLIB.LIB/*.PGM 01030 Exec /QSYS.LIB/YOURLIB.LIB/*
** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
I would like to thank Steven for sharing this program to us. I finally have it running after many tries. From my URL I typed http://myiseries/cgi-bin/wrkcgisplf. I am using CONFIG as my HTTP server instance and had to add 2 directives as shown below (seq# 01020 & 01030). The protection directives (seq#00470 to 00620) are for allowing only valid AS400 users to run this program and viewing only spooled files that they have access to. If you opt not to include these protection directives, make sure that your outqueues DSPDTA parameter is set to *YES. Don't forget to stop and start the DEFAULT http server after applying the changes. 00470 Protection WRKSPLF { 00480 PasswdFile %%SYSTEM%% 00490 ACLOverride Off 00500 PostMask All 00510 GetMask All 00520 AuthType Basic 00530 ServerID Work_with_Spooled_Files 00540 UserID %%CLIENT%% 00550 } 00620 Protect /cgi-bin/wrkcgisplf WRKSPLF 01020 Map /cgi-bin/* /QSYS.LIB/YOURLIB.LIB/*.PGM 01030 Exec /QSYS.LIB/YOURLIB.LIB/*
Comment