IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX to find who is using a dataset currently


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sumanth_toom

New User


Joined: 15 Dec 2006
Posts: 6
Location: ..

PostPosted: Thu Jul 23, 2009 2:51 pm
Reply with quote

The idea was to archive/share the information. Just incase someone had the same problem in future ;)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jul 23, 2009 2:57 pm
Reply with quote

Quote:
The idea was to archive/share the information. Just incase someone had the same problem in future ;)


the suggestion was wrong anyway, SYSDSN is not a command generally available

in the IBM TSO/E world
publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ikja300/ikj4a37051.htm
Back to top
View user's profile Send private message
sumanth_toom

New User


Joined: 15 Dec 2006
Posts: 6
Location: ..

PostPosted: Thu Jul 23, 2009 4:34 pm
Reply with quote

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
View user's profile Send private message
sumanth_toom

New User


Joined: 15 Dec 2006
Posts: 6
Location: ..

PostPosted: Thu Jul 23, 2009 4:36 pm
Reply with quote

@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 !! icon_rolleyes.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 23, 2009 4:44 pm
Reply with quote

Are you using SYSDSN as a parameter of GRS, as opposed to SYSDSN as a TSO command ?
Back to top
View user's profile Send private message
sumanth_toom

New User


Joined: 15 Dec 2006
Posts: 6
Location: ..

PostPosted: Thu Jul 23, 2009 5:19 pm
Reply with quote

I am using it as a TSO command..
TSO SYSDSN <file-name>

or directly againts the file after opening from 3.4 ..
like we use B (for browse) or E (for edit).
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jul 23, 2009 7:12 pm
Reply with quote

Quote:
Well it worked for me...

Please check the manuals before offering suggestions.
Back to top
View user's profile Send private message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Fri Jul 24, 2009 3:39 pm
Reply with quote

Its not working for me also... We have already discussed this topic last month...

Is there anything new...
Back to top
View user's profile Send private message
brijesh_mca1

New User


Joined: 28 Nov 2005
Posts: 1

PostPosted: Sat Aug 20, 2011 2:33 am
Reply with quote

None of the other cmds worked for me...but this one worked...

TSO SYSDSN 'VSAM-DATASET Name'
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Aug 20, 2011 2:39 am
Reply with quote

I would suggest that those asserting that SYSDSN is a command search the libraries allocated to SYSPROC and SYSEXEC. I am willing to bet a reasonable sum that they will find a CLIST or exec named "SYSDSN" in one of those libraries.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 20, 2011 8:52 am
Reply with quote

Hello brijesh_mca1 and welcome to the forum,

When posting it is best to reply to a currently active topic rathr than a topic that has been inactive for more than 2 years icon_cool.gif
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Sat Aug 20, 2011 7:23 pm
Reply with quote

The ISPF command DDLIST (also known as ISRDDN) has an ENQ sub command that displays all ENQs in the system. There is also a CON sub command that displays all ENQ conflicts.
Back to top
View user's profile Send private message
shanbalasay

New User


Joined: 22 May 2007
Posts: 19
Location: Belfast, UK

PostPosted: Wed Jun 06, 2012 6:50 pm
Reply with quote

Thanks to priyesh.agrawal. Pressing F1 & F1 worked superb
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top