View previous topic :: View next topic
|
Author |
Message |
shramang
New User
Joined: 30 Nov 2009 Posts: 7 Location: kolkata
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Why not use HLIST? |
|
Back to top |
|
|
shramang
New User
Joined: 30 Nov 2009 Posts: 7 Location: kolkata
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not run a dcollect for the MCDS and then use a sort to filter the output |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
shramang
New User
Joined: 30 Nov 2009 Posts: 7 Location: kolkata
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
shramang
New User
Joined: 30 Nov 2009 Posts: 7 Location: kolkata
|
|
|
|
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 |
|
Back to top |
|
|
|