Q
Manage Learn to apply best practices and optimize your operations.

Restore a single program source program

Is there a method to restore a single program source program from a backup rather than restore the entire library?

Yes .... Use the FILEMBR parameter on the RSTOBJ command:

For example, to restore only member "AAA" from a previous save of source file QPGMRSRC:

 
 RSTOBJ OBJ(QPGMSRC) 
        SAVLIB(SYSADMSRC) 
        DEV(*SAVF) 
        OBJTYPE(*FILE) 
        SAVF(KENNETH/TEMPSAV)
        FILEMBR((*ALL (AAA))) 
        MBROPT(*ALL) 
        ALWOBJDIF(*ALL) RSTLIB(KENNETH) 

For additional information, use the F1 key to display the HELP panel for this parameter. You will see that you can specify *ALL or a specific file name for the FILE parameter (as long as it is also specified on the OBJ parameter) and for MEMBER you can specify, *ALL, *NONE, a generic member name or a specific member name.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask the Experts yourself: Our Backup & Recovery gurus are waiting to answer your questions.

Search400.com's targeted search engine: Get relevant information on backup & recovery.

Check out this Search400.com Featured Topic on backup & recovery.


Dig Deeper on Data backup, storage and retrieval on iSeries

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close