- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: declare multiple date in jil autosys
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 05:04 AM
тАО08-20-2006 05:04 AM
declare multiple date in jil autosys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 07:10 AM
тАО08-20-2006 07:10 AM
Re: declare multiple date in jil autosys
You question lacks enough detail for anyone to answer. It actually lacks a question.
I have consulted the force (A. Clay), a crystal (Beer mug, Pete Randall), and the tea leaves tell me you may be trying to to date calculations.
http://www.hpux.ws/caljd.sh
http://www.hpux.ws/caljd.pl
Thats as good as I can do based on the information given.
Sadly the force can't be used by me, a mere non-Jedi to lift a beer glass. That I'm doing right now as I click the mouse.
Apologies if my joke offends. Zero point me. I got enough.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 09:03 AM
тАО08-20-2006 09:03 AM
Re: declare multiple date in jil autosys
you mistake me ,i need a jil script for this job like i want to run one job in every month end how i can write a jil script in autosys .
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 11:21 AM
тАО08-20-2006 11:21 AM
Re: declare multiple date in jil autosys
You have cron fire up a job 28-31 every month, have that job use the date script to figure out if its the last day of the month and if so execute your script.
Glad you have a sense of humor too.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2006 12:19 PM
тАО08-20-2006 12:19 PM
Re: declare multiple date in jil autosys
Best I can tell autosys is a platform independent load balancing script engine.
You are asking an incomplete question about it in an HPUX forum. Most readers here will not have heard about autosys, and your question is probably platform independent.
I would encourage you to seek out an autosys forum, or... shudder... read its documentation / help files... or engage its support system. You are paying for it right? So request the help you deserve!
Finally a hint towards your question...
The start of a month is easy right? 1-Jan, 1-Feb, 1-Mar...
The end of a month is simply the start of next month minus 1 day! Independenty of whether the month is 28 days, 31 days, leapyear or not.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:30 AM
тАО08-22-2006 03:30 AM
Re: declare multiple date in jil autosys
You can specify dates and give (that group of dates) a name i.e. end_of_month You then reference the calendar name you've created in the job that you are going to create using the run_calendar or exclude_calender attributes.
So the job will either run on the day specified or not run on the day specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:33 AM
тАО08-22-2006 03:33 AM
Re: declare multiple date in jil autosys
What is a "jil" script. My wife's name is Jil, but I don't think you want one of her scripts.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:36 AM
тАО08-22-2006 03:36 AM
Re: declare multiple date in jil autosys
In this case 'jil' is referring to a job script that is configured within Autosys to run certain jobs, or series of jobs.
Autosys can do some faily sophisticated job scheduling. Jobs can run based on other jobs status and you have some greater flexibility for scheduling than with cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:41 AM
тАО08-22-2006 03:41 AM
Re: declare multiple date in jil autosys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:56 AM
тАО08-22-2006 03:56 AM
Re: declare multiple date in jil autosys
if you have oracle you can, change 'job_name' to whatever field (or fields) you want to extract:-
1) $ORACLE_HOME/bin/sqlplus -s autosys/
whenever sqlerror exit 1
set echo off
set flush on
set feedback off
set heading off
set linesize 1024
set pagesize 0
set pause off
set scan off
set trimout on
set verify off
select job_name from job
/
exit
!@#
or
use xql facility change required field (also uses wildcards) i.e
xql -Uautosys -P
"select job_name from job where job_name like 'ACT%'">job_list_file
or
(complete configuration for all jobs)
autorep -J ALL -q > autosys.jobs
2. edit job_list_file and change whatever you want.
3. update in JIL
*To Change the machine the jobs will run on (change 'machine' attribute to whatever attribute you wish to update)
cat job_list_file |while read job_name
do
echo "update_job: $job_name"
echo "machine: {desired machine_name}"
done | jil -v batch
also
jil < autosys.jobs works as long as you specify the "update_job: job_name" and then attribute to be changed.
regards