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
Software/Hardware used:
ASKED:
September 6, 2005 8:21 AM
UPDATED:
September 22, 2005 9:12 AM
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
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.
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?