OPC Resource Question



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

OPC Resource Question

Postby rayngerfan » Mon Aug 31, 2009 12:36 am

Can some one explain the purpose of have an OPC resource on the job within the application and a JCL step within the job that makes the same resource unavailable.

Jobname : PLREP130 JOB51268

Row Special resource name Qty Shr Keep On Reason
cmd Ex Error Wait
' PANX * X

//STEP001 EXEC PGM=EQQEVPGM
//EQQMLIB DD DSN=SYS1.SEQQMSG0,DISP=SHR
//EQQMLOG DD SYSOUT=*
//SYSIN DD *
SRSTAT 'PANX' SUBSYS(OPCT) AVAIL(NO)

Thanks
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: OPC Resource Question

Postby dick scherrer » Mon Aug 31, 2009 1:40 am

Hello,

If i understand the question, It is a way to provide an enqueue (without using a datasaet name). When one process "has" the resource, some other process may not "get" the resource. When the first process ends and releases the resource, another process may "get" it.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: OPC Resource Question

Postby enrico-sorichetti » Mon Aug 31, 2009 2:21 am

Hi Dick,
Your understanding is correct...

but what is odd is the need to explicitly make the resource unavailable...
if the TWS definition are correct there is no need to explicitly reserve the resource...
when TWS submits/schedules a job the resource is automatically enqueued/reserved

unless , that could be the reason for the explicit enqueue/reserve, the job is submitted outside of a TWS plan/schedule
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: OPC Resource Question

Postby rayngerfan » Mon Aug 31, 2009 2:39 am

I appreciate the feed back on my question.

Thanks
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: OPC Resource Question

Postby dick scherrer » Mon Aug 31, 2009 6:02 am

Hi Enrico,
but what is odd is the need to explicitly make the resource unavailable...
Possibly there are several processes that are neither predecessors not successors - they just need to run single-thread?

I appreciate the feed back on my question.
You're welcome :)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post