× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, option 2 was what I was looking for.

I have already set the system start/end times using 'go power' and set the
clean up options.  I have then created a file with jobs to run at either
system start or end and written my own system start/end programs which look
at the file of jobs and runs each job depending on whether it is a system
start or a system end job and I then scheduled my system end program to run
at a certain time each day.

As this system is powered off every night (the fans on a 270 are a bit noisy
for my small apartment, although I do use it instead of an alarm clock each
morning) and this time varies each day, I was finding that simply using the
job scheduler was not working for my day end program as I wanted it to.

I was not aware of the QEZUSRCLNP program but this appears to be exactly
what I want.  My only complaint would be that the user clean up program is
run after the clean up jobs have been submitted and I would have preferred
it to be run first!!!


--
Fred Mitchell
Concise Consulting Ltd
Newcastle upon Tyne, England
mailto:fred@ccl400.com
http://www.ccl400.com

-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of Mark Waterbury
Sent: 21 August 2002 14:57
To: midrange-l@midrange.com
Subject: Re: System shut down program?


Hello:

Here you go:

Alternative ONE:
============
You could just write any CL program to automate the sequence of
commands you desire, (such as reversing the commands in your
QSTRUP *PGM), and then simply use the OS/400 Job Schedule
(WRKJOBSCDE) to "schedule" when you want this job to run!

Alternative TWO:
============
Use the "Operational Assistant" features of OS/400, as follows:

Use the Operational Assistant "Clean-up" functions...

Type GO ASSIST to see the Operational Assistant menu, and
then select option "11. Customize your system" (or GO SETUP)
and then option "2. Cleanup options".

or GO CLEANUP to see the Clean-Up options.

You can select "1. Change cleanup options", where you can
specify "Y" for "Yes" you want cleanup to run at the scheduled time, and you
can select *SCDPWROFF if you want cleanup to
run just before the scheduled Power Off of your system (see below).

You can press Help on any of the "Clean-up" menus to read about  customizing
the clean-up process. Here below is more or less what
it tells you to do.

1. Retrieve the source for QEZUSRCLNP as follows:

RTVCLSRC QSYS/QEZUSRCLNP SRCFILE(QGPL/QCLSRC)

2. Modify this exit program source to suit, and then recompile it into QSYS.

3. use the CHGCLNUP command (or the menu option above)
to change the system clean-up options, to "schedule" when you
want the "clean-up" job to run, and when it runs, it will invoke your "user
exit" to "clean up user  objects" (the program above).

Next, you type "GO POWER"  (or GO SETUP and select option 3)
to set up your "power-on power-off" schedule.  Here you specify
whether you want to power-off and power-on your OS/400 system
automatically once a day, once a week, etc.

NOTE: say you specified to power down at 11:55 PM each day, and
on the "Cleanup Options" panel,

That should do it! :-)

Regards,

Mark

----- Original Message -----
From: "Fred Mitchell" <lists@ccl400.com>
To: <midrange-l@midrange.com>
Sent: Wednesday, August 21, 2002 4:57 AM
Subject: System shut down program?


>
> I know all about the system startup program but I am trying to work out
how
> to shut the system down automatically by reversing the commands in the
> startup program and then doing a PWRDWNSYS.
>
> For example, using the utilities available on the 400 I can schedule the
> system to power off at 10pm and run the cleanup routines at *SCDPWROFF.  I
> can also use the job scheduler to run my system shut down program at a
> specific time each day but there is not an option to run at *SCDPWROFF.
>
> Does anyone know of a way of doing this apart from buying some software, I
> am quite willing to write my own though.
>
> --
> Fred Mitchell
> Concise Consulting Ltd
> Newcastle upon Tyne, England
> mailto:fred@ccl400.com
> http://www.ccl400.com
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.