How to define BASE, DELTA and OUTPUT libraries on Endevor
search cancel

How to define BASE, DELTA and OUTPUT libraries on Endevor

book

Article ID: 232412

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Each base or delta library can be an OS partitioned data set (PDS or PDS/E), a Panvalet data set, a Librarian data set, or a self-reorganizing ELIB data set. See File Definition and Maintenance.

Resolution

There are a few options to have the BASE, DELTA and OUTPUT libraries created, but these two are the most recommended:

Option 01:
You can use the EXISTING Base, Delta and Output libraries from another system, as a model to create your new set of datasets.
In order to achieve that, do the following:

  • In the ISPF main menu, select option “3 Utilities
  • Then select option “2 Data Set
  • Under “Other Partitioned, Sequential or VSAM Data Set”, in the field “Name . . . . . . .”,  put the MODEL dataset you are using.
    Other Partitioned, Sequential or VSAM Data Set:

    Name  . . . . . . .                        

  • Hit enter. This will show you the model dataset characteristics. This information will be kept by the system.
  • Hit PF3 once. You should be back to the “Data Set Utility” panel.
  • Now put “A” (for Allocate new data set) AND Under “Other Partitioned, Sequential or VSAM Data Set”, in the field “Name . . . . . . .”,  put the NEW dataset name you want to create.
    Other Partitioned, Sequential or VSAM Data Set:

    Name  . . . . . . .                 
      

  • Hit Enter. You will see all the previous dataset attributes were populated to have this new one created.
  • Review the configuration, and if they are ok, hit ENTER.
  • You should see a message that “Data set allocated
  • Repeat all the steps described above for all datasets you want to create.

 

Option 02:
You can use below IEFBR14 JCL sample to allocate empty BASE, DELTA and OUTPUT libraries, based on your site's implementation.

 //*                                                       
//*************************************************
//**    ALLOCATE BASE, DELTA and OUTPUT libraries                                  
//*************************************************
//ALLOC    EXEC PGM=IEFBR14                                
//DD1      DD DSN=datasetname,    
//         DISP=(NEW,CATLG),                               
//         DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),           
//         UNIT=xxxxx,DSORG=xx,                            
//         SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx

To have more datasets created, simply duplicate DD1 and change the names to DD2, DD3, and so on.

//*                                                        
//*************************************************
//**    ALLOCATE BASE, DELTA and OUTPUT libraries                                 
//*************************************************
//ALLOC    EXEC PGM=IEFBR14                                
//DD1      DD DSN=datasetname,    
//         DISP=(NEW,CATLG),                               
//         DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),           
//         UNIT=xxxxx,DSORG=xx,                             
//         SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
//DD2      DD DSN=datasetname,    
//         DISP=(NEW,CATLG),                               
//         DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),           
//         UNIT=xxxxx,DSORG=xx,                            
//         SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
//DD3      DD DSN=datasetname,    
//         DISP=(NEW,CATLG),                               
//         DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),           
//         UNIT=xxxxx,DSORG=xx,                            
//         SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx

Also, if SMS is active, you can use the LIKE option to copy a dataset DCB. More info at LIKE parameter at the z/OS MVS JCL Reference.


Note: In case you decide to use ELIBs, please follow the instructions at Setting Up ELIB Data Sets.
Remember ELIBS must be initialized.