I am sure I have read articles about this in the past but cannot find one.
I am trying to create an weekly job that performs a SAVLIB *NONSYS (requires
the system to be in a restricted state) then re ipl's. Up to now it has run
on the console and is started manually.
I would like to make this a batch program so it can run unattended. I tried
submitting the job to QCTL but when I checked, performing an ENSBS *ALL ends
all batch jobs in QCTL.
I then tried closing all subsystems one by one in the CL and leaving QCTL
but the SAVLIB then fails as it requires the machine to be in a restricted
state.
Any ideas or pointers ?
Michael Hudson
Langley Computer Services Ltd
You can to run a job from the console that waits until a specific time or
event then execute the ENNNDSBS *ALL command. This job can be made to
monitor for the restricted state message in the system operator msgq before
executing a restricted state command like SAVSYS or SAVLIB *NONSYS. This job
can also restart everything afterwards by starting STRSBS QCTL
"Michael Hudson" <michael.hu...@langley.co.uk> wrote in message
news:ZYJM4.357$y8.9...@news.enterprise.net...
> Can anyone help?
>
> I am sure I have read articles about this in the past but cannot find one.
>
> I am trying to create an weekly job that performs a SAVLIB *NONSYS (requires
> the system to be in a restricted state) then re ipl's. Up to now it has run
> on the console and is started manually.
>
> I would like to make this a batch program so it can run unattended. I tried
> submitting the job to QCTL but when I checked, performing an ENSBS *ALL ends
> all batch jobs in QCTL.
>
> I then tried closing all subsystems one by one in the CL and leaving QCTL
> but the SAVLIB then fails as it requires the machine to be in a restricted
> state.
>
> Any ideas or pointers ?
>
> Michael Hudson
> Langley Computer Services Ltd
AFAIK you only need to be in restricted state for a SAVSYS; you can do a SAVLIB
*NONSYS by first ending selected subsystems (e.g. ENDSBS QINTER, ENDTCP, etc.)
to remove any locks on system files and then running a SAVLIB *NONSYS in batch
subsystem (e.g. QBATCH).
--
Gernot Langle
PARAS Solutions, Inc.
http://www.parassolutions.com
mailto:gla...@parassolutions.com
If you have the lic PGM 5769JS1 (job schedular/400) you can set the console
in a monitor function. This allows you to submit a batch job to the console.
Peter Brouwers.
"Michael Hudson" <michael.hu...@langley.co.uk> wrote in message
news:ZYJM4.357$y8.9...@news.enterprise.net...
Just create a break controlling program which can execute commands.
Logon to the console and put the messagequeue in break with F4, F10 and fill
in the BRKCTLPGM.
Now you can send a predefined (commandmsg) from batch to the console.
The break controlling program would catch the message and execute the
predefined command.
Success,
René E. Breedveld
Mid Range Systems Consultancy B.V.
"Michael Hudson" <michael.hu...@langley.co.uk> schreef in bericht
Regards,
Glenn.
Michael Hudson wrote in message ...
Good Luck,
Paul
I have to ask... why do you need a weekly SAVLIB *NONSYS? Are you
adding, removing, updating your IBM products weekly? Why include the
SAVLIB *IBM portion at all on a weekly basis? Remove that and
thereby remove the need for restricted state. Just do the SAVLIB *ALLUSR
weekly; and only do the SAVLIB *IBM when needed, such as after a release
upgrade or after a cume package.
But if you have reasons, I'm curious to hear them. I suspect some sites
have reasons; I've just never heard them.
Tom Liotta
In article <ZYJM4.357$y8.9...@news.enterprise.net>,
"Michael Hudson" <michael.hu...@langley.co.uk> wrote:
> Can anyone help?
>
> I am sure I have read articles about this in the past but cannot find
one.
>
> I am trying to create an weekly job that performs a SAVLIB *NONSYS
(requires
> the system to be in a restricted state) then re ipl's. Up to now it
has run
> on the console and is started manually.
>
> I would like to make this a batch program so it can run unattended. I
tried
> submitting the job to QCTL but when I checked, performing an ENSBS
*ALL ends
> all batch jobs in QCTL.
>
> I then tried closing all subsystems one by one in the CL and leaving
QCTL
> but the SAVLIB then fails as it requires the machine to be in a
restricted
> state.
>
> Any ideas or pointers ?
>
> Michael Hudson
> Langley Computer Services Ltd
>
>
--
Tom Liotta
AS/400 systems programmer
Sent via Deja.com http://www.deja.com/
Before you buy.
Michael
Thomas <tho...@inorbit.com> wrote in message
news:8e5ejj$evn$1...@nnrp1.deja.com...
Thank You
Michael Hudson
Michael Hudson <michael.hu...@langley.co.uk> wrote in message
news:ZYJM4.357$y8.9...@news.enterprise.net...