I am getting an error in the RSTLIB
command. ASP device *SAVASPDEV
was not correct. FYI, I am using an ASP machine and I have saved the library present on the ASP device to the save file using the SAVLIB
command. Now I am restoring the library from the save file to the library present on *SYSBAS
. I am using the following command to restore the library:
RSTLIB SAVLIB(libraryonASPdevice)
DEV(*SAVF)
SAVF(testlib/savf1)
RSTLIB(LibraryonSysbas)
RSTASPDEV(*SAVASPDEV)
RSTASP(*SAVASP)
Here, As you mentioned the restore to the library was found on an auxiliary storage pool (
ASP
) different than the one specified by theRSTASPDEV
andRSTASP
parameters.Therefore, you need to pass the correct value for these
RSTASPDEV
andRSTASP
parameters so that the RSTLIB gets successful in restoring the library from theASP device
to*SYSBAS
.So, what you can do is you can either specify the name of the
ASP device
to restore the library using theRSTASPDEV()
parameter or you can specify theASP device number
using theRSTASP()
parameter.RSTASPDEV()
parameter us theASP device name
and that may be on some other system. Therefore, you may not want to use this parameter. You can find out theASP device name
the library was saved from just takingF16
i.e.SHIFT + F4
from theDSPSAVF
command and look at theheader information
after pressingPAGE dOWN
one time.ASP info
is present under theData Saved
.To restore to
*SYSBAS
i.e.*SYSTEM asp
you can specify theASP number
in theRSTASP()
parameter which is1
.RSTLIB SAVLIB(libraryonASPdevice)
DEV(*SAVF)
SAVF(testlib/savf1)
RSTLIB(LibraryonSysbas)
RSTASP(1)
when the specified
ASP number
is 1, then the specified objects are restored to thesystem ASP
, and when the specified ASP is 2 through 32, then objects are restored to the basic user ASP specified.