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
 

 

Triggering a Mainframe Job based on the file available

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Triggering a Mainframe Job based on the file available
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Jun 15, 2009 7:01 pm    Post subject: Reply to: Triggering a Mainframe Job based on the file avail
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 15, 2009 7:02 pm    Post subject:
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    Post subject: Reply to: Triggering a Mainframe Job based on the file avail
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Jun 15, 2009 7:13 pm    Post subject: Reply to: Triggering a Mainframe Job based on the file avail
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    Post subject: Re: Reply to: Triggering a Mainframe Job based on the file a
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: 1703
Location: Australia

PostPosted: Tue Jun 16, 2009 7:18 am    Post subject:
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    Post subject:
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm


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