ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Saving Spool Files in V5R4 with Savobj

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

  • Saving Spool Files in V5R4 with Savobj

    Hey gang

    I hear in V5R4 you are able to save spool files, the idea is I don't want to save every spool file on my i5 (nor do i want to make a policy to do so) but just grab a few spools for some testing on recovery system in a few weeks

    I know there are a couple ways to do this, but this one has got me frusrated because its not working and I want to know why!

    I create an outq and put the files I want to use for my test then following what the info center site is telling me I save my outq

    Code:
    SAVOBJ OBJ(TESTOUTQ) LIB(PIPER) DEV(*SAVF) OBJTYPE(*OUTQ) SAVF(PIPER/MYSAVF) SPLFDTA(*ALL)
    (deleting the outq) and then restoring it


    Code:
      
    RSTOBJ OBJ(TESTOUTQ) 
    SAVLIB(PIPER)) DEV(*SAVF)
    OBJTYPE(*OUTQ) SAVF( PIPER/MYSAVF)   SPLFDTA(*NEW)

    I expected to see the outq and the spool files contained with in

    the outq restores...not the spools

    not happening..what gives?

    any ideas?
    Last edited by Piper; April 30, 2008, 09:28 AM.
    Piper with the Camden County Emerald Society Pipes and Drums
    Check us out
    http://www.ccespd.org

    The Dodge Coronet Registry
    http://www.dodgecoronet.com

  • #2
    Re: Saving Spool Files in V5R4 with Savobj

    If it helps same here...

    Im looking into it

    jamie
    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


    • #3
      Re: Saving Spool Files in V5R4 with Savobj

      Weird, I saved it to tape then did a
      Code:
          
      
      Selection or command                                                           
      SAVOBJ OBJ(TESTOUTQ) LIB(PIPER) DEV(TAP01) OBJTYPE(*OUTQ) ENDOPT(*LEAVE) S
      LFDTA(*ALL) QDTA(*NONE)                                                        
      
      
      
      DSPTAP DEV(TAP01) DATA(*SAVRST)  
      
                                                                              
      Spooled     File                                    Creation  Creation  
      File        Number  Job         User        Number  Date      Time      
      PRT2      000014  DSP01        PIPER     008039  02/20/08  09:57:42  
      PRT2      000024  DSP01        PIPER     008039  02/20/08  10:10:19  
      PRT2      000004   PIPER       PIPER    006964  02/14/08  15:50:43  
      PRT2      000008   PIPER      PIPER       006964  02/14/08  15:51:09  
      PRT2      000012   PIPER     PIPER      006964  02/14/08  15:51:32  
      PRT2      000016   PIPER        PIPER       006964  02/14/08  15:53:06  
      HOSTNAME    000001  HOSTNAME     PIPER      010970  03/03/08  14:30:15  
      MOVSPOOLC   000001  MOVSPOOLC    PIPER      011186  03/06/08  10:24:37  
      QPSEC    000001  OPERATIONS  PIPER      027596  04/11/08  11:30:27

      its something with the Save file....odd
      Piper with the Camden County Emerald Society Pipes and Drums
      Check us out
      http://www.ccespd.org

      The Dodge Coronet Registry
      http://www.dodgecoronet.com

      Comment


      • #4
        Re: Saving Spool Files in V5R4 with Savobj

        and I just restored from tape, and...the outq restored..no spool file data I am stumped..must be missing something
        Piper with the Camden County Emerald Society Pipes and Drums
        Check us out
        http://www.ccespd.org

        The Dodge Coronet Registry
        http://www.dodgecoronet.com

        Comment


        • #5
          Re: Saving Spool Files in V5R4 with Savobj

          are you using SPLFDTA(*NEW) on the restore?
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment


          • #6
            Re: Saving Spool Files in V5R4 with Savobj

            yeppers

            its just on the restore I am having the problems...I am baffled this should be pretty cut and dry process
            Last edited by Piper; April 30, 2008, 10:51 AM.
            Piper with the Camden County Emerald Society Pipes and Drums
            Check us out
            http://www.ccespd.org

            The Dodge Coronet Registry
            http://www.dodgecoronet.com

            Comment


            • #7
              Re: Saving Spool Files in V5R4 with Savobj

              from the help text:
              Code:
              Specifies whether to restore spooled file data and        
              attributes.                                               
                                                                        
              *NEW                                                      
                  For each output queue that is restored, spooled file  
                  data that was saved with the output queue is restored, 
                  if it does not already exist on the system.
              seems that it won't restore the spooled files if they already exist on the system...
              I'm not anti-social, I just don't like people -Tommy Holden

              Comment


              • #8
                Re: Saving Spool Files in V5R4 with Savobj

                BINGO!!!


                I still had copies of the spools in another q lib

                your the man..i should have just read into it more
                Piper with the Camden County Emerald Society Pipes and Drums
                Check us out
                http://www.ccespd.org

                The Dodge Coronet Registry
                http://www.dodgecoronet.com

                Comment


                • #9
                  Re: Saving Spool Files in V5R4 with Savobj

                  i owe ya a beer man...if you are ever in the philly area..let me know!
                  Piper with the Camden County Emerald Society Pipes and Drums
                  Check us out
                  http://www.ccespd.org

                  The Dodge Coronet Registry
                  http://www.dodgecoronet.com

                  Comment

                  Working...
                  X