View previous topic :: View next topic
|
Author |
Message |
anu2 Warnings : 1 New User
Joined: 10 Jun 2007 Posts: 36 Location: Chennai
|
|
|
|
Can i get an example(with code) of a job which is running on Monthly and Weekly basis?
Data may come from file or tables.. |
|
Back to top |
|
 |
kgumraj2
New User
.jpg)
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
Hi,
it depends on the application,
Can you please tell the your application. thanks!!! |
|
Back to top |
|
 |
ksk
Active User
.jpg)
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Hi Anu,
what exactly you are expecting? If a JOB would be triggered by Scheduler or in some other way Monthly, it will be a monthly JOB. Same is true for weekly JOB also. Post your requirement clearly. |
|
Back to top |
|
 |
anu2 Warnings : 1 New User
Joined: 10 Jun 2007 Posts: 36 Location: Chennai
|
|
|
|
I need both the cases.
Does anyone have any example (some code), specifying the same ?
I need a JOB/JCL for it.
Thanks ! |
|
Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As has been mentioned, you need to explain your requirement.
Is there some reason this is not simply done by the scheduler? |
|
Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Why can't you look at one or more of your own site's weekly/monthly jobs to find whatever it is you're looking for? |
|
Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Many times the only difference between a daily, weekly, monthly, and annual job is a parameter and the DSN's of the files. |
|
Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Quote: |
Does anyone have any example |
you could sample JCL with 1 step IEFBR14.
And define this as Weekly or Monthly in scheduler and run the job. |
|
Back to top |
|
 |
diwa_thilak
Active User
.jpg)
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Anu,
You need to clearly state your requirements, Is your shop using any scheduler (CA7/CA11) ?
If your shop is using CA7, then LJOB command in CA7 will do the trick for you. It will get the information only for single job.
If you need to find entire list, you can make use of Savers/Bundle ( these are all shop specific tools) to get the list of jobs with run times.
You can also submit a job to retrieve this information from CA7 by giving high level qualifier. I beleieve any project will follow a naming convention, you can make of this convention in listing your jobs.
Hope i answered your question. If you still have doubts post your queries.
Ram
Please avoid posting your personel/business mail ids in the forum.
Cheers,
Diwakar
--------------------------------------------
Nobody is Perfect. I am Nobody |
|
Back to top |
|
 |
ksk
Active User
.jpg)
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Hi,
Apart from scheduler, you can do by using Control Cards also. You have to assign 'M' or 'W' or 'D' to that particular filed to run as Monthly or Weekly or Daily jobs repspectively.
But please note that u need to code in JCL to accept Control card. |
|
Back to top |
|
 |
anu2 Warnings : 1 New User
Joined: 10 Jun 2007 Posts: 36 Location: Chennai
|
|
|
|
I am not sure about the scheduler being used. I need to check.
Ram , Please throw some light on trigering of jobs.Will appreciate if u provide the code. |
|
Back to top |
|
 |
anu2 Warnings : 1 New User
Joined: 10 Jun 2007 Posts: 36 Location: Chennai
|
|
|
|
Hi Ksk,
Could u please send the code for Control card and the respective JCL?
anu |
|
Back to top |
|
 |
|