Unexpected DC601040 UNKNOWN KEYWORD message
search cancel

Unexpected DC601040 UNKNOWN KEYWORD message

book

Article ID: 62249

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

When trying to ADD an entity to the dictionary through IDD, for example a record, an unexpected DC601040 UNKNOWN KEYWORD message is issued.

Environment

Release: All supported releases.

Resolution

This can occur as the result of a missing CLASS definition. IDD supports the notion of user-defined CLASSes and ATTRIBUTEs.

If an entity is being copied from one dictionary to another, where the source dictionary has a particular class defined but the target dictionary does not, a DC601040 will result.

For example:

     ADD     RECORD NAME IS TEST-REC VERSION IS 1
         DESCRIPTION IS 'MQSERIES GET-MESSAGE OPTIONS'
         PUBLIC ACCESS IS ALLOWED FOR ALL
         'COMPONENT' IS WDB2
*+ E DC601040  UNKNOWN KEYWORD                                          WORD  1
*+ E DC601040  UNKNOWN KEYWORD                                          WORD  2
*+ E DC601040  UNKNOWN KEYWORD                                          WORD  3
         RECORD NAME SYNONYM IS TEST-REC VERSION 1         .
         RECORD ELEMENT IS NUM4 VERSION 1
         PICTURE IS  9(4)
         USAGE IS DISPLAY         .

The DC601040 is issued because the COMPONENT class is not defined in the target dictionary, and IDD does not understand it as a keyword.

To resolve the problem, define the CLASS and ATTRIBUTE.

     ADD
     CLASS NAME IS COMPONENT
         ATTRIBUTES ARE AUTOMATIC PLURAL         .
     ADD     ATTRIBUTE NAME IS WDB2 WITHIN CLASS COMPONENT         .

Additional Information

Entity-Type Syntax