Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Example code for Monthly/Weekly Job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Example code for Monthly/Weekly Job
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    Post subject:
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: 356
Location: New York

PostPosted: Tue Sep 18, 2007 4:55 pm    Post subject:
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    Post subject: Both the cases
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

Site Director


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

PostPosted: Tue Sep 18, 2007 6:33 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Sep 18, 2007 6:36 pm    Post subject: Reply to: Monthly/Weekly Job
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    Post subject:
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    Post subject:
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    Post subject:
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: 356
Location: New York

PostPosted: Thu Sep 20, 2007 12:04 pm    Post subject:
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    Post subject: Thanks
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    Post subject: Control Cards
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us