Performs data set cleanup before the original job run.
Additional information |
Description |
|
---|---|---|
Usage |
Optional |
|
Format |
Select one of the following from the Prevent NCT2 list box:
|
|
Variable Name |
None |
|
Alternate names |
|
|
Alternate Formats |
||
Control‑M/EM Utilities |
Valid values:
|
|
Control‑M for z/OS |
PREVENT‑NCT2 is composed of two parameters: |
|
PREVENT‑NCT2 |
Valid values:
|
|
DFLT |
Protected field indicating the PREVENT-NCT2 default value for the Control‑M for z/OS site. The default is set in parameter NCAT2 in the CTRPARM member in the IOA PARM library. A value specified in the PREVENT-NCT2 parameter overrides the site default. |
If a job tries to create a data set that already exists, the job may fail with a DUPLICATE DATA SET ON VOLUME error. If a job tries to create a data set whose name is already cataloged, the job may fail with an error message that indicates a reason of NOT CATLGD for reason code 2 (the Control‑M/Restart term PREVENT-NCT2 is derived from this error situation). These problems can be avoided by performing data set cleanup. During data set cleanup, Control‑M/Restart does the following:
Control‑M/Restart automatically performs data set cleanup prior to restarts and reruns. However, it may be desirable to perform data set cleanup before the original job run, because data sets accessed by the job can have file-related errors that were generated by an entirely different job. When data set cleanup is performed as part of the original job request, it is called PREVENT-NCT2 processing. The site-defined default in parameter NCT2 in member CTRPARM determines whether data set cleanup is to be performed before the original job run. The Prevent NCT2 parameter can be used to override this default to determine what data set cleanup instructions are provided to the original job run. Possible values, and their effects, are described below:
NOTE: If you would normally specify N (that is, Control‑M/Restart processing is not desired for the original run), but the JCL requires GDG processing, BMC Software recommends that you specify value L instead of value N.
If a value of Y, L, or F is specified (that is, if some kind of special NCT2 processing is desired), a ControlR step is automatically added as a first step of the submitted job. The PREVENT NCT2 parameter has no impact on restarts, because Control‑M/Restart automatically performs data set cleanup prior to restarts.
Parent Topic |