MICS DAY030 Abend U0998 - %BATRCWK Macro Not Found
search cancel

MICS DAY030 Abend U0998 - %BATRCWK Macro Not Found

book

Article ID: 434137

calendar_today

Updated On:

Products

MICS Resource Management

Issue/Introduction

The DAY030 step of the first DAILY that ran after applying SMF maintenance abended with a U0999 and the SAS LOG contained the following error:

28422     +  %CRCLEN(TS=DETAIL); %CRCFMT(TS=DETAIL);                               
              _                   _
              180                 180
 ERROR 180-322: Statement is not valid or it is used out of proper order.

It was then determined that the SMFCGEN job was not submitted as required as part of the SMF maintenance being applied, so the SMFCGEN job was submitted and completed successfully.
Upon completion, the DAILY job was restarted in the DAY030 step and abended again, but this time with a U0998 and
the MICS LOG contains the following:

BAS00194E =====> *** ABORT ERROR ***
BAS00194E =====> Error: %BATRCWK macro not found.
BAS00194E =====> Either CYCLEGEN was not run, 
BAS00194E =====>    BAT files are not active in the WK timespan,
BAS00194E =====>    or cccCGEN generated an invalid DYcccSUM member.
BAS00194E =====> Database cycle aging aborting due to errors. 

Cause

This error occurs if the required maintenance steps are not followed in the correct sequence ensuring that each step in the product
change checklist completed successfully before proceeding to the next. 
When applying MICS maintenance, ensure that all steps in the generated checklist are completed in the instructed order.  
If you have any questions regarding any of the steps listed in a generated MICS product change checklist, contact MICS Support before proceeding. 

Specifically, MICS Product Change SMF7047 adds the BATCRC file to the database. If the generation steps associated with this
change (or subsequent maintenance) are skipped or executed out of sequence, the %BATRCWK macro—required for internal
step restart during the DAY030 aging process—will be missing from the unit macro library.

Resolution

To resolve this issue and correctly regenerate the BATCRC related macros, execute the following jobs in this exact order:  
Note: If the SMF component is installed in more than one database unit with internal step restart active, the unit level steps will need to be performed in each unit database. 

  1. Regenerate Component Source:
    sharedprefix.MICS.CNTL(SMFCGEN)

  2. Synchronize Unit Libraries:
    prefix.MICS.CNTL(COPYLIBU)

  3. Generate Component Parameters:
    prefix.MICS.CNTL(SMFPGEN)

  4. Verify BATCRC Configuration:
    Edit prefix.MICS.PARMS(DBMODEL) to ensure the cycle and timespan information for the BATCRC file is set correctly as per the SMF7047 documentation.

  5. Generate GDGs: prefix.MICS.CNTL(GDGSGEN)

  6. Final Cycle Generation:
    prefix.MICS.CNTL(CYCLEGEN)

  7. Recovery
    After the generation steps are completed, restart the failed DAILY job in the DAY030 step.

Because internal step restart is active in this particular instance, MICS will automatically restart the aging process from the beginning of the step.
With the %BATRCWK macro now correctly generated and present in the library, the DAY030 step will complete successfully.