Re: Allocated Dataset Question

2008-11-28 Thread Rahim, A. (Ahmed)
Hi,

Using the GRS command you can create a REXX exec to display the enq.
This one is called ENQ  :-

/* REXX */

  PARSE UPPER ARG ds1

 dsn = strip(ds1,,')   

say dsn  

 

 /* Set some defaults */ 

Sys_Id  = MVSVAR('SYSNAME')  

User_Id = userid()   

 /*  

inquire on dsn   

 */  

  ING = OUTTRAP(IO.)   

 ADDRESS TSO 

   CONSPROF SOLDISP(YES)   

   CONSOLE SYSCMD(D GRS,RES=(SYSDSN,dsn))

 OTO = OUTTRAP(OFF)

DO I = 1 TO IO.0 

   SAY IO.I  

  END

  RETURN 

 

 

Go to 3.4 (dslist) 

Type your dsname and on the command line type ENQ

 

  

 Command - Enter / to select action 

 -

  N174599 

 ENQ N174599.D0A0.EXEC   

  N174599.D0A0.ISPANL 

  N174599.D0A0.ISPROF 

 

And VOILA   

 

SYSNAMEJOBNAME ASID TCBADDR   EXC/SHRSTATUS   

D0A0  N1745990086   008FFB00 EXCLUSIVEOWN 

 

 

Regards,

 

Ahmed Rahim

System Z Technical support

Group Technology

(011) 500-6490

Fax2Email  086 539 2113 

 

-Original Message-

From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Hunkeler Peter (KIUK 3)

Sent: 21 November 2008 10:05 AM

To: IBM-MAIN@BAMA.UA.EDU

Subject: Re: Allocated Dataset Question

 

Very useful post.

 

--

Peter Hunkeler

CREDIT SUISSE

 

-Original Message-

From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On

Behalf Of Anton Britz

Sent: Thursday, November 20, 2008 5:09 PM

To: IBM-MAIN@BAMA.UA.EDU

Subject: Re: Allocated Dataset Question

 

Howard,

 

Have you got access to a set of IBM manuals ? ( And please do not send 

your TEST message every week or otherwise we need to take your

Internet 

access away in that old age home of yours )

 

In the operators manual :

 

D GRS

{[,SYSTEM|,LINK|,ALL|,A|,DELAY|,D|,SUSPEND|S]}

 

  | 

  |   

[,CONTENTION|,C]

| 

  |   [,RES=(qname|*

[,rname|,*])]

| 

  |   

[,HEX]

| 

  |   [,DEV=[/]devnum][,

{SUSPEND|S}]   |

 

  |   [,RNL

{CONVERSION|CON|C}]

| 

  | 

{ALL|A   }

| 

  | 

{EXCLUSION|EXCL|E}

| 

  | 

{INCLUSION|INCL|I}

| 

  

|

 

   |

  |{,{CONTENTION|C}[,ENQ|,E][,{LATCH|L}[,{JOBNAME|JOB}=jobname]]

[,HEX]}| 

  

|

 

   |

  |{,{LATCH|L}[,{JOBNAME|JOB}=jobname][,CONTENTION|,C]}

[,HEX]  | 

  | 

{CONTENTION|C}}

| 

  

|

 

   |

  |

{,ANALYZE|,ANALYSE|,AN,   }

 

| 

  |   

{BLOCKER|BLOCK }

| 

  |   {WAITER|WAIT

[,SYSTEM|,SYS=sysname|*]   }

| 

  |   

[,ASID|,AS=asid]

| 

  |   

[,JOBNAME|,JOB=jobname]

| 

  |   [,XJOBNAME|,XJOB

(jobname1,jobname2,...,jobname25)] }| 

  |   [,XQNAME|XQN

(qname1,qname2,...,qname25)]| 

  

|

 

   |

  |   {DEPENDENCY|DEPEND|DEP

[,SYSTEM|,SYS=sysname|*] } |

 

  |   [,ASID|,AS=asid]

[TCB=tcbaddr]| 

  |   

[,JOBNAME|JOB=jobname]

| 

  |   [,XJOBNAME|,XJOB

(jobname1,jobname2,...,jobname25)]  | 

  |   [,XQNAME|,XQN

(qname1,qname2,...,qname25)]   | 

  

|

 

   |

  |   [,RES

(qname,rname)]

| 

  |{SCOPE|SCO=SYSTEM[S]|SYS

[S]}| 

  |

{SYSTEM|SYS=sysname

Re: Allocated Dataset Question

2008-11-21 Thread Hunkeler Peter (KIUK 3)
Very useful post.

--
Peter Hunkeler
CREDIT SUISSE

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Anton Britz
Sent: Thursday, November 20, 2008 5:09 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Allocated Dataset Question

Howard,

Have you got access to a set of IBM manuals ? ( And please do not send 
your TEST message every week or otherwise we need to take your
Internet 
access away in that old age home of yours )

In the operators manual :

D GRS
{[,SYSTEM|,LINK|,ALL|,A|,DELAY|,D|,SUSPEND|S]}

  | 
  |   
[,CONTENTION|,C]
| 
  |   [,RES=(qname|*
[,rname|,*])]
| 
  |   
[,HEX]
| 
  |   [,DEV=[/]devnum][,
{SUSPEND|S}]   |

  |   [,RNL=
{CONVERSION|CON|C}]
| 
  | 
{ALL|A   }
| 
  | 
{EXCLUSION|EXCL|E}
| 
  | 
{INCLUSION|INCL|I}
| 
  
|

   |
  |{,{CONTENTION|C}[,ENQ|,E][,{LATCH|L}[,{JOBNAME|JOB}=jobname]]
[,HEX]}| 
  
|

   |
  |{,{LATCH|L}[,{JOBNAME|JOB}=jobname][,CONTENTION|,C]}
[,HEX]  | 
  | 
{CONTENTION|C}}
| 
  
|

   |
  |
{,ANALYZE|,ANALYSE|,AN,   }

| 
  |   
{BLOCKER|BLOCK }
| 
  |   {WAITER|WAIT
[,SYSTEM|,SYS=sysname|*]   }
| 
  |   
[,ASID|,AS=asid]
| 
  |   
[,JOBNAME|,JOB=jobname]
| 
  |   [,XJOBNAME|,XJOB=
(jobname1,jobname2,...,jobname25)] }| 
  |   [,XQNAME|XQN=
(qname1,qname2,...,qname25)]| 
  
|

   |
  |   {DEPENDENCY|DEPEND|DEP
[,SYSTEM|,SYS=sysname|*] } |

  |   [,ASID|,AS=asid]
[TCB=tcbaddr]| 
  |   
[,JOBNAME|JOB=jobname]
| 
  |   [,XJOBNAME|,XJOB=
(jobname1,jobname2,...,jobname25)]  | 
  |   [,XQNAME|,XQN=
(qname1,qname2,...,qname25)]   | 
  
|

   |
  |   [,RES=
(qname,rname)]
| 
  |{SCOPE|SCO=SYSTEM[S]|SYS
[S]}| 
  |
{SYSTEM|SYS=sysname|*}
| 
  |   [,COUNT|,CNT=nn]
[,DETAIL|,DET]   | 
  |[,L={a|name|name-
a}]
| 
  | 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Lucy Arnold
WHOHAS


Lucy Arnold
Storage Manager
U.C. Davis Medical Center
916-734-5498

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Mark Zelden
On Thu, 20 Nov 2008 10:30:22 -0500, Howard Rifkind [EMAIL PROTECTED]
wrote:

I just can't remember...senior moment!
 
I remember doing an ISPF 3.4 and some how being able to see which
users/jobs have  a particular dataset allocated to them.
 
Can anyone refresh my memory whith this how to?
 

There are many ways (ISRDDN / DDLIST ENQ function for example), but
you are probably thinking of this:

Try to rename the data set.  When you get the data set in use message
hit PF1 / HELP twice.  

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Howard Rifkind
Keyed in WHOHAS on the option line and it was invalid...DSN is on the DSname 
line.

 Lucy Arnold [EMAIL PROTECTED] 11/20/2008 10:31 AM 
WHOHAS


Lucy Arnold
Storage Manager
U.C. Davis Medical Center
916-734-5498

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html 


_
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only.
Access to this E-mail by anyone else is unauthorized.
If you are not an addressee, any disclosure or copying of the
contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately, then delete this
message and empty from your trash.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Lucy Arnold
Well Pooh!  It works here!


WHOHAS   SYSLLA.SYSLLA.SRCHFOR.LIST  ,
 SYSLLA.TDMF.JCL.CNTL,
 SYSLLA.TDM510.CNTL  ,
 SYSLLA.TDM510.SAMPLIB   ,
 SYSLLA.TDM510.TDMEXEC   ,
 SYSLLA.TDM510.TDMLLIB   ,
 SYSLLA.TDM510.TDMMLIB   ,
DSNQ-1 NO JOBS ENQUEUED ON SYSLLA.SYSLLA.SRCHFOR.LIST,
***,

Lucy Arnold
Storage Manager
U.C. Davis Medical Center
916-734-5498

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Joe Aulph
Howard,

We have what I belive is a CBT tape tool, installed by my now retired
predecessor.
On the option line we key in $LE for list enqueue.

Good luck

Joe Aulph,

Senior Systems Programmer:
850-487-8945
[EMAIL PROTECTED]


   
 Howard Rifkind
 [EMAIL PROTECTED] 
 T.COM To 
 Sent by: IBM  IBM-MAIN@BAMA.UA.EDU
 Mainframe  cc 
 Discussion List   
 [EMAIL PROTECTED] Subject 
 .EDU Re: Allocated Dataset Question  
   
   
 11/20/2008 10:38  
 AM
   
   
 Please respond to 
   IBM Mainframe   
  Discussion List  
 [EMAIL PROTECTED] 
   .EDU   
   
   




Keyed in WHOHAS on the option line and it was invalid...DSN is on the
DSname line.

 Lucy Arnold [EMAIL PROTECTED] 11/20/2008 10:31 AM 
WHOHAS


Lucy Arnold
Storage Manager
U.C. Davis Medical Center
916-734-5498

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


_
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only.
Access to this E-mail by anyone else is unauthorized.
If you are not an addressee, any disclosure or copying of the
contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately, then delete this
message and empty from your trash.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Field, Alan C.
WHOHAS is not a standard command. 

Search www.cbttape.org for WHOHAS and download and install. 

There must be different versions of WHOHAS since we support two
datacenters and WHOHAS works at both sites but the output format is
different.

Alan 


Subject: Re: Allocated Dataset Question

WHOHAS


Lucy Arnold
Storage Manager
U.C. Davis Medical Center
916-734-5498

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Anton Britz
Howard,

Have you got access to a set of IBM manuals ? ( And please do not send 
your TEST message every week or otherwise we need to take your Internet 
access away in that old age home of yours )

In the operators manual :

D GRS
{[,SYSTEM|,LINK|,ALL|,A|,DELAY|,D|,SUSPEND|S]}  
  
  | 
  |   
[,CONTENTION|,C]
 | 
  |   [,RES=(qname|*
[,rname|,*])]  | 
  |   
[,HEX]  
 | 
  |   [,DEV=[/]devnum][,
{SUSPEND|S}]   | 
  |   [,RNL=
{CONVERSION|CON|C}] 
   | 
  | 
{ALL|A   }  
   | 
  | 
{EXCLUSION|EXCL|E}  
   | 
  | 
{INCLUSION|INCL|I}  
   | 
  
|   
  
   |
  |{,{CONTENTION|C}[,ENQ|,E][,{LATCH|L}[,{JOBNAME|JOB}=jobname]]
[,HEX]}| 
  
|   
  
   |
  |{,{LATCH|L}[,{JOBNAME|JOB}=jobname][,CONTENTION|,C]}
[,HEX]  | 
  | 
{CONTENTION|C}} 
   | 
  
|   
  
   |
  |
{,ANALYZE|,ANALYSE|,AN,   } 

| 
  |   
{BLOCKER|BLOCK }
 | 
  |   {WAITER|WAIT
[,SYSTEM|,SYS=sysname|*]   }
 | 
  |   
[,ASID|,AS=asid]
 | 
  |   
[,JOBNAME|,JOB=jobname] 
 | 
  |   [,XJOBNAME|,XJOB=
(jobname1,jobname2,...,jobname25)] }| 
  |   [,XQNAME|XQN=
(qname1,qname2,...,qname25)]| 
  
|   
  
   |
  |   {DEPENDENCY|DEPEND|DEP
[,SYSTEM|,SYS=sysname|*] } | 
  |   [,ASID|,AS=asid]
[TCB=tcbaddr]| 
  |   
[,JOBNAME|JOB=jobname]  
 | 
  |   [,XJOBNAME|,XJOB=
(jobname1,jobname2,...,jobname25)]  | 
  |   [,XQNAME|,XQN=
(qname1,qname2,...,qname25)]   | 
  
|   
  
   |
  |   [,RES=
(qname,rname)] | 
  |{SCOPE|SCO=SYSTEM[S]|SYS
[S]}| 
  |
{SYSTEM|SYS=sysname|*}  | 
  |   [,COUNT|,CNT=nn]
[,DETAIL|,DET]   | 
  |[,L={a|name|name-
a}] 
   | 
  | 
On Thu, 20 Nov 2008 10:30:22 -0500, Howard Rifkind 
[EMAIL PROTECTED] wrote:

I just can't remember...senior moment!
 
I remember doing an ISPF 3.4 and some how being able to see which 
users/jobs have  a particular dataset allocated to them.
 
Can anyone refresh my memory whith this how to?
 
Thanks. 
_
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only.
Access to this E-mail by anyone else is unauthorized.
If you are not an addressee, any disclosure or copying of the
contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately, then delete this
message and empty from your 

Re: Allocated Dataset Question

2008-11-20 Thread Lizette Koehler
Try using ISRDDN.  On the command line enter ENQ

Then enter in the data set name.

Other option is to try and rename in 3.4.  If it is allocated, you should get 
and error message.  By pressing PF1 you should see the holders.

WHOHAS ia a CBT Tape program.  You would need to install that in your 
environment.

Lizette




Well Pooh!  It works here!


WHOHAS   SYSLLA.SYSLLA.SRCHFOR.LIST  ,
 SYSLLA.TDMF.JCL.CNTL,
 SYSLLA.TDM510.CNTL  ,
 SYSLLA.TDM510.SAMPLIB   ,
 SYSLLA.TDM510.TDMEXEC   ,
 SYSLLA.TDM510.TDMLLIB   ,
 SYSLLA.TDM510.TDMMLIB   ,
DSNQ-1 NO JOBS ENQUEUED ON SYSLLA.SYSLLA.SRCHFOR.LIST,
***,

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Imbriale, Donald
A shortcut:

DDLIST E 'dsn-or-prefix'

For example,

DDLIST E 'SYS1.PARMLIB'
DDLIST E 'SYS1'

Don Imbriale

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Lizette Koehler
Sent: Thursday, November 20, 2008 11:13 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Allocated Dataset Question

Try using ISRDDN.  On the command line enter ENQ

Then enter in the data set name.

Other option is to try and rename in 3.4.  If it is allocated, you
should get and error message.  By pressing PF1 you should see the
holders.

WHOHAS ia a CBT Tape program.  You would need to install that in your
environment.

Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase  Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase 
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: Allocated Dataset Question

2008-11-20 Thread Mark Zelden
On Thu, 20 Nov 2008 12:11:41 -0500, Imbriale, Donald
[EMAIL PROTECTED] wrote:

A shortcut:

DDLIST E 'dsn-or-prefix'

For example,

DDLIST E 'SYS1.PARMLIB'
DDLIST E 'SYS1'

Don Imbriale


Right.   So back to the original question about doing it on ISPF 3.4,
one can type ISRDDN E next to the data set name. DDLIST is
actually an ISPF command table shortcut to ISRDDN and thus
does not work on ISPF 3.4 DSLIST.

Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html