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

Triggering the job from a dataset


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Murari Chakrakodi

New User


Joined: 26 Sep 2007
Posts: 13
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 12:07 pm
Reply with quote

Hi,

Is there any way to trigger a job from a dataset?
My requirement is as follows:

A job has to be triggered immedietely after a dataset or new GDG generation is created.

Thanks,
Murari
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Oct 29, 2007 12:16 pm
Reply with quote

Quote:
job has to be triggered immedietely after a dataset or new GDG generation is created.


if the dataset is ... created by a job on the same MF where the second job should run,
why not ( In Your scheduler ) put a dependency of the second job on the first one,

if the dataset is sent by NDM or FTP,
then , if I remember correctly, OPC has "external triggers" one of which
is the existence/creation of a dataset
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Mon Oct 29, 2007 1:17 pm
Reply with quote

Hi Murari,

Quote:
A job has to be triggered immedietely after a dataset or new GDG generation is created.


Yup, you can make it, but you have to do it in Schedular (CA7).

Put a dependency as Dataset.
Back to top
View user's profile Send private message
Murari Chakrakodi

New User


Joined: 26 Sep 2007
Posts: 13
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 6:28 pm
Reply with quote

Hi,

Actually I am tranmitting a file from one mainframe system to another.The job has to be triggered in other system

Thanks,
Murari
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 6:34 pm
Reply with quote

Murari,

Quote:
Actually I am tranmitting a file from one mainframe system to another.The job has to be triggered in other system


Speak with your Scheduling team. As Enrico highlighted 'external triggers' does exist.
Back to top
View user's profile Send private message
Cathy

New User


Joined: 06 Aug 2007
Posts: 2
Location: Romania

PostPosted: Tue Feb 12, 2008 5:57 pm
Reply with quote

Hi,

Does anyone know if the dataset triggering the job needs to contain data in order to do the triggering?

I have a job which is triggered when the triggering dataset has data, but when it is empty the job is not triggered any more.
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Feb 12, 2008 6:08 pm
Reply with quote

Murari Chakrakodi

Triggering can be done from one system to another system if other system uses some scheduling tool (Eg CA7, Control-M etc) and the triggering schedule should be defined in the tool by a scheduler.

Send you dataset name and the job to be triggered by the dataset to the scheduler and he will arrange it for you.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 12, 2008 6:26 pm
Reply with quote

check Your scheduler documentation

for OPC now Tivoli workload scheduler
here is a page regarding dataset triggering
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/eqqtig00/2.2.6.12?ACTION=MATCHES&REQUEST=dataset+trigger&TYPE=FUZZY&SHELF=EQQTBK00.bks&DT=20020717114311&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
which might explain the behaviour You experience
Back to top
View user's profile Send private message
Cathy

New User


Joined: 06 Aug 2007
Posts: 2
Location: Romania

PostPosted: Tue Feb 19, 2008 1:51 pm
Reply with quote

enrico-sorichetti wrote:
check Your scheduler documentation

for OPC now Tivoli workload scheduler
here is a page regarding dataset triggering
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/eqqtig00/2.2.6.12?ACTION=MATCHES&REQUEST=dataset+trigger&TYPE=FUZZY&SHELF=EQQTBK00.bks&DT=20020717114311&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
which might explain the behaviour You experience


Thanks for your input. I did not discover yet the reason why the empty dataset would not trigger my job and I don't have visibility on the scheduling part. But I am 99% sure that the empty dataset is the cause of my job not getting triggered. Anyway I will make sure the dataset will have data.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 20, 2008 1:21 pm
Reply with quote

It may be that the empty dataset is not opened / closed because it is empty, and I seem to recall that some scheduler software uses SMF data to detect a dataset has been written to, and if it is not written to then there will be no SMF record created.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top