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

Triggering a Mainframe Job based on the file available


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish kanamarlapudi

New User


Joined: 23 Jul 2008
Posts: 29
Location: Little Rock - Arkansas

PostPosted: Mon Jun 15, 2009 6:59 pm
Reply with quote

Hi,

I am currently working on a conversion project from Mainframes to AIX UNIX. All the DB2 programs will be executed in AIX UNIX and IMS programs will be executed in Mainframes. There are jobs which have both IMS and DB2 programs executing in different steps.

I am replacing all the Job steps with AIX shell scripts, my one requirement is that there is a db2 program in step 10 and based on the output file generated which is being used as an input file in step20 which is an IMS program. But since the DB2 will be executed in AIX UNIX and IMS in Mainframes as per the new conversion, i am keeping an FTP step of the DB2 output file to Mainframes after the DB2 program gets executed and based on the availability of the file in Mainframes my IMS job should get triggered and processed.

Could anyone help me out in this on how to wait for the file in Mainframes
and if available should trigger the corresponding job.

NOTE :- My availability for the file should get refreshed for certain period of time (like refreshed for every 60 seconds, for every 60 seconds searches for the availability of the file).

Thx,
Satish
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jun 15, 2009 7:01 pm
Reply with quote

any decent MF scheduler product is able to trigger a job when a dataset is created,
Your operations support should know better
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jun 15, 2009 7:02 pm
Reply with quote

What scheduling software do you use, because I know that CA-7, TWS (OPC) and Control-M all have dataset trigger capabilities.
Back to top
View user's profile Send private message
satish kanamarlapudi

New User


Joined: 23 Jul 2008
Posts: 29
Location: Little Rock - Arkansas

PostPosted: Mon Jun 15, 2009 7:10 pm
Reply with quote

Without going to Scheduler is there anyway of testing my case manually.

Thx,
Satish
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jun 15, 2009 7:13 pm
Reply with quote

what' s wrong if following our suggestion ??
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Tue Jun 16, 2009 6:53 am
Reply with quote

satish kanamarlapudi wrote:
Without going to Scheduler is there anyway of testing my case manually.

Thx,
Satish


No, there's not.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Jun 16, 2009 7:18 am
Reply with quote

Hi,

you can always sit in front of your terminal 24X7 and monitor the file arrival and when you spot it you can submit your job.

That allows to test your case manually. icon_lol.gif


Gerry
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Tue Jun 16, 2009 7:46 am
Reply with quote

Oh yeah, there is. Here's how:

1) create your file

2) run your job

icon_cool.gif
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top