Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAMPLE JCL to DEMAND a JOB in CA7 through BATCH

697 views
Skip to first unread message

July Robert

unread,
Aug 12, 2004, 2:40:57 PM8/12/04
to
Hi All,

Does anyone have a sample JCL to DEMAND a job from CA-7 through batch ? It would be greatly appreciated if you could share with me.

Thank You in advance !

July.

---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Hill, Rick

unread,
Aug 12, 2004, 2:50:15 PM8/12/04
to
Here's one way:

In this scenario, I want PRQFL998 to wait on PRQFL002-006. I actually set
the control cards up in a REXX...

You can also bring jobs into the queue directly from REXX if you want to go
that route. This way is nice enough to provide an audit trail...

//JS010 EXEC CA7SVC
//CA7DATA DD *
DEMAND,JOB=PRQFL998,SCHID=070,DEPJOB=PRQFL001
ADDRQ,JOB=PRQFL998,DEPJOB=PRQFL002
ADDRQ,JOB=PRQFL998,DEPJOB=PRQFL003
ADDRQ,JOB=PRQFL998,DEPJOB=PRQFL004
ADDRQ,JOB=PRQFL998,DEPJOB=PRQFL005
ADDRQ,JOB=PRQFL998,DEPJOB=PRQFL006
DEMAND,JOB=PRQFL001,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL002,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL003,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL004,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL005,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL006,SCHID=070,DEPJOB=PRQFL000
DEMAND,JOB=PRQFL000,SCHID=070
/LOGOFF
/*
//*


Btw: My code inserts a /LOGOFF command after every 20 entries - he starts
to get addled after that... One test had about 70 entries altogether
(including the LOGOFF's) and CA7 was perfectly content to process them...

Rick

Jeremy C B Nicoll

unread,
Aug 12, 2004, 9:46:30 PM8/12/04
to
In article
<9C79F2D39765D411B189...@USPLM208.txpln.us.eds.com>,
"Hill, Rick" <rick...@EDS.COM> wrote:
> Here's one way:

[snip]

Note this only works if the userid under which the batch step is run is
allowed to log on to CA7. And the jobs being demanded must also,
obviously, be those that that userid is allowed to demand.

--
Jeremy C B Nicoll - my opinions are my own.

0 new messages