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
 

 

Need to determine if one is a pds or ps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need to determine if one is a pds or ps
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 16, 2009 5:39 am    Post subject:
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    Post subject: Reply to: determine pds or ps
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Wed Dec 16, 2009 8:35 pm    Post subject: Reply to: determine pds or ps
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

Senior Member


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

PostPosted: Wed Dec 16, 2009 8:39 pm    Post subject: Reply to: determine pds or ps
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 16, 2009 8:49 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 16, 2009 9:15 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 16, 2009 9:25 pm    Post subject:
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    Post subject:
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    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 Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts How to determine where is error in ab... jackzhang75 PL/I & Assembler 13 Fri Apr 15, 2016 2:01 am
No new posts To determine the range on a Alphanume... Prasanth Kumar COBOL Programming 3 Mon Feb 15, 2016 9:35 am
No new posts Rules for evaluating JES output to de... AntonioS JCL & VSAM 9 Wed Jul 01, 2015 2:03 am
No new posts How to determine if a transaction has... dejunzhu CICS 1 Thu Apr 25, 2013 3:20 pm


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