Depending on your comfort level with programming languages, you could do any of 
the following (in ascending order of difficulty) :

(1) Use the SDSF REXX API to issue the "PS" command and process the results

Very simple to achieve what you want in approx 20 lines of REXX code.

(2) Call BPXEKDA using the ODMVASIDALLS option

Callable service to return of z/OS unix thread information, however some fields 
are truncated.
One advantage using BPXEKDA is that the caller does not require a OMVS segment.

(3) Call BPX1GTH and process the returned structures

Full access to z/OS unix thread information, however may require SAF authority 
to view threads for all address spaces.
OMVS segment required.

Rob Scott
Rocket Software

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Kenneth J. Kripke
Sent: 06 June 2022 21:16
To: [email protected]
Subject: USS ps command

EXTERNAL EMAIL





Is there a way to list the PID, PPID, UID, and, ASID associated with a USS job 
or task running on z/OS?

Of primary interest is to obtain the ASID of the Job or STC.  Currently, I am 
using BPXUNIX and issuing the call to gather the information on all USS 
processes using

'ps -ef' which does list the PID, PPID, and UID but does not list an associated 
ASID.  Is this possible using the ps command?





Sincerely;



Kenneth J. Kripke

[email protected] <mailto:[email protected]>




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: 
https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - 
http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================

This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to