5,525 pts.
 Restore using RST command
One of our developers needs to restore some folders to the IFS. These are folders originally on the IFS, saved using the SAV command. We are having trouble getting the system to create the folders automatically as part of the RST command. It seems to only want to restore objects for folders that already exist on the system. We have tried "Create Parent Directories" *YES but the directories are not created.

Does anyone know how to get the RST command to create the folders and sub-folders automatically and then restore the objects in each folder?



Software/Hardware used:
ASKED: January 8, 2010  5:54 PM
UPDATED: January 11, 2010  5:21 PM

Answer Wiki:
There should be something in the job log to tell you why the folder(s) were not created.
Last Wiki Answer Submitted:  January 8, 2010  7:42 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you would c&p the sav and rst commands you are using to here I may be able to help.

 2,865 pts.

 

A bit more info:

This is the command we are running:
RST DEV(‘/qsys.lib/tap06.devd’)
OBJ((‘/home/SpoolFiles/PR/*’ *INCLUDE ‘/home/SpoolRst/PR/’))
ALWOBJDIF(*ALL)

Just looking at it now, the string following *INCLUDE looks suspicious.
Shouldnt’ that be ‘**’ (double asterisk) ?

 5,525 pts.

 

shouldn’t there be an * at the end of *INCLUDE ‘/home/SpoolRst/PR/ ?

 2,865 pts.

 

Thanks for the tip, DanD. That makes sense. We’ll give it a try.

 5,525 pts.

 

There are no errors in the job log. The job just runs to completion with status 00.

I experimented more Friday. Totally unexpected results when we specified *INCLUDE ‘/home/SpoolRst/PR/* The system created a folder named “*” then restored the folders we requested as sub-folders. Fortunately, IBM allows deletion of such a folder. I was a little worried more might be deleted.

This command did what we needed:
RST DEV(‘/qsys.lib/dbslib.lib/ifstest.file’) <<–used a save file to speed up testing
OBJ((‘/home/spoolfiles/pr/adl/*’ *INCLUDE ‘/home/TestRst/adl/’))
OUTPUT(*print)
CRTPRNDIR(*YES)
PRNDIROWN(Some_User_ID)

Following the restore the objects we needed were in folder TestRst and its sub-folders. The system created TestRst automatically during the restore.

Thanks for the suggestions. They helped us find a solution.

 5,525 pts.