× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Vernon,

this mi code will get the pcs pointer of the job that runs the instruction:
        DCL SPCPTR pPcsArea
        DCL DD PcsArea CHAR(16) BDRY(16)
        SETSPP pPcsArea, PcsArea
        MATPRATR pPcsArea, *, X'25'
        CPYBWP YourPcsRtnVlu, PcsArea

To my knowledge, Factor 2 of MATPRATR can only be "*".  So this instruction
will not get the pcs of another job.

One workaround for this restriction is that if you are going to want the pcs
pointer of a job, somehow have that job run MATPRATR at job start and store
the result in a usrspc.

Steve Richter


-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of Vernon Hamberg
Sent: Thursday, February 14, 2002 5:52 PM
To: midrange-l@midrange.com
Subject: How to get Process Control Space for a job


I want to transfer a lock to a job I submitted. How do I get the PCS for
a job if I know its qualified job name (or its internal identifier)? The
xfrlock MI command (used in C) wants a pointer to the PCS, NULL if you
are doing it for your own job.

Thanks
--
Vern Hamberg

Would you like to see a challenging little arithmetic puzzle
that might get you or your kids or grandkids more interested
in math? Go to <http://cgi.wff-n-proof.com/MSQ-Ind/I-1E.htm>

Sillygism--

Something is better than nothing.
Nothing is better than a ham sandwich.
Ergo
Something is better than a ham sandwich.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.