/NRESTART command

The /NRESTART command is used to cold start IMS or warm start IMS following an orderly termination accomplished with a /CHECKPOINT shutdown command.

Subsections:

Environment

The following table lists the environments (DB/DC, DBCTL, and DCCTL) in which you can use the commands and keywords.

Table 1. Valid environments for the /NRESTART command and keywords
Command / Keywords DB/DC DBCTL DCCTL
/NRESTART X X X
BUILDQ X   X
CHKPT X X X
CMDAUTH X   X
CMDAUTHE X   X
FORMAT X X X
MSDBLOAD X    
MULTSIGN X   X
NOBUILDQ X   X
NOCMDAUTH X   X
NOCMDAUTHE X   X
NOTRANAUTH X   X
NOUSER X   X
SNGLSIGN X   X
TRANAUTH X   X
USER X   X

Syntax

Figure 0. Cold start with no previous shutdown
Read syntax diagramSkip visual syntax diagram/NRESTART/NRECHKPT0FORMAT1ALLSMLMQCRSWATRANAUTHNOTRANAUTHCMDAUTHCMDAUTHENOCMDAUTHNOCMDAUTHEUSERNOUSERMULTSIGNSNGLSIGN
Notes:
  • 1 The FORMAT keyword must be followed by at least one of the SM, LM, QC, RS, WA, or ALL parameters.
Figure 0. Warm start after a /CHECKPOINT FREEZE command
Read syntax diagramSkip visual syntax diagram/NRESTART/NREFORMAT1RSWAALLABMSDBLOADTRANAUTHNOTRANAUTHCMDAUTHCMDAUTHENOCMDAUTHNOCMDAUTHEUSERNOUSERMULTSIGNSNGLSIGN
A
Read syntax diagramSkip visual syntax diagramSMLM QCRS WA
B
Read syntax diagramSkip visual syntax diagramNOBUILDQ
Notes:
  • 1 The FORMAT keyword must be followed by at least one of the SM, LM, QC, RS, WA, or ALL parameters.
Figure 0. Warm start after a /CHECKPOINT PURGE or /CHECKPOINT DUMPQ command
Read syntax diagramSkip visual syntax diagram/NRESTART/NREFORMAT1RSWAALLABMSDBLOADTRANAUTHNOTRANAUTHCMDAUTHCMDAUTHENOCMDAUTHNOCMDAUTHEUSERNOUSERMULTSIGNSNGLSIGN
A
Read syntax diagramSkip visual syntax diagramSMLM QCRS WA
B
Read syntax diagramSkip visual syntax diagramBUILDQNOBUILDQ
Notes:
  • 1 The FORMAT keyword must be followed by at least one of the SM, LM, QC, RS, WA, or ALL parameters.

Keywords

The following keywords are valid for the /NRESTART command:

BUILDQ | NOBUILDQ
BUILDQ requests that the message queues dumped on the log be loaded into the message queue data sets. BUILDQ is optional for a warm start after a /CHECKPOINT PURGE or /CHECKPOINT DUMPQ.

The BUILDQ keyword must be included if the message queues are to be restored after being formatted. If the BUILDQ keyword is specified, the log from the last /CHECKPOINT DUMPQ or /CHECKPOINT PURGE is required, slowing down the restart process.

If /NRESTART FORMAT is specified without the BUILDQ keyword, the NOBUILDQ keyword must be specified. Specifying NOBUILDQ reformats the queues in question and all messages are lost.

If an /NRESTART BUILDQ command fails, and then the /ERESTART CHECKPOINT 0, /ERESTART COLDCOMM, or /ERESTART COLDSYS command is performed, the messages are lost. IBM® IMS Queue Control Facility for z/OS® can be used to recover the local message queues.

In a shared-queues environment, the BUILDQ keyword is ignored because the message queue data sets are not used.

CHECKPOINT
Identifies the shutdown/restart sequence. CHECKPOINT 0 must be specified for a cold start.
CMDAUTH
Specifies that both signon (user identification verification) and command authorization for static and ETO terminals are in effect at the end of the emergency restart. (Command authorization is same as specifying RCF=S on the startup parameter.)

To specify CMDAUTH, you must specify RCF=A|Y|T|C|S as an initialization EXEC parameter.

CMDAUTHE
Specifies that command authorization for ETO terminals (same as RCF=S on the startup parameter) is in effect at the end of the emergency restart. CMDAUTHE also resets command authorization for static terminals, if it was set.

To specify CMDAUTHE, you must specify RCF=A|Y|T|C|S as an initialization EXEC parameter.

FORMAT
Specifies which queues or data sets should be formatted as part of the restart process when:
  • A message queue or data set I/O error occurs.
  • The size of a message queue or data set is to be changed.
  • A message queue or data set is to be reallocated.
Specify one or more of the following or ALL:
SM
Short-message queue
LM
Long-message queue
QC
Control record data set
RS
Restart data set
WA
Write-ahead data set
ALL
All message queues (SM and LM) and data sets (QC, WA, and RS)

When FORMAT ALL is specified, do not also specify SM, LM, QC, WA, or RS. FORMAT ALL is only required at IMS initialization (first time use of the system).

You can specify any combination of SM, LM, QC, WA, and RS; for example, FORMAT LM RS.

In a shared-queues environment, the LM, SM, and QC parameters are ignored because the message queue data sets are not used. If you specify ALL, IMS does not attempt to format the message queue data sets.

The following table shows the environments in which the parameters are valid.
Table 2. /NRESTART FORMAT command parameter environments
Parameter DB/DC DBCTL DCCTL
SM X   X
LM X   X
QC X   X
RS X X X
WA X X X
ALL X X 1 X
Note:
  1. Supports only RS and WA parameters.
MSDBLOAD
Requests that the MSDBs be loaded from the z/OS sequential data set MSDBINIT instead of the MSDB checkpoint data set. Use the MSDBLOAD keyword only when an MSDB initial load is required; otherwise, omit it from the /NRESTART command. After you modify an MSDB DBD, you must specify MSDBLOAD on the next warm start of IMS in order for the changes to be effective.
MSDBLOAD is not required:
  • For warm starts when the MSDB checkpoint data set is used.
  • For a cold start because the MSDBs are loaded from the z/OS sequential data set MSDBINIT and the MSDB checkpoint data sets are formatted.
MULTSIGN
Permits multiple signons for each user ID.

In an IMSplex with Resource Manager and a resource structure, if MULTSIGN conflicts with the single user signon definition for the IMSplex, a warning message will be issued.

NOCMDAUTH
Resets command authorization on static and ETO terminals.
NOCMDAUTHE
Resets command authorization for static and ETO terminals. The command authorization is reset for static terminals because the command authorization for static terminals cannot exist without the command authorization for ETO terminals.
NOTRANAUTH
Turns off transaction authorization. NOTRANAUTH is not the opposite of TRANAUTH. TRANAUTH sets transaction authorization and also turns on signon (user identification verification).

If you specify NOTRANAUTH, it is rejected with an error message if TRN=F was specified as a JCL EXEC parameter.

NOUSER
Specifies that none of the following is in effect at the end of the emergency restart:
  • transaction authorization
  • user identification verification
  • command authorization

You can use /NRESTART NOUSER for a warm start, but if transaction or command authorization is set from the checkpoint data, NOUSER is ignored, and signon (user identification verification) is set on.

SNGLSIGN
Permits a single signon for each user ID.

In an IMSplex with Resource Manager and a resource structure, if SNGLSIGN conflicts with the single user signon definition for the IMSplex, a warning message will be issued.

TRANAUTH
Specifies both transaction authorization and user identification verification, with or without RACF®.

To specify TRANAUTH, you must specify RCF=A|Y|T|C|S as an initialization EXEC parameter.

USER
Specifies user identification verification. User identification verification means that signon is required by static terminals. This keyword has no effect on ETO terminals, because they are always required to sign on. User identification verification can be forced on by the TRANAUTH or CMDAUTH keyword

To specify USER, you must specify RCF=A|Y|T|C|S as an initialization EXEC parameter.

Usage notes

This command can be issued to an IMSplex using the Batch SPOC utility.

The /NRESTART command has three forms. The selected form depends on the following conditions:
  • Whether a cold start or warm start is required
  • In the case of warm starts, whether the previous orderly shutdown was accomplished with:
    • /CHECKPOINT FREEZE
    • /CHECKPOINT PURGE or DUMPQ
Attention: A cold start performed after a processing failure could cause processing against uncommitted data. To ensure data integrity, be sure necessary backout or recovery operations have been performed before restarting.

When IMS initializes, the system parameters used for this initialization can come from the IMS system generation, from a PROCLIB member, or from EXEC statements that can override both the defaults and the PROCLIB members. Therefore, message DFS1929I is displayed showing the system parameters used for this particular initialization. The system parameters are also written to the job log.

For an IMS cold start, the base security definition is created from the IMS system definition and EXEC parameter specifications. For an /NRESTART warm restart, the base security definition is created from the IMS checkpoint data.

To override the base security definitions on a cold start, the security keywords of the /NRESTART command must be used.

The SGN=, TRN=, and RCF= startup parameters can be overridden by the /NRESTART command using the security keywords shown in the following table. A brief description of the keywords is also included.

Table 3. Security keywords and their startup parameter equivalents
Keyword Description Startup parameter
CMDAUTH RACF command authorization on static and ETO terminals only. RCF=S
CMDAUTHE RACF command authorization on ETO terminals only. RCF=C
MULTSIGN Permits multiple signons for each user ID. SGN=M
NOCMDAUTH Resets the command authorization on static and ETO terminals. Not RCF=S
NOCMDAUTHE Resets the command authorization on ETO terminals only. Not RCF=C
NOTRANAUTH Resets the transaction authorization. Not TRN=F or Y
NOUSER Resets user identification verification, transaction authorization, and command authorization.

Not SGN=F or Y
(G or Z becomes M)
Not TRN=F or Y
Not RCF=C or S

SNGLSIGN Permits a single signon for each user ID.

SGN=F and Y
Not SGN=M
(G or Z becomes F or Y)

TRANAUTH Transaction authorization. TRN=F or Y
USER Sets user identification verification. SGN=Y

If IMS is enabled to use the IMSRSC repository, IMS calls Resource Manager (RM) during warm start to read the change list, if one exists, for the IMS. The IMS change list is maintained by RM and is built if the IMPORT command with the SCOPE(ALL) keyword is issued while the IMS is down.

If a change list exists for the IMS that is being restarted, the database, program, transaction, and routing code resources and descriptors in the IMS change list and that apply to the IMS environment are quiesced and are not available for use until the stored resource definitions are imported from the repository.

After the IMS log is processed, IMS imports the stored resource definitions from the repository for the database, program, transaction, and routing code resources and descriptors in the IMS change list. It then applies the changes to the runtime resource and descriptor definitions in the IMS.

For the resources or descriptors that are in the IMS change list and that do not exist in IMS, the runtime resource definitions are created from the stored resource definitions in the repository. For the resource or descriptors that exist in IMS, the runtime resource definitions are updated with the stored resource definitions from the repository. The change list for the IMS system is deleted at the end of the warm start.

During cold start, if IMS is enabled to use the repository, the stored resource definitions are read from the repository. The change list is not processed during cold start because all the resource definitions are imported as part of cold start processing. Any change list in RM for the IMS being restarted is deleted.

Examples

The following are examples of the /NRESTART command:

Example 1 for /NRESTART command

This is an example of a cold start with new message queue data sets.

Entry ET:
  /NRESTART CHECKPOINT 0 FORMAT ALL
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS994I *CHKPT 82274/114447**SIMPLE*

Explanation: IMS is started at 114447 (time) on 82274 (Julian date). A simple checkpoint is written on the system log. All message queue data sets are formatted. 82274/114447 is the checkpoint number.

Example 2 for /NRESTART command

This is an example of a warm start from a FREEZE checkpoint.

Entry ET:
  /NRESTART
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82273/180000
  DFS994I *CHKPT 82274/082217**SIMPLE*

Explanation: The restart is being performed from checkpoint 82273/180000, which was written at the most recent IMS shutdown. IMS is restarted at 082217 (time) on 82274 (Julian date). A simple checkpoint is written on this system log. 82274/082217 is the checkpoint number.

Example 3 for /NRESTART command

This is an example of a warm start to format WADS.

Entry ET:
  /NRESTART FORMAT WA
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82119/230000
  DFS994I *CHKPT 82120/101318**SIMPLE*

Explanation: The restart is being performed from checkpoint 82119/230000, which was written at the most recent IMS shutdown. IMS is restarted at 101318 (time) on 82120 (Julian date). A simple checkpoint is written on the system log. 82120/101318 is the checkpoint number.

Example 4 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint.

Entry ET:
  /NRESTART BUILDQ
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82080/214240
  DFS994I *CHKPT 82081/060000**SIMPLE*

Explanation: IMS is restarted at 060000 (time) on 82081 (Julian date) from checkpoint 82080/214240, which was written at the most recent IMS shutdown. 82081/060000 is the checkpoint number.

Example 5 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint. The large and small message queue data sets have been reallocated.

Entry ET:
  /NRESTART BUILDQ FORMAT SM LM
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82170/085236
  DFS994I *CHKPT 82170/085820**SIMPLE*

Explanation: IMS is restarted at 085820 (time) on 82170 (Julian date) from checkpoint 82170/085236, which was written at the most recent IMS shutdown. The large and small message queue data sets are reformatted. 82170/085820 is the checkpoint number.

Example 6 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint. An initial set of MSDBs is needed.

Entry ET:
  /NRESTART BUILDQ MSDBLOAD
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82068/180000
  DFS2554 MSDB MSDBHJ01 LOADED
  DFS2554 MSDB MSDBHJ02 LOADED
  DFS2554 MSDB MSDBAK01 LOADED
  DFS2554 MSDB MSDBAK02 LOADED
  DFS2554 MSDB MSDBPS01 LOADED
  DFS994I *CHKPT 82069/080000**SIMPLE*

Explanation: IMS is restarted at 080000 (time) on 82069 (Julian date) from checkpoint 82068/180000, which was written at the most recent IMS shutdown. A simple checkpoint is written on the system log. 82069/080000 is the checkpoint number. An initial set of MSDBs is loaded from the z/OS sequential data set MSDBINIT.

Example 7 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint with a request for transaction command security.

Entry ET:
  /NRESTART TRANCMDS
Response ET:
  DFS058I  (time stamp) NRESTART COMMAND IN PROGRESS
  DFS680I USING CHKPT 82080/214240
  DFS994I *CHKPT 82274/114447**SIMPLE*

Explanation: The master terminal operator is warm starting IMS and requesting that transaction command security be in effect at the completion of the normal restart.

Example 8 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint with a request to negate transaction command security.

Entry ET:
  /NRESTART NOTRANCMDS
Response ET:
  DFS2181I  CANNOT OVERRIDE FORCED COMMAND SECURITY

Explanation: The master terminal operator is warm starting IMS with a request to negate transaction command security. IMS system definition precludes the authority of the master terminal operator to enter the NOTRANCMDS keyword. IMS returns the DFS2181 message.

Example 9 for /NRESTART command

This is an example of a warm start from a PURGE or DUMPQ checkpoint. The data sets are formatted without rebuilding the message queues.

Entry ET:
  /NRESTART FORMAT SM LM NOBUILDQ
Response ET:
  DFS058 NRESTART COMMAND IN PROGRESS

Explanation: The master terminal operator is warm starting IMS with a request to reformat the data sets without rebuilding the message queues. IMS comes up, but all messages are lost.