ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to restore with new library using RSTLIB

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

  • How to restore with new library using RSTLIB

    Hi All,

    Here I have one problem during restoration, if anyone could help that would be great.

    I am restoring a library via CLLE program in batch.
    During restoration if we give a new library name in RSTLIB parameter of RSTLIB command then journals and their receivers are not restored.

    Steps that I am doing

    Step1: CRTLIB LIB(&MyNewLib)
    Step2: I am using following parameters on RSTLIB command

    RSTLIB SAVLIB(TEST) DEV(*SAVF) SAVF(SAVELIBSC/MYSAVF) RSTLIB(NIL) OUTPUT(*PRINT)

    Here is the error I am getting. All objects are restore except following journal and its receiver.

    Message ID . . . . . . : CPF7086 Severity . . . . . . . : 30
    Message type . . . . . : Diagnostic
    Date sent . . . . . . : 08/20/10 Time sent . . . . . . : 01:50:33

    Message . . . . : Cannot restore journal PF002JRN to library NIL.
    Cause . . . . . : Library NIL is not the library where journal PF002JRN was originally created. Journal PF002JRN was originally created in library TEST and can only be restored to this library. This operation is not allowed because the association between journal receivers and the journal would be lost.
    Recovery . . . : Change the name of the library in the RSTLIB parameter value. Then try the request again.

    Kindly let me know how we can overcome with this problem.
    Cheers...
    Nil

  • #2
    Re: How to restore with new library using RSTLIB

    Journal receivers can only be restored to a library of the same name as the one theyw ere saved from. It can be a different system, but has to be the same name. Never tried with a journal, but it could be the same also.

    Do you need to include the journal and receiver in the save ?
    Greg Craill: "Life's hard - Get a helmet !!"

    Comment


    • #3
      Re: How to restore with new library using RSTLIB

      Yes I need journal and receiver in the save, so is there any way to restore journal and receiver with differnet save?


      Originally posted by gcraill View Post
      Journal receivers can only be restored to a library of the same name as the one theyw ere saved from. It can be a different system, but has to be the same name. Never tried with a journal, but it could be the same also.

      Do you need to include the journal and receiver in the save ?
      Last edited by Nil; August 31, 2010, 12:38 AM. Reason: update edit post
      Cheers...
      Nil

      Comment


      • #4
        Re: How to restore with new library using RSTLIB

        Short answer NO, you have to restore the journal objects into the same library name that they were saved from.

        Why do you want to restore the journal receiver to a diffferent library ?
        Last edited by gcraill; September 1, 2010, 01:44 AM.
        Greg Craill: "Life's hard - Get a helmet !!"

        Comment


        • #5
          Re: How to restore with new library using RSTLIB

          It is a client requirement that if they save a library in save-file then they should be able to restore into different library or on the same based on their convenience.

          Originally posted by gcraill View Post
          Short answer NO, you have to restore the journal objects into the same library name that they were saved from.

          Why do you want to restore the journal receiver to a diffferent library ?
          Cheers...
          Nil

          Comment


          • #6
            Re: How to restore with new library using RSTLIB

            Exclude the journal and receiver from their saves, so it will restore nicely based on their requiremnt.
            If required run your own separate save of the receivers etc for audit/security reasons.

            If the users insists then download the system modification request form from the IBM website and tell them they are free to fill it in and send to IBM, when their change is implemented and they upgrade to the next release to get their feature then you will implement it process wise for them.
            Greg Craill: "Life's hard - Get a helmet !!"

            Comment


            • #7
              Re: How to restore with new library using RSTLIB

              Thanks Greg....
              You are suggesting IBM website, could you please give me mail id for the same because I don't know where to ask them on ibm website?
              Cheers...
              Nil

              Comment


              • #8
                Re: How to restore with new library using RSTLIB

                Couldn't he submit this to the COMMON requirements committee too? There is more than one way to get an IBM change.

                Comment


                • #9
                  Re: How to restore with new library using RSTLIB

                  could you please tell me what is this COMMON requirement committe.
                  I need to know IBM support web site for this type of issue.
                  Cheers...
                  Nil

                  Comment


                  • #10
                    Re: How to restore with new library using RSTLIB

                    Contact IBM or your business partner for the modification request, but don't hold your breath waiting for them.

                    Tell the users their request is not able to be fulfilled and list the alternatives for them. They can't change it so they have to live with it.
                    Greg Craill: "Life's hard - Get a helmet !!"

                    Comment

                    Working...
                    X