ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

List all Spool File in QEZJOBLOG to Physical File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • List all Spool File in QEZJOBLOG to Physical File

    Dear Seniors,
    Need the help on listing all spool file on QEZJOBLOG to one physical file.
    This is for deleting thespool file that already saved, have tried the BRMS way (Expired Spool) but not work.....
    Need advice please......
    also need the code........
    Last edited by union123; July 28, 2008, 04:30 AM.

  • #2
    Re: List all Spool File in QEZJOBLOG to Physical File

    Please have a look at API QUSLSPL (List Spooled Files)
    API finder


    There is also an example in the online library for deleting spoolfiles:
    Example: Deleting old spooled files

    Birgitta

    Comment


    • #3
      Re: List all Spool File in QEZJOBLOG to Physical File

      Many Thanks Birgitta, for the code and the guide...

      But Have one problem, I do not know how to change the code (only know a little CLP) so It can list all Spool in QEZJOBLOG in to one big PF along with all the attribute.

      Last edited by union123; July 28, 2008, 09:45 PM.

      Comment


      • #4
        Re: List all Spool File in QEZJOBLOG to Physical File

        Sorry, but if you are not able to read or write RPG programs and only know a little CL the usage of the APIs cannot be explained in a few minutes.

        The only other (less elegant) way is to use the WRKOUTQ command and instead of displaying the result generate a spoolfile.
        WRKOUTQ OUTQ(QEZJOBLOG) OUTPUT(*PRINT)
        Then use the CL command CPYSPLF to copy the generated spoolfile into a phyiscal file.
        CPYSPLF FILE(QPRTSPLQ) TOFILE(YOURLIB/YOURPF) SPLNBR(*LAST)
        Birgitta

        Comment


        • #5
          Re: List all Spool File in QEZJOBLOG to Physical File

          Wahh.. very sorry....
          So thats the only way ya......
          Many thanks ....
          hiks hiks,,,,,,

          Comment


          • #6
            Re: List all Spool File in QEZJOBLOG to Physical File

            if you mail me 1 susan b anthony dollar coin I will post the code in RPG with an api that will list all spooled files in QEZJOBLOG to a physical file!

            jamie "ask me my address" flanary
            All my answers were extracted from the "Big Dummy's Guide to the As400"
            and I take no responsibility for any of them.

            www.code400.com

            Comment


            • #7
              Re: List all Spool File in QEZJOBLOG to Physical File

              it was welly.soegiantoro-at-gmail-dot-com

              Many Thanks...
              Sorry if my english is not good enough
              Last edited by jamief; August 7, 2008, 06:28 AM. Reason: hide the email

              Comment

              Working...
              X