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

Possible to run SAVLIB *ALLUSR command from scheduled CL job?

Go save option 23 is nice, but how about a way to do it from a scheduled CL job? I don't like to stay late.

The short answer .... NO

This is because the SAVLIB *ALLUSR command can only run from the console in a restricted state. The restricted state is the result of executing the ENDSBS SBS(*ALL)OPTION(*IMMED) command and this command can only be executed from an interactive job running in the controlling subsystem.

Option 23 from the GO SAVE menu executes the following commands:

 
ENDSBS SBS(*ALL)OPTION(*IMMED)
CHGMSGQ MSGQ(QSYSOPR)DLVRY(*BREAK or *NOTIFY)
SAVSECDTA
SAVCFG
SAVLIB LIB(*ALLUSR)ACCPTH(*YES)
SAVDLO DLO(*ALL)FLR(*ANY)
SAV DEV('/qsys.lib/tapexx.devd') +  <--- Specify a real tape device name
    OBJ(('/qsys.lib' *OMIT) +
        ('/qibm/proddata'*OMIT) +
        ('/qopensys/qibm/proddata' *OMIT)) +
    UPDHST(*YES)                         
STRSBS SBSD(QCTL) 

There are third-party backup restore packages that can help you automate this process quite a bit.

==================================
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.


This was last published in November 2002

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

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close