Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Comparing the date of execution of a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Tue Oct 04, 2011 2:32 pm    Post subject: Comparing the date of execution of a job
Reply with quote

We have a job which executes whenever the file is available. The file is available once in a quarter, but the problem is if the file is available more than once within a same quarter then the job will get executed that many times. I want to circumvented this by introducing a condition like if the job has already ran for that particular quarter then it should not run in that particular quarter even the file is available multiple times.

Can anyone please let me know how can I acheive this?
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1458
Location: Azeroth

PostPosted: Tue Oct 04, 2011 2:56 pm    Post subject:
Reply with quote

Job Scheduler is capable of doing this. Your scheduling people would be able to assist you with your job.
For CA7 & control-m there is a calendar feature which allows the job to be scheduled each month/quater/year.
Not sure about other schedulers.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Oct 04, 2011 3:01 pm    Post subject: Reply to: Comparing the date of execution of a JCL
Reply with quote

and how are You going to determine which one is the right one ?
no jcl trick will ever be able to do it,
onlyYour scheduler can/might be able to do it.

however the initial question should be asked and meditated upon
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Tue Oct 04, 2011 5:29 pm    Post subject:
Reply with quote

Hi pullaiah.cts !

As Enrico mentioned:
And how are You going to determine which one is the right one ?


you could collect the incomming files by using GDG's. Create a new (+1) for the new available file.

Run a fix determined Job who handels all the created Gdg's and after that, delete them an define a new emty GDG for collecting the next incoming files.
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Oct 07, 2011 2:40 pm    Post subject:
Reply with quote

It's a weird requirement, but still do'able. You need to use a flag file in order to determine whether to process the file/not. Inside the job which is getting triggered after each arrival of the file, place a check at first step whether this is the first run. If first run continue processing and update the flag file for completion of first run.

When the flag file is updated, the second run check will fail and processing should be discontinued. Also using scheduler place another job to run at end of every quarter to clear the flag file.
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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us