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

Need to determine if one is a pds or ps


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shramang

New User


Joined: 30 Nov 2009
Posts: 7
Location: kolkata

PostPosted: Wed Dec 16, 2009 5:13 am
Reply with quote

I have a set of migrated datasets. i need to determine if one is a pds or ps. i want to avoid listds or listdsi as this is taking a long time, recalling migrated datasets.

please help.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 16, 2009 5:39 am
Reply with quote

Why not use HLIST?
Back to top
View user's profile Send private message
shramang

New User


Joined: 30 Nov 2009
Posts: 7
Location: kolkata

PostPosted: Wed Dec 16, 2009 8:22 pm
Reply with quote

thanks a lot for the fast reply. i have around 22k+ datasets.Will it not be time consuming to capture the results of hlist for every datset by maintaining a PS.

i will surely give it a try .tomorrow
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 16, 2009 8:35 pm
Reply with quote

why not run a dcollect for the MCDS and then use a sort to filter the output
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Dec 16, 2009 8:39 pm
Reply with quote

Quote:
i have around 22k+ datasets.Will it not be time consuming ...

It is not clear what you are asking. Of course: a significant number of datasets require a significant amount of time.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 16, 2009 8:49 pm
Reply with quote

Usually data sets have some common high level qualifier (there may be more than one in your case). so using something like this would require only one (or a few depending upon the number of hlq you need to list) commands:
Code:
HLIST LEVEL(hlq) MIGRATIONCONTROLDATASET
There certainly is no reason to maintain a list of each individual file! You can run the output though any number of tools to extract the data set name and organization.
Back to top
View user's profile Send private message
shramang

New User


Joined: 30 Nov 2009
Posts: 7
Location: kolkata

PostPosted: Wed Dec 16, 2009 9:07 pm
Reply with quote

listds for 22k+ members is taking more than 40 mins.anything lesser than that would be extremely helpful.

i want to bring the time required down to somethign acceptable . as getting a list of ps s takes around 1 min by listcat .but separating the pds take around 40 mins more which is hurting.

i will give dcollect a try too...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Dec 16, 2009 9:15 pm
Reply with quote

Robert Sample wrote:
Why not use HLIST?

Robert Sample wrote:
Why not use HLIST?

Robert Sample wrote:
Why not use HLIST?

Robert Sample wrote:
Why not use HLIST?

Robert Sample wrote:
Why not use HLIST?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 16, 2009 9:25 pm
Reply with quote

I just ran an HLIST on an HLQ here with roughly 4000 migrated data sets and the elapsed time was 1 minute 3 seconds (0.01 seconds TCB time) and that is routing output to SYSOUT.
Back to top
View user's profile Send private message
shramang

New User


Joined: 30 Nov 2009
Posts: 7
Location: kolkata

PostPosted: Wed Dec 16, 2009 9:32 pm
Reply with quote

Quote:
Usually data sets have some common high level qualifier (there may be more than one in your case). so using something like this would require only one (or a few depending upon the number of hlq you need to list) commands: Code:
HLIST LEVEL(hlq) MIGRATIONCONTROLDATASET
There certainly is no reason to maintain a list of each individual file! You can run the output though any number of tools to extract the data set name and organization.


wow!! that wud be great .. i am actually workin for datsets of a specific qualifier (Acronym).i jus didnot want the migrated datsets to be recalled. i hope tht will be fine ... jus waiting to try it tomorrow. will update the outcome..

u all are great and so helpful.. thanks a lot.. i am sure i will be visting the forum quite frequently icon_biggrin.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Cobol program to determine the sequen... COBOL Programming 2
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
No new posts How to determine is PDS member is bei... CLIST & REXX 13
No new posts Is there a way to determine Clist usa... CLIST & REXX 10
No new posts Determine Library REXX exec was execu... CLIST & REXX 7
Search our Forums:

Back to Top