I have been asked to create a PTF and ship the JAR file
stored in the IFS folder
in the same PTF to the customer.
However, I am not getting how can I save the JAR file
stored on the IFS path to the save file that I just created in my dev library.
I know some of the commands like SAVOBJ, RSTOBJ, CPYTOIMPF, and CPYFRMIMPF
but I think these are not the ones that can achieve this task for me.
What are the steps or commands to save a JAR file
into a save file
?
You can save the
JAR file
stored at theIFS path
to thesave file
using the commandSAV
. Please follow these steps to save theJAR file
tosave file
.devlib
by running theCRTSAVF
command from the command line on IBM i green screen. For Example,crtsavf file(testlib/savf1)
.IFS path
andJAR file
name on IFS and note it down. Assuming yourJAR file
is located at/home/developer/files/jar1.jar
.SAV
command from the command line to save theJAR file
tosave file
.SAV DEV('/qsys.lib/testlib.lib/savf1.file')
OBJ(('/home/developer/files/jar1.jar'))
JAR file
jar1.jar
to thesave file
savf1
. You can then view the save file contents using the commanddspsavf testlib/savf10
there you will see the directory from where thisJAR file
is saved to thissave file
.