Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Trigger mainframe job , when file placed in unix folder

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Nandhinee

New User


Joined: 09 Apr 2020
Posts: 1
Location: India

PostPosted: Thu Apr 09, 2020 10:30 pm    Post subject: Trigger mainframe job , when file placed in unix folder
Reply with quote

Hi,

We have a process which picks up the file from Unix server and process it. So from mainframe end we scheduled our OPC to run every 30 mins to check if there are any requests to be processed.
But Now users want it to be processed as and when the file was placed in the folder in unix server.

The problem is there is no REST API connection between source(tool is residing in linux server) and mainframe.

So want to know , Is there any option available to monitor the file existence in Unix folder and trigger mainframe job.

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

Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 250
Location: Bamberg, Germany

PostPosted: Sun Apr 12, 2020 12:55 pm    Post subject:
Reply with quote

When the file arrives at the UNIX server why not starting a job on Mainframe via FTP/JES interface or even putting a trigger DSN on the Host as post-processing step on UNIX side? The trigger can be used to start the processing via OPC. Together with the 30 mins interval this should avoid missing trigger events due to connectivity loss.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 197
Location: UK

PostPosted: Fri Apr 24, 2020 5:07 pm    Post subject:
Reply with quote

It's a few years since I've worked with TWS, but I have used something that I seem to recall was a freeware download from IBM. Essentially you schedule a job to run through TWS on the Unix server. You specify a number of parameters including the file name, check frequency and a timeout period.

It will then loop round checking to see if the file is there every nn seconds. When it is, the job will complete and your schedule can continue. If it has not arrived after the time-out period, the job will fail.

Not ideal, as you need to know roughly when the file will arrive, and that it definitely will arrive at some point, so it's not suitable for ad-hoc situations.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to remove remote file older than ... ssuthagar All Other Mainframe Topics 4 Thu Jun 04, 2020 6:26 am
No new posts How to fetch the latest record from a... Dinesh Mani DFSORT/ICETOOL 8 Tue Jun 02, 2020 5:34 pm
No new posts How to Assign a Function key to Mainf... upendrasri TSO/ISPF 4 Sat May 30, 2020 9:03 pm
No new posts Mainframe ISPREDIT Macro query upendrasri TSO/ISPF 3 Wed May 27, 2020 1:12 pm
No new posts Batch JCL to Copy from Unix Directory... satish.ms10 JCL & VSAM 5 Tue May 19, 2020 7:53 pm

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