Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Find out which datasets are used by the system currently

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Jan 29, 2008 5:25 pm    Post subject: Find out which datasets are used by the system currently
Reply with quote

I have a list of volumes. Each volume contains 1000 datasets. Now My request is to move these datasets to new model volumes. But i am facing few problem

1) Some datasets are used by started tasks.
2) Some are specified in lpa list.
3) Some are system oriented datasets etc...

Is there any simple way other than pencil and paper work to find out which datasets are used by the system currently and which are not.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jan 29, 2008 5:37 pm    Post subject: Reply to: SMS
Reply with quote

for this kind of activities a planned system shutdown is usually required...

IPL from an alternate system and carry on all the copy and..
catalog fixup
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jan 29, 2008 5:47 pm    Post subject:
Reply with quote

If you have TASID, you can see the APF Autorized libraries, LPA libraries and the LinkList.

TASID is a freeware software, available for download from here.

O.
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Jan 29, 2008 5:48 pm    Post subject:
Reply with quote

Thats true it can be done in this way but these are production datasets and volumes will be used by the system always. System can't be shut down for more that 30mins while doing IPL. So we have very less time to do this activity. Before IPL I want to move some unused datasets.

I hope I am clear.

Thanks in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jan 29, 2008 5:59 pm    Post subject: Reply to: SMS
Reply with quote

If You are sure that nobody, repeat nobody, is updating those datasets

You can try to use dfdss with "tolerate enqueue failure"
renaming them in order not to have any catalog clashes

and all is left during the planned outage is to fix the catalogs
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Jan 29, 2008 6:07 pm    Post subject:
Reply with quote

I am not able to understand this concept. Could you please be more clear with some examples how to code this 'tolerate enqueue failure'.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jan 29, 2008 6:14 pm    Post subject: Reply to: SMS
Reply with quote

check the dfdss/adrdssu docs for the parameter TOLERATE(ENQFAILURE)
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Thu Jan 31, 2008 4:09 pm    Post subject:
Reply with quote

Enrico-sorichetti,

If we use parameter 'TOLERATE(ENQFAILURE)' there will be a problem

If for example a file (XXX.YYY) is allocated in volume SSYS01 is used by a STC. Now I run my job using parameter 'TOLERATE(ENQFAILURE)' to migerate to new volume XSYS01.

As the dataset us sued by STC it will create a copy on new volume XSYS01 but will not be cataloged also will not delete the datset on the existing volume SSYS01. This means there will be two copies of the same dataset.

So I hope its not good idea to migerate to new volumes using parameter 'TOLERATE(ENQFAILURE)'.

Pls correct me if I am wrong.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Jan 31, 2008 9:38 pm    Post subject: Reply to: Find out which datasets are used by the system cur
Reply with quote

Yes You are wrong, because You did not care to try to understand my post

reread and meditate
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Fri Feb 01, 2008 12:44 am    Post subject:
Reply with quote

In my opinion using DFDSS copy with TOL(ENQF) and rename is not the best way to proceed . This can only lead to problems. You can establish which tasks are using the disc by issueing a "d u,,alloc,xxxx,1" command
where xxxx is the unit address. Once you know which tasks have allocated the disk it is relatively easy to find out which datasets are allocated. You can then build a DFDSS job to move the datasets that are not in use (lpalib datasets can be moved, they are normally only required at ipl time). Then you will have to analyze what is left over and see what is to be done .

Nevil
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Feb 01, 2008 1:02 am    Post subject:
Reply with quote

Hello,

Which part of "IPL from an alternate system" was not clear?

Keep in mind that this requires the "main" system to be completely shut down leaving none of the files in use. . .

It takes a bit of planning, but is far safer than dancing around what might or might not be in use.

Maybe i misunderstand icon_confused.gif
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Fri Feb 01, 2008 3:13 pm    Post subject:
Reply with quote

Quote:
System can't be shut down for more that 30mins while doing IPL

I would think this rules IPL from alternate system
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Fri Feb 01, 2008 3:14 pm    Post subject:
Reply with quote

Should have said I would think this rules IPL from alternate system out
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Fri Feb 01, 2008 7:31 pm    Post subject:
Reply with quote

Thanks a lot for spending you valuable time.

We identified some unused datsets and migerated to different volumes. We planed IPL and will be doing the remaining datasets at that time.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri Feb 01, 2008 8:10 pm    Post subject: Reply to: Find out which datasets are used by the system cur
Reply with quote

You're welcome - good luck icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us