Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to trigger a C/S ESP job with a mainframe dataset?

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

New User


Joined: 26 Nov 2013
Posts: 2
Location: Canada

PostPosted: Tue Nov 26, 2013 6:43 pm    Post subject: How to trigger a C/S ESP job with a mainframe dataset?
Reply with quote

Hi! I have a little issue to present to you. I have been asked to create a job that would be triggered by a file. That is the easy part. I understand that a mainframe job can be triggered by a dataset like this:

DSTRIG WAIT4.DATASET
DSNAME 'MY.DATASET.G-'
TAG 'WAITING 4 D/S'
POSTREQ MAINFRAME_JOB
ENDJOB

However, I am having trouble defining a client/server (c/s) job that is triggered by a mainframe dataset file. Usually, a file-triggered c/s job is defined as shown:

File_Trigger WINNT_JOB
AGENT WINNT_SERVER
FILENAME /ftp/my_folder/my_txt_file.txt
TAG 'WINNT_SERVER'
ENDJOB

Here above, the trigger file is on the server and once it's there, WINNT_JOB runs immediately.

So my question to you is this: How would you trigger WINNT_JOB using a mainframe dataset? If my question isn't clear, please let me know. Thank you.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8416
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 26, 2013 6:51 pm    Post subject:
Reply with quote

Have a mainframe job triggered by the data set. The job runs FTP to the server putting a file on the server. Trigger the C/S job based on that file.
Back to top
View user's profile Send private message
cmetellus

New User


Joined: 26 Nov 2013
Posts: 2
Location: Canada

PostPosted: Tue Nov 26, 2013 7:22 pm    Post subject:
Reply with quote

Hi Robert sample, you've been really helpful. That's the answer I was looking for.

Thank you!
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 delete a VSAM dataset from ins... Mike.Fulton JCL & VSAM 6 Fri Feb 15, 2019 5:58 am
This topic is locked: you cannot edit posts or make replies. How to verify Retention of a Vsam dat... upendrasri JCL & VSAM 4 Sat Jan 26, 2019 5:18 pm
No new posts Reading mainframe job spool while the... jilumudi_manohar JCL & VSAM 7 Wed Jan 09, 2019 9:48 am
This topic is locked: you cannot edit posts or make replies. how to write a REXX to see whether da... javen777 CLIST & REXX 3 Wed Dec 19, 2018 11:36 am
No new posts calling java code(on mainframe from c... elixir1986 COBOL Programming 1 Fri Nov 30, 2018 1:57 am

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