View previous topic :: View next topic
|
Author |
Message |
sangiah
New User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
Any one has a REXX to find who is using a dataset currently. |
|
Back to top |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 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
Active User
Joined: 10 Mar 2005 Posts: 432 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: 7
|
|
|
|
both TSO WHOHAS and TSO TSODSN works for me... just now that I tried TSO TSODSN...
regards,
zai |
|
Back to top |
|
|
sangiah
New User
Joined: 10 Jun 2005 Posts: 62
|
|
|
|
both did not work for me |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, 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
Senior Member
Joined: 28 Mar 2005 Posts: 1448 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
Active User
Joined: 10 Mar 2005 Posts: 432 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
Senior Member
Joined: 28 Mar 2005 Posts: 1448 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: 463
|
|
|
|
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
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
That doesnt work for me....
Regards,
Priyesh. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi Priyesh,
It may be shop dependent. It is working for me.
Regards
Rupesh |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 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
Senior Member
Joined: 28 Mar 2005 Posts: 1448 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
Active User
Joined: 10 Mar 2005 Posts: 432 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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
We dont have member GRSDSENQ in SYS1.LINKLIB.
MEMBER GRSDSENQ NOT IN DATA SET SYS1.LINKLIB
Regards,
Priyesh. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
Ok, nothing to do...
It's from customizing.
This is not my fortunate day.
|
|
Back to top |
|
|
sumanth_toom
New User
Joined: 15 Dec 2006 Posts: 6 Location: ..
|
|
|
|
Use SYSDSN against the PDS or
TSO SYSDSN <file-name>
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please be aware that you replied to a topic that has been inactive for almost 4 years. . . |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
and SYSDSN is another local command. One way that will work on all IBM systems (save those in GRS STAR mode), whatever that is) is the QUERYENQ service of ISPF. |
|
Back to top |
|
|
sumanth_toom
New User
Joined: 15 Dec 2006 Posts: 6 Location: ..
|
|
|
|
The idea was to archive/share the information. Just incase someone had the same problem in future ;) |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
sumanth_toom
New User
Joined: 15 Dec 2006 Posts: 6 Location: ..
|
|
|
|
Well it worked for me in couple of different shops !!
Here is the screenshot of how the output looks like..
(masked the some parts of the output..)
In case of multiple users/jobs using it,,all those are listed here as well ! |
|
Back to top |
|
|
sumanth_toom
New User
Joined: 15 Dec 2006 Posts: 6 Location: ..
|
|
|
|
@enrico-sorichetti
I have also used SYSDSN in REXX to find out if the dataset exists or not..
(The link you posted..)..but i am not sure if both are same !! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Are you using SYSDSN as a parameter of GRS, as opposed to SYSDSN as a TSO command ? |
|
Back to top |
|
|
|