Unattended savsys

0 pts.
Tags:
Backup & recovery
CLP
I will be moving my backup AS/400 to a secure building for D.R. purposes. I need to figure out a way to automatically get a savsys done without doing it from the console. We are on V5R3. Right now I have a cl setup with all of the save commands but when the endsbs *all *immed (with batch limit of 120 minutes) runs I get the message CPF1052 endsbs *all not allowed in current environment. I have the job running in the controlling subsystem QCTL. Anyone? Thanks, Tammy
ASKED: December 7, 2006  4:04 PM
UPDATED: December 29, 2009  4:57 PM

Answer Wiki

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

When you run a “endsbs *all”, the only thing running is the console. I think you can run the console as a PC using the software VNC (allow you to run the console from a remote location via TCP/IP). If you want to run the back up as a batch job in QCTL, you will have to stop all the subsystem singlely but not QCTL. This will leave QCTL being able to run multiple jobs in QCTL.

================================================================

The SAVSYS command cannot be run except as an interactive command. This is because the system cannot be active when the operating system is saved. And that means the system must be in restricted state so that no subsystems are active (including the controlling subsystem, QCTL or QBASE).

But that’s usually not a problem since there’s no reason to run SAVSYS more than maybe once or possibly twice a year. You take the system to restricted state, run SAVSYS, and start the controlling subsystem. Done for the year.

Everything else can be done without restricted state. That includes the two components of SAVSYS that should be done on a regular basis — SAVSECDTA and SAVCFG. Since those don’t require a SAVSYS, why run the command on a regular basis anyway?

Note that BRMS does provide a method of initiating a SAVSYS from batch. Also note that at V5R3 a SAVSYS can be scheduled to run at the console interactively for those who don’t have BRMS.

Tom

Discuss This Question: 4  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
  • MartinSchloesser
    We just went thru this... look in this manual from IBM starting on page 118 - Console Monitoring. http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c4153453.pdf this alows automation of savsys Martin
    0 pointsBadges:
    report
  • Denny1
    If you have BRMS and OS400 V5R3 the option 21 save can be submitted as batch job. It works better if you have tape library. STRBKUBRM CTLGRP(FULLSAVE) SBMJOB(*CTLSBS) + RETENTION(*DAYS 90)
    0 pointsBadges:
    report
  • Stiloabarthian
    Actually, as of V5R3, you can run a SAVSYS in batch as long as you put together a CL program and the job is submitted to jobq QCTL. The CL should contain:
    ENDSBS SBS(*ALL) OPTION(*IMMED) BCHTIMLMT(720)
    The BCHTIMLMT is the amount of time, in minutes, used to bring the system "back to life" in case there is a problem. You can then add a SAVSYS and any other save commands you like. Ian
    175 pointsBadges:
    report
  • wpoulin
    Tammys, I have Full System Backup running thru the Job Scheduler. Would be willing to share the code if you send me an email; wpoulin@rev.state.nh.us. Bill
    2,480 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