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

JCL to trigger job using U7SVC


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu Dec 25, 2008 8:31 am
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts How to define transaction that trigge... CICS 3
No new posts Trigger mainframe job , when file pla... All Other Mainframe Topics 2
No new posts trigger enter key automatically call ... CICS 17
No new posts Application not run by time HH:MM tri... IBM Tools 1
No new posts How to track incoming input files tha... JCL & VSAM 6
Search our Forums:

Back to Top