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

Identify Number of Multivolume Dataset


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ilaventhan Senthil

New User


Joined: 12 Jul 2025
Posts: 2
Location: india

PostPosted: Sun Jul 13, 2025 11:06 am
Reply with quote

Hi All,we can know how many number of volumes a Multi volume DSN is using, But If I created a multivol dataset with 10 volumes(i.e VOL=,,,10) after a year if other person wanted to know the max volume my dataset can extend, how will he know what I coded in my JCL while creating the dataset, I can just issue an I infront of dataset and get to know currently how many volumes the dsn is extended, but if I want to know the max vol count, is there a way, I am ignoring DATACLAS as my system can override dataclas volcout by using VOL=,,,x parm in JCL.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 766
Location: Denmark

PostPosted: Sun Jul 13, 2025 2:24 pm
Reply with quote

A LISTCAT ALL should do it, sample:
Allocation job
Code:
//A   EXEC PGM=IEFBR14                               
//DD1  DD DSN=DSN.TEST.MULTIVOL,DISP=(,CATLG),       
//        UNIT=SYSDA,SPACE=(80,(1,1),RLSE),AVGREC=K,
//        RECFM=FB,LRECL=80,BLKSIZE=0,VOL=(,,,6) 

LISTCAT ENT(DSN.TEST.MULTIVOL) ALL output
Code:
NONVSAM ------- DSN.TEST.MULTIVOL                                                         
     IN-CAT --- CATALOG.SYSC.USER                                                       
     HISTORY                                                                             
       DATASET-OWNER-----(NULL)     CREATION--------2025.194                             
       RELEASE----------------2     EXPIRATION------0000.000                             
       ACCOUNT-INFO-----------------------------------(NULL)                             
     SMSDATA                                                                             
       STORAGECLASS ------USER1     MANAGEMENTCLASS---(NULL)                             
       DATACLASS --------(NULL)     LBACKUP ---0000.000.0000                             
     ENCRYPTIONDATA                                                                     
       DATA SET ENCRYPTION-----(NO)                                                     
     VOLUMES                                                                             
       VOLSER------------SYSCU1     DEVTYPE------X'3010200F'     FSEQN------------------0
       VOLSER-----------------*     DEVTYPE------X'00000000'     FSEQN------------------0
       VOLSER-----------------*     DEVTYPE------X'00000000'     FSEQN------------------0
       VOLSER-----------------*     DEVTYPE------X'00000000'     FSEQN------------------0
       VOLSER-----------------*     DEVTYPE------X'00000000'     FSEQN------------------0
       VOLSER-----------------*     DEVTYPE------X'00000000'     FSEQN------------------0
     ASSOCIATIONS--------(NULL)                                                         
     ATTRIBUTES   

Though you con't get a number, but a list of potential canditates.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


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

PostPosted: Tue Jul 15, 2025 4:41 pm
Reply with quote

To know what was coded in the JCL is not of interest as many factors are to be considered for an allocation. Over time some values may have been altered/changed. It's too many to give a good answer to your question.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 599
Location: London

PostPosted: Thu Jul 17, 2025 12:11 pm
Reply with quote

Using I from 3.4 will also show the candidate volumes if it is multi-volume. You have to hit enter one extra time
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 766
Location: Denmark

PostPosted: Thu Jul 17, 2025 3:06 pm
Reply with quote

@Pete, blimey, I never noticed that line, good point.
Remember that you can use a command like 'listc ent(/) all' from a 3.4 dataset list, where the slash is substituted by the dataset name.
Back to top
View user's profile Send private message
Ilaventhan Senthil

New User


Joined: 12 Jul 2025
Posts: 2
Location: india

PostPosted: Fri Jul 18, 2025 10:29 am
Reply with quote

Thanks all for your valuable inputs and your time.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Identify and write records containing... SYNCSORT 11
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
Search our Forums:


Back to Top