+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 35

Thread: TechTip: Work with CGI Spooled Files (WRKCGISPLF)

  1. #1
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Just wanted to thank you for the cool program. We have users that want to download spool files all the time but can not get the hang of going to the IFS drive. Thanks.

  2. #2
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    The tip looks great and everything compiles just fine. I obviously am not experienced enough to get it running. I have tried various URL's without success.For example: http://MyIseries:8001/cgi-bin/WRKCGISPLF or http://MyIseries:8001/cgi-bin/qsys.lib/peter.lib/WRKCGISPLF or http://MyIseries:8001/cgi-bin/qsys.lib/peter.lib/WRKCGISPLF.pgm etc. I always get a 404 file not found error. Can you point me to in the right direction please?

  3. #3
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Peter, did you ever get this utility up and running? I also have not been able to get it running. Is a new HTTP server instance required and how should it be configured? I haven't had any luck with my trials to date.

  4. #4
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    kmckrack, I have it partially running. I get the first input screen OK, but then after clicking the "Get Spooled Files" button, it gives me a "Cannot fid server" message. I have been debugging the utility (writing statements to a file I have included ) and found that the "Eval current_URL = GetURL" statement gets my DEFAULT server name, but not my actual one which is using port 8001. Why this is, is beyond my experience. Any input from anyone on this would be appreciated.

  5. #5
    Guest.Visitor Guest

    Default 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/*

  6. #6
    Nogusta123 Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    I can't wait to get in and change the way it looks etc to fit in with the CSS schemes of the rest of our web pages. Thanks for providing an interesting powerful utility

  7. #7
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Hi apagilagan, Thanks for the directives that you give. It indirectly answer my previous question that I've posted in IGNITe-400. I really appreciate it!! Now, can the user ID that is keyed in be pass to the CGI program? regards

  8. #8
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Hi Apagilagan Thank for the tip!! How can I pass a user ID from the password dialog box if I don't want to get the it (the user ID) from the first page of the WRKCGISPLF? (Meaning I don't want user to go to other people's spoolfile) regards

  9. #9
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Hi Araman, Remote user id can be retrieved by calling the cgi interface API QtmhGetEnv. This API has been called a number of times under $ProcInput subroutine. Just copy the lines that retrieve the REQUEST_METHOD and change the literal 'REQUEST_METHOD' into 'REMOTE_USER'. After the statement that calls the API, insert a statement to move the first 10 characters of InBuffer into a global variable. In the MakePrompt subprocedure, move the value of that global variable into UserName instead of the default value of *ALL.

  10. #10
    Guest.Visitor Guest

    Default TechTip: Work with CGI Spooled Files (WRKCGISPLF)

    ** This thread discusses the article: TechTip: Work with CGI Spooled Files (WRKCGISPLF) **
    Hi, I believe this is an authorization issue. You did not mention whether you use the protection directive or not. If you did, it means that the user id you used to log on is not authorized to the spool files of the user you keyed in in WRKCGISPLF screen. If not, I believe user id QTMHHTP1 is being used to log on for which it has no special authority. You may want to change the DSPDTA parameter on your output queue from *NO to *YES to allow all users to have access to any spool files.

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. TechTip: Spooled Files and PDF, Part Four
    By ggirouard@baltex.com in forum Document Management
    Replies: 39
    Last Post: 09-27-2011, 02:09 AM
  2. TechTip: Spooled Files and PDF, Part One
    By Guest.Visitor in forum Document Management
    Replies: 60
    Last Post: 07-26-2010, 12:42 PM
  3. TechTip: Spooled Files and PDF, Appendix A
    By gotto@islandpacific.com in forum Document Management
    Replies: 7
    Last Post: 10-19-2009, 11:32 AM
  4. TechTip: Spooled Files and PDF, Part Two
    By Guest.Visitor in forum Document Management
    Replies: 13
    Last Post: 10-19-2009, 10:45 AM
  5. TechTip: TechTip: Spooled Files and PDF, Part Three
    By scott@balrrexp.com in forum Document Management
    Replies: 23
    Last Post: 10-04-2006, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts