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

how to list the number of backup dataset's in DFHSM


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

New User


Joined: 18 Mar 2021
Posts: 31
Location: India

PostPosted: Tue Apr 27, 2021 8:53 pm
Reply with quote

Hi Team,

Is there a way to list all the backup datasets from BCDS apart from running decollect report.

Here is the question I have to answer.

Number of archived datasets? Number of backup datasets?

Thank you in advance!!
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Tue Apr 27, 2021 9:01 pm
Reply with quote

Code:
TSO HSEND LIST DSN BCDS ODS(<output_dsn>)

will list the datasets.
Back to top
View user's profile Send private message
Praveen Kumar Kolar

New User


Joined: 18 Mar 2021
Posts: 31
Location: India

PostPosted: Tue Apr 27, 2021 11:17 pm
Reply with quote

Hi Joerg,

Thank you very much for the command.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Tue May 04, 2021 7:31 pm
Reply with quote

HSEND command is usually RACF restricted so may not be available.

The HLIST command will be available though (use TSO HELP HLIST for how to use it). But beware that both the LIST or HLIST command can be quite intensive so best done at a quiet time if you want to list everything. Alternatively look at using DFSORT or an OEM product such as FDREPORT (if you have it) to read the DFHSM CDS's directly.

HLIST DSN BCDS only lists dataset backups.

HLIST DSN MCDS lists migrated (archived) datasets.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top