|
|
| Author |
Message |
sangiah
Active User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
| Any one has a REXX to find who is using a dataset currently. |
|
| Back to top |
|
 |
References
|
Posted: Wed Jun 15, 2005 9:28 am Post subject: Re: REXX to find who is using a dataset currently |
 |
|
|
 |
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 180 Location: Toronto, Canada
|
|
|
|
Hi,
There must be a clist already coded for this,
you can try TSO WHOHAS 'abcd.xyz.dataset'
if you are in TSO Command (6 option from primary ISPF)
then simply type WHOHAS 'abcd.xyz.dataset' |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
I think that TSO WHOHAS is not a standard of IBM, I tried but for me it doesn't work.
If it's tha same for you try with TSODSN and outtrap the message.
Command is TSO TSODSN 'filename'
P.S.=I can't assure your that this is official... |
|
| Back to top |
|
 |
Zai Cabading
New User
Joined: 11 May 2005 Posts: 5
|
|
|
|
both TSO WHOHAS and TSO TSODSN works for me... just now that I tried TSO TSODSN...
regards,
zai |
|
| Back to top |
|
 |
sangiah
Active User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
| both did not work for me |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3000 Location: Charlotte,NC USA
|
|
|
|
The WHOHAS utility is a shareware program that you should be able to locate from an Internet search. Also, sangiah, the other posts you made in this forum are also shareware programs that you should be able to locate. I'd ask your Systems Programming folks first. Maybe they would know where to find them.
For what it's worth, you can, of course find who is using a dataset by entering HELP when you receive the error message that the dataset is in use. Also, you can always contact one of your operators in the Data Center. This can also be determined by issuing a specific MVS command at the Master Console. |
|
| Back to top |
|
 |
priyesh.agrawal
Global Moderator
Joined: 28 Mar 2005 Posts: 1504 Location: Chicago, IL
|
|
|
|
As SUPERK said here....
| Quote: |
| find who is using a dataset by entering HELP |
press F1 twice, you'll get the ID of the user using that dataset currently.
Regards,
Priyesh. |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
Ok, mystery bypassed through a console command:
| Code: |
PROC 1 DSN
OPER
D GRS,RES=(*,&DSN)
END
EXIT |
|
|
| Back to top |
|
 |
priyesh.agrawal
Global Moderator
Joined: 28 Mar 2005 Posts: 1504 Location: Chicago, IL
|
|
|
|
In case of a VSAM dataset pressing F1 twice doesn't work.
How can we know the job/user using VSAM Dataset.
MGIndaco,
How to run this console command you gave below ?
Regards,
Priyesh. |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 492
|
|
|
|
HI Priyesh,
| Quote: |
| How can we know the job/user using VSAM Dataset. |
You can use WHOSGOT infront of VSAM file.
It will give you information regarding who is using your VSAM dataset.
Regards
Rupesh |
|
| Back to top |
|
 |
priyesh.agrawal
Global Moderator
Joined: 28 Mar 2005 Posts: 1504 Location: Chicago, IL
|
|
|
|
That doesnt work for me....
Regards,
Priyesh. |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 492
|
|
|
|
Hi Priyesh,
It may be shop dependent. It is working for me.
Regards
Rupesh |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
Hi Priyesh.
Put the PROC into a SYSPROC library concatenated or in your library and type EX near the member to execute it.(If you put it in a concatenated library you can also call it with the command TSO xxx <- name of the member given to it) |
|
| Back to top |
|
 |
priyesh.agrawal
Global Moderator
Joined: 28 Mar 2005 Posts: 1504 Location: Chicago, IL
|
|
|
|
Thanks MGIndaco,
I executed it...But was not authorized to use OPERATOR Command.
YOUR INSTALLATION MUST AUTHORIZE USE OF OPERATOR COMMAND
Well, Thanks a lot for the help...
Hit & Trial worked for me.....& I got TSO WHO working fine for me.....
Regards,
Priyesh. |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
This is another sample of PROC that does not use OPER:
| Code: |
PROC 1 DSN
CLEAR
WRITE &DSN
CALL 'SYS1.LINKLIB(GRSDSENQ)' &DSN
END |
I hope in this. |
|
| Back to top |
|
 |
|
|