Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TSO error message handler

Status
Not open for further replies.

gpinaki

Programmer
Aug 7, 2002
5
0
0
IN
When my REXX is trying to ALLOCATE an dataset it
gives the message
'DATASET ISDM00D.PB.SORTOUT ALREADY IN USE BY ANOTHER JOB OR USER' and the RETURN CODE is 12.

But I want to catch exactly the USERID of the USER or
the NAME of the JOB which is using it.
 
Hi,
I downloaded that assambler code and compiled it to a personal dataset XXX.YYY(queryenq) . Now I am writing this rexx code to find out the contention of AAAA.BBBB dataset.

/* Rexx ********************/
address tso
"CALL '"XXX.YYY"(queryenq)' ,
AAAA.BBBB"
If enqjob.0 > 0 Then
Do a = 1 to enqjob.0
Say enqjob.a enqtype.a
End
Else
Say 'No enq contention exists on this system.'


but it is not working. Please tell me what is wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top