How to change existing ALTERNATE map definitions
search cancel

How to change existing ALTERNATE map definitions

book

Article ID: 59242

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

ALTERNATE maps need to maintain the same date-time stamp as the original map. If you need to add a new field to existing original and alternate maps, how do you do so without generating a different date-time stamp on the alternate map?

Environment

Release: All supported releases.
Component: Mapping.

Resolution

If you simply copy the original map again after having added the new field, then you have to re-edit all of the literal fields which were most likely already edited.

If you add the field to the alternate map independently, this is a critical time change and you will generate a different date-time stamp on the alternate map, and so the dialog will fail at run-time.

The solution is to do the second of the above options, and then use the DATETIME option in RHDCMPUT to de-compile the map:-

//SYSIPT DD *
PROCESS=DECOMPILE,DATETIME=YES
MAP=IJHNIECT,VERSION=1

  1. Make the change to the original map.
  2. Make the corresponding change to the alternate map.
  3. Use RHDCMPUT to decompile both maps with the DATETIME option.
  4. Manually change the DATETIME field in the alternate map to that from the original map.
  5. Use RHDCMAP1 to re-add the alternate map to the dictionary.
  6. Compile the alternate map either with MAPC or RHDCMPUT.