Run SAVSYS in restricted state

435 pts.
Tags:
AS/400
Backup and Recovery
IBM
Rose would like to know, "Is it possible to use IBM's Advanced Job Scheduler to run a SAVSYS in restricted state? If so, do you know of any existing sample code?" -- Michelle Davidson, editor, Search400.com

Answer Wiki

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

The job scheduler would submit a job to a job queue that would run the job under a subsystem…

However, when the system is in a restricted state, all subsystems are ended.

Therefore… no.

If you want to do a full system backup and start it later the same day… From the console, you can do a GO SAVE option 21 and change the start time from *current to an actual later time. The console will sit there inhibited until the time entered and then start the full backup.

Discuss This Question: 3  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
  • TheQuigs
    I believe there are APIs to accomplish this. Companies such as Help Systems use it in the ROBOT/Save product to perform restricted state operations. I believe other companies use them also, but I can't think of any off-hand. Check out the API Finder at the Information Cetner for V5R2: http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/apifinder.htm and for V5R3: http://publib.boulder.ibm.com/iseries/v5r3/ic2924/info/apis/apifinder.htm
    0 pointsBadges:
    report
  • JPLamontre
    If you have an AS400 available for testing boot, try a cl with these commands : tfrjob qctl endsys dlyjob 300 savsys pwrdwnsys it can run. The questions are 1) is it permitted to a batch to the the only running job under restricted state 2) how to know if your job is the one and only one job in qctl in case of system lock, push the panel white button to cut energy then restart THIS KIND OF TEST IS DANGEROUS - DISCUSS WITH YOUR BOSS BEFORE THINKING TO DO IT When your cl will be fine, then add it to the job scheduler. I am very interested by your conclusion, I never have the opportunity to do it.
    0 pointsBadges:
    report
  • DonKennedy
    That is probably not going to work because of the following statement from the help for ENDSYS; Interactive jobs that are transferred to a job queue by the Transfer Job (TFRJOB) command are ended as part of subsystem ending. BTW, anyone know what the difference is between ENDSYS and ENDSBS *ALL *IMMED?
    0 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