Hi, I have received a PTF save file from one of the Java developers that holds a JAR file
. I have uploaded the save file from my Windows PC to the IBM i library.
The save file is DEVLIB/PTFSAVF
. When I ran the DSPSAVF DEVLIB/PTFSAVF
command to see the save contents, I could see the JAR
object is there in the save file and also ifs directory showing as /home/jvdev/ptf/2024
which means JAR file
was initially saved from this directory and sent to me in a save file.
However, I am not getting how can I extract the JAR file
from the save file to one of my IFS folder locations/home/CKETS/files/JARfiles/
which is a different folder than the Jar file folder from where it is saved.
What are the steps or commands to extract/restore the JAR
file from savf to the new IFS location.
You can run the
RST
command from the command line toextract/restore
theJAR file
from thesave file
back to theIFS folder
.To restore to the same directory location from where it was saved initially saved but on your IBM i IFS location. You can run this command.
RST DEV('/qsys.lib/devlib.lib/ptfsavf.file')
OBJ(('/home/jvdev/ptf/2024/')) crtprndir(*yes)
This will restore the jar file at the ifs path
/home/jvdev/ptf/2024/
.However, if you want it to extract/restore to a different IFS folder than it was saved then you can do that by running the following command.
RST DEV('/qsys.lib/devlib.lib/ptfsavf.file')
obj(('/home/jvdev/ptf/2024/' *include
'/home/ckets/files/jarfiles/'))
crtprndir(*yes)
Here, the only difference is we have
*INCLUDE
to specify the new path name of the JAR file to restore on IFS. Provided the new path to restore ‘/home/ckets/files/jarfiles/
‘.