IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Example code for Monthly/Weekly Job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anu2
Warnings : 1

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Tue Sep 18, 2007 4:10 pm
Reply with quote

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
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Tue Sep 18, 2007 4:15 pm
Reply with quote

Hi,
it depends on the application,
Can you please tell the your application. thanks!!!
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Tue Sep 18, 2007 4:55 pm
Reply with quote

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
View user's profile Send private message
anu2
Warnings : 1

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Tue Sep 18, 2007 6:31 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 18, 2007 6:33 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Sep 18, 2007 6:36 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Sep 18, 2007 7:25 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Sep 18, 2007 8:45 pm
Reply with quote

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
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 20, 2007 11:55 am
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu Sep 20, 2007 12:04 pm
Reply with quote

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
View user's profile Send private message
anu2
Warnings : 1

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Thu Sep 20, 2007 12:09 pm
Reply with quote

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
View user's profile Send private message
anu2
Warnings : 1

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Thu Sep 20, 2007 12:11 pm
Reply with quote

Hi Ksk,

Could u please send the code for Control card and the respective JCL?

anu
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top