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
 

 

JCL to trigger job using U7SVC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Addsmiles

New User


Joined: 26 Oct 2007
Posts: 2
Location: US

PostPosted: Thu Dec 25, 2008 1:16 am    Post subject: JCL to trigger job using U7SVC
Reply with quote

We are receiving some files on our mainframe system from a UNIX box. We want some mainframe jobs to be triggered as soon as those files land.

We asked UNIX folks to send the following JCL to JES after the actual data file. This JCL is supposed to create a CA7 trigger dataset which is set to kick off our mainframe job.


//TRIGJOBA JOB (TRIG),'TRIGGER JOB JOBNAMEA',
// MSGCLASS=G,USER=ABCD,REGION=0M
//JS00010 EXEC PGM=U7SVC,
// PARM='D=CA7TRIG,CA7TRIG.ABCD.JOBNAMEA.AS4CS01'
//

The JCL is getting executed, but we are getting the error "VOLSER ENTRY FOR DATASET INVALID".

Hence the CA7 trigger is not working as expected.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Dec 25, 2008 8:31 am    Post subject:
Reply with quote

Hello and welcome to the forum,

If you post more completeinfo from the problem run, we may be better able to help.

Where do you see the error message? What messiag id is shown? How is the jcl being "sent"?
Back to top
View user's profile Send private message
Addsmiles

New User


Joined: 26 Oct 2007
Posts: 2
Location: US

PostPosted: Thu Dec 25, 2008 9:10 am    Post subject: Reply to: JCL to trigger job using U7SVC
Reply with quote

I see this error message in SAR.

The JCL is directly being sent to JES by using the command quote site type=jes on Unix side.

The problem may also be that even though the JCL is visible in SAR, it may not have executed under CA7.
Back to top
View user's profile Send private message
ae86ibm

New User


Joined: 18 Feb 2009
Posts: 1
Location: Hong Kong

PostPosted: Thu Feb 19, 2009 4:54 pm    Post subject:
Reply with quote

I think CA7 has a method called trigger by dataset. When a dataset is received completely, CA7 will trigger the job you setup.
Back to top
View user's profile Send private message
shanuss

New User


Joined: 16 Jul 2008
Posts: 17
Location: Chennai

PostPosted: Thu Feb 19, 2009 5:41 pm    Post subject:
Reply with quote

Please try the above solution. I have seen one job that gets triggered whenever a new file arrive. So this is feasible with CA-7
Back to top
View user's profile Send private message
northman22

New User


Joined: 02 Mar 2009
Posts: 3
Location: homer alaska

PostPosted: Tue Mar 03, 2009 11:14 am    Post subject:
Reply with quote

IF you want to run the Job from CA7 it first needs to be set up to run in ca7. Then you can demand the job with the FTP batch trailer step after the file transfers ok, or post a requirement to an existing job. In the "old days" a dataset had to be created by CA7 for it to recognize a new version of the gdg. So auto posting by dsn will probably not work.

//CA7stepxx exec CA7BTI
//sysprint dd sysout=*
//sysin dd *
/logon
/demand job=jobxxxxx
/logoff

You may need other reqiurements such as jclid= or sched=.
To post and existing job check the manual. You have to go through the steps like you are on CA7.

/logon
/dbm
/jobdep,job=*********, usr=xxxxxxx,post=x
/logoff

I know that second command is not accurate. There are several types of dependencies you can put on a job in CA7. I don't have books in front of me any more, so this stuff is oldy moldy. The job will have to have access to CA7 also. Good luck.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm
No new posts Issue in trigger vickey_dw DB2 3 Wed Feb 10, 2016 5:41 pm
No new posts Trigger a mainframe job by mail Praveen Thenraj IBM Tools 8 Wed Jan 13, 2016 12:05 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm


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