How to change records that are included in MAPs and/or SCHEMAs ?
search cancel

How to change records that are included in MAPs and/or SCHEMAs ?

book

Article ID: 25546

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

In IDD, a change is made to a group element which is part of a record that is included in a MAP or a SCHEMA.

Attempting to REPLACE this ELEMENT within the record doesn’t work. It fails with DC601045  "NOT IDD OWNED - ANY CHANGE IS INVALID"

A client has requested a SCHEMA record be changed that is IDD owned.
I added a 'V 2' of the record in IDD.  Then I changed the SCHEMA to SHARE STRUCTURE OF REC V 2 and VALIDATED the SCHEMA.  
Then I try to change the rec in IDD and get the following errors -

MOD REC PCBASIC V 1.                                                                  

REMOVE REC ELE 'FIL 0074' LINE 1250.                                                  

*+ E DC601045  NOT IDD OWNED - ANY CHANGE IS INVALID                    WORD  6        

*+ W DC601017  FORWARD SPACING TO NEXT PERIOD                           WORD  6       

REC ELE DATE-CON-DISC LINE 1250.                                                      

*+ E DC601110  ELEMENT NAME AND VERSION COULD NOT BE FOUND AT           WORD  5       

*+ - DC601110  SPECIFIED LINE                                                         

*+ W DC601017  FORWARD SPACING TO NEXT PERIOD                           WORD  5       

REC ELE 'FIL 0069' LINE 1300.                                                          

*+ E DC601045  NOT IDD OWNED - ANY CHANGE IS INVALID                    WORD  5       

*+ W DC601017  FORWARD SPACING TO NEXT PERIOD                           WORD  5       

 

 

 

 

 

Environment

Release: IDMS 19.0

Resolution

In IDD, it is not possible to change a record that is Schema or Map-Owned.
To make any change to a Schema or Map-Owned record, it must be removed from all the schemas and/or maps to which is currently defined before IDD will
allow the record to be changed.

Steps to modify a record that is schema and/or map owned in IDD.

Where n = is the current version number.
Where nn = the new temp version number.

  1. In IDD: ' DISPLAY RECORD record-name VERSION n.'
    To produce a cross-reference list for all entities where record is defined.

  2. ' MOD REC record-name VERSION n NEW VERSION IS nn. '
    Now all schema/maps/etc that where pointing to 'record-name VERSION n', point to
    to 'record-name VERSION nn'.

  3. Since 'record-name VERSION n' no longer exists it can be added to the
    dictionary with the desired new structure in IDD.
    'ADD REC record-name VERSION n.' {with the desired new structure]

  4. Modify the schema/maps so that now it points to the newly added 'record-
    name V n' and generate all affected schema/maps/etc

 

 

Additional Information

For an example of changing a field in a map-owned record see the attached zip file

Attachments

1558535241208TEC479496.zip get_app