About the re-initialization error by '-OPT INIT' and '-OPT BKUPDISK'.

Document ID : KB000049075
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

The following error message was output when we initialized the existing master file using DISP=SHR/OLD by the -OPT INIT and/or the -OPT BKUPDISK.

  *** ERROR ***          MASTER FILE CANNOT BE INITIALIZED AS NOT NEW FILE.  (The case of -OPT INIT)
  *** ERROR ***          BACKUP FILE CANNOT BE INITIALIZED AS NOT NEW FILE.  (The case of -OPT BKUPDISK)

Solution:

After R4.3 + PTF(QO93714) or R4.4, in order to prevent the corruption of master file, initialization processing of the master file using DISP=SHR/OLD is handled as an error.
When you initialize a master file, please create new master file by using DISP=NEW.
Also, when you want to change only the parameter setting for your existing master file, please use the -OPT REINIT.

You can execute the processing same as old version and evade an error by following special solution.
If you need the special solution please contact our support staff.

For R4.3/SO05 - RO06895 + RS06899
For R4.4 - RS40536

The following are the sample jcls for the DISP=SHE/OLD initialization.

The sample of -OPT INIT;
 //      JOB
 //STEP01   EXEC PGM=AFOLIBR
 //STEPLIB   DD  DISP=SHR,DSN=your CA-Librarian load library
 //SYSPRINT  DD  SYSOUT=*
 //MASTER    DD  DISP=SHR,DSN=your CA-Librarian Master file         <= your existing master file
 //OSJOB     DD  DUMMY
 //SYSIN     DD  *
 -OPT INIT,DISK,COMPRESS=FULL,SEQ=/1,6,10,10/,ARC=10
 /*                                                       
 //
 
The sample of -OPT BKUPDISK;
 //      JOB
 //STEP01   EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
 //STEPLIB   DD  DISP=SHR,DSN=your CA-Librarian load library
 //SYSPRINT  DD  SYSOUT=*
 //INDEX     DD  SYSOUT=*
 //MASTER    DD  DISP=SHR,DSN=your CA-Librarian Master file
 //OSJOB     DD  DUMMY
 //BACKUP    DD  DISP=SHR,DSN=your CA-Librarian BACKUP Master file  <= your existing master file
 //SYSIN     DD  *
 -OPT BKUPDISK,INDEX
 /*
 //