Administrator's Reference

DSMSERV FORMAT (Format the Database and Log)

Use this command to initialize the server database and recovery log. No other server activity is allowed while initializing the database and recovery log.

Attention:

Syntax

>>-DSMSERV FORMAT--number_of_log_files-------------------------->
 
         .-----------------.
         V                 |
>-----+----log_file_name---+-+--number_of_db_files-------------->
      '-file:log_file_name---'
 
         .-----------.
         V           |
>-----+----db_name---+----+------------------------------------><
      '-file:db_file_name-'
 

Parameters

number_of_log_files (Required)
Specifies the number of recovery log files.

log_file_name
Specifies one or more recovery log file names. Before issuing this command, you must allocate and format the files by using the ANRFMT job or the ANRFMT2 job found in the ASAMPLIB dataset. For information on using these jobs, see Administrator's Guide.

The number of names must match the number specified by the number_of_log_files parameter. The minimum size for the log is 9MB.

file:log_file_name
Specifies the name of a file that contains a list of recovery log volumes.

It is recommended that you specify a fully-qualified name enclosed in single quotes so that you will not be affected by data set name qualification rules that depend on your operating environment.

The number of names must match the number specified by the number_of_log_files parameter. You must list the volumes in the order in which they are to be used. The minimum size for the log is 9MB.

number_of_db_files (Required)
Specifies the number of database files.

db_file_name
Specifies one or more database file names. Before issuing this command, you must allocate and format the files by using the ANRFMT job or the ANRFMT2 job found in the ASAMPLIB dataset. For information on using these jobs, see Administrator's Guide

The number of names must match the number specified by the number_of_db_files parameter. The minimum size for the database is 5MB.

file:db_file_name

The number of names must match the number specified by the number_of_db_files parameter. You must list the volumes in the order they are to be used. The minimum size for the database is 5MB.

Examples

Task

Initialize the database and recovery log to prepare for reloading a dumped database.

  1. The server must be halted.

  2. Use the ANRFMT job or the ANRFMT2 job found in the ASAMPLIB dataset to allocate and format the files to be used for the database and recovery log.

  3. Start the DSMSERV FORMAT utility.
Sample JCL:
//DSMINST  JOB ,
//          REGION=40M,TIME=1440,CLASS=A,MSGCLASS=H,NOTIFY=DSMTST0
//DFDSM  EXEC PGM=ANRSERV,DYNAMNBR=300,
// PARM='/FORMAT 1 ADSMSRV0.RLOG 1 ADSMSRV0.DB01'
//STEPLIB  DD DSN=EDC.V2R1M0.SEDCLINK,DISP=SHR
//         DD DSN=PLI.MINI.SIBMLINK,DISP=SHR
//         DD DSN=SYS1.LINKLIB,DISP=SHR
//         DD DSN=DSM.LINKLIB,DISP=SHR
//OPT      DD DSN=ADSMSRVO.OPTIONS,DISP=SHR
//DSMAMENG DD DSN=ADSMSRVO.AMENGT3,DISP=SHR
//DSK      DD DSN=ADSMSRV0.DISKLOG,DISP=OLD
//ERR      DD DSN=ADSMSRV0.ERRORLOG,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSTERM  DD SYSOUT=*


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]