Performing multiple cold starts in a test environment

Many times in a test environment, you may want to cold start IMS. In order to cold start IMS the last OLDS must be closed.

If you have no need to close the OLDS, you can use the following commands to close the OLDS and mark it archived in the RECON data set so it can be reused:

NOTIFY.PRILOG STARTIME(%OLDOTIM) RUNTIME(070682226022-0800) -
      LASTREC(670) OLDS(DFSOLP02) SSID(IMS1) 
CHANGE.PRILOG OLDS(DFSOLP02) ARCHIVED SSID(IMS1)

The entries for each OLDS (such as: DFSOLP00, DSPOLP01, and DSPOLD02) in the PRIOLD record are built when the OLDSs are used (if they do not already exist in the RECON data set). If you also need to delete the OLDS from the RECON data set, the following commands can be used:

DELETE.LOG OLDS(DFSOLP00) SSID(IMSA)
DELETE.LOG OLDS(DFSOLP01) SSID(IMSA)
DELETE.LOG OLDS(DFSOLP02) SSID(IMSA) LASTCLOS
 

Note that the LASTCLOS is necessary to delete the last OLDS used by IMS. The PRIOLD record is also deleted when the last DD name entry is removed.

The PRIOLD record before issuing the commands:

PRIOLD
  SSID=IMS1            # DD ENTRIES=3
  EARLIEST CHECKPOINT = 07.068 20:55:58.622862

  DDNAME=DFSOLP00   DSN=IMSTESTL.IMS01.OLDSP0
  START = 07.068 20:55:57.984378           FIRST DS LSN= 0000000000000001
  STOP  = 07.068 20:56:39.570062           LAST  DS LSN= 00000000000006D1
  LOCK SEQUENCE# = 000000000000
  STATUS=ARC COMPLT                                FEOV=YES   AVAIL
  PRILOG TIME=07.068 20:55:57.984378           ARCHIVE JOB NAME=JT205639
  VERSION=10.1

  DDNAME=DFSOLP01   DSN=IMSTESTL.IMS01.OLDSP1
  START = 07.068 20:56:39.570062           FIRST DS LSN= 00000000000006D2
  STOP  = 07.068 20:56:53.689006           LAST  DS LSN= 0000000000000831
  LOCK SEQUENCE# = 000000000000
  STATUS=ARC COMPLT                                FEOV=YES   AVAIL
  PRILOG TIME=07.068 20:55:57.984378           ARCHIVE JOB NAME=JT205653
  VERSION=10.1

  DDNAME=DFSOLP02   DSN=IMSTESTL.IMS01.OLDSP2
  START = 07.068 20:56:53.689006           FIRST DS LSN= 0000000000000832
  STOP  = 00.000 00:00:00.000000           LAST  DS LSN= 0000000000000000
  LOCK SEQUENCE# = 000000000000
  STATUS=ACTIVE                                    FEOV=NO    AVAIL
  PRILOG TIME=07.068 20:55:57.984378
  VERSION=10.1

The PRIOLD record after issuing the commands to close and mark DFSOLP02 as archived (with the differences highlighted):

PRIOLD
  SSID=IMS1            # DD ENTRIES=3
  EARLIEST CHECKPOINT = 07.068 20:55:58.622862

  DDNAME=DFSOLP00   DSN=IMSTESTL.IMS01.OLDSP0
  START = 07.068 20:55:57.984378           FIRST DS LSN= 0000000000000001
  STOP  = 07.068 20:56:39.570062           LAST  DS LSN= 00000000000006D1
  LOCK SEQUENCE# = 000000000000
  STATUS=ARC COMPLT                                FEOV=YES   AVAIL
  PRILOG TIME=07.068 20:55:57.984378           ARCHIVE JOB NAME=JT205639
  VERSION=10.1

  DDNAME=DFSOLP01   DSN=IMSTESTL.IMS01.OLDSP1
  START = 07.068 20:56:39.570062           FIRST DS LSN= 00000000000006D2
  STOP  = 07.068 20:56:53.689006           LAST  DS LSN= 0000000000000831
  LOCK SEQUENCE# = 000000000000
  STATUS=ARC COMPLT                                FEOV=YES   AVAIL
  PRILOG TIME=07.068 20:55:57.984378           ARCHIVE JOB NAME=JT205653
  VERSION=10.1

  DDNAME=DFSOLP02   DSN=IMSTESTL.IMS01.OLDSP2
  START = 07.068 20:56:53.689006           FIRST DS LSN= 0000000000000832
  STOP  = 07.068 22:26:02.200000           LAST  DS LSN= 000000000000029E
  LOCK SEQUENCE# = 000000000000
  STATUS=ARC COMPLT                                FEOV=NO    AVAIL
  PRILOG TIME=07.068 20:55:57.984378
  VERSION=10.1