Restore using RST command

6,045 pts.
Tags:
IFS
IFS Commands
RST
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?

ASKED: January 8, 2010  5:54 PM
UPDATED: January 11, 2010  5:21 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

There should be something in the job log to tell you why the folder(s) were not created.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • DanD
    If you would c&p the sav and rst commands you are using to here I may be able to help.
    2,865 pointsBadges:
    report
  • WoodEngineer
    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) ?
    6,045 pointsBadges:
    report
  • DanD
    shouldn't there be an * at the end of *INCLUDE ‘/home/SpoolRst/PR/ ?
    2,865 pointsBadges:
    report
  • WoodEngineer
    Thanks for the tip, DanD. That makes sense. We'll give it a try.
    6,045 pointsBadges:
    report
  • WoodEngineer
    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.
    6,045 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following