Home > Ask the AS/400 Experts > Questions & Answers > Possible to run SAVLIB *ALLUSR command from scheduled CL job?
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

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

Ken Graap EXPERT RESPONSE FROM: Ken Graap

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site
>
QUESTION POSED ON: 04 November 2002
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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts