Notes on the SAV and RST commands

VLF Deployment Check Lists

 

Notes on the SAV and RST commands

 

You will need to use the SAV and RST commands to save and restore all your objects to and from the save file (the SAVOBJ and RSTOBJ commands cannot be used for IFS objects because these commands are used to save IBM i objects that reside in libraries.)

In the following example:

·      SAV will save a large number of the required files from the images folder and a private folder called VLF_Private_Development.

·      The save also includes all the RAMP-NL deployment cab files contained in a directory called RAMP_NewLook.

·      The target save file is called IFSSave.

You can use this example as a starting point for building your own SAV commands, but you need to ensure that the command contains the path and name of the save file you have created, all the files required for your site, and that the path names are correct.

If you wish to enter this command freehand from the command line, use CALL QCMD. Pressing F11 from within QCMD will provide you with space to enter the SAV command with many objects.

 

SAV DEV('/QSYS.lib/QGPL.lib/B01_IFS.file')                                   

OBJ(('/LANSA_vlfpgmlib/webserver/images/ VF_*.*')                          

   ('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development/VF_*.*')         

   ('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development/FP_*.*')          

   ('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development/UF_*.*')         

   ('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development/RAMP_NewLook/*'))

 

If there is not enough space to specify all the objects you require, you can create more than one save file. For example you could create one save file for objects in the Images folder and another one for objects in the private working folder.

Check the save file using the DSPSAVF command (press Enter to display the objects in the subsequent directories until you've reached the end of the file).

To restore the saved objects to another IFS directory from the save file (IFSSave), you need to issue three RST commands - one for each save directory. Please note that the target directories must already exist on the IFS when running the RST.

The following RST will restore the objects in the saved images directory to a directory of the same name on the target system.

RST DEV('/qsys.lib/vlfpgmlib.lib/B01_IFS.file') OBJ(('/LANSA_vlfpgmlib/webserver/images'))

 

The following RST will restore the objects in the saved private folder (VLF_Private_Development) to a new private folder on the target system called VLF_Private_Production.

RST DEV('/qsys.lib/vlfpgmlib.lib/B01_IFS.file') OBJ(('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development' *INCLUDE '/LANSA_vlfpgmlib/webserver/images/VLF_Private_Production'))

 

The following RST will restore the objects in the saved RAMP_Newlook folder to a new folder on the target system.

RST DEV('/qsys.lib/vlfpgmlib.lib/B01_IFS.file')

OBJ(('/LANSA_vlfpgmlib/webserver/images/VLF_Private_Development/RAMP_NewLook' *INCLUDE '/LANSA_vlfpgmlib/webserver/images/VLF_Private_Production/RAMP_NewLook'))

 

This SAV command saves all files named screens.jsn from folder axes/ts/screens and any private working definition sub-folders into a save file named RAMPTSF in library QGPL:

 

SAV DEV('/qsys.lib/qgpl.lib/RAMPTSF.file') OBJ(('/axes/ts/screens/')) PATTERN(('screens.jsn'))