Schema record display never displays element synonyms
search cancel

Schema record display never displays element synonyms

book

Article ID: 430512

calendar_today

Updated On:

Products

IDMS

Issue/Introduction

When issuing DISPLAY RECORD within the SCHEMA compiler for a schema record that has been defined by using SHARE STRUCTURE of a record that is a synonym, the display only ever shows the primary element names - not the element synonyms, regardless of the options specified on the DISPLAY verb.

Example.

*+   ADD
*+   RECORD NAME IS DEPARTMENT VERSION IS 1
...
*+       RECORD NAME SYNONYM IS DEPARTMENT VERSION 1
*+       RECORD NAME SYNONYM IS DB-DEPARTMENT VERSION 1
*+           PREFIX IS DB-
*+           COPIED INTO SCHEMA EMPSCHM VERSION 1
*+       .
*+       RECORD ELEMENT IS DEPT-ID VERSION 1
*+       LINE IS 000100
*+       LEVEL NUMBER IS 02
*+       PICTURE IS  9(4)
*+       USAGE IS DISPLAY
*+       ELEMENT LENGTH IS 4
*+       POSITION IS 1
*+       .

DIS SCHEMA EMPSCHM WITHO ALL.
*+   ADD
*+   SCHEMA NAME IS EMPSCHM VERSION IS 1
*+       .
DIS REC DB-DEPARTMENT WITH ALL.
*+   ADD
*+   RECORD NAME IS DB-DEPARTMENT
*+       SHARE STRUCTURE OF RECORD DB-DEPARTMENT VERSION 1
*+           SYNONYM OF PRIMARY RECORD DEPARTMENT VERSION 1
*+       RECORD ID IS 410
*+       LOCATION MODE IS CALC USING ( DB-DEPT-ID )
*+           DUPLICATES ARE NOT ALLOWED
*+       WITHIN AREA ORG-DEMO-REGION
*+       .
*+   02 DEPT-ID
*+       USAGE IS DISPLAY
*+       ELEMENT LENGTH IS 4
*+       POSITION IS 1
*+       .

Environment

Release: All supported releases.

Cause

That's the way it works.

Resolution

In order to have the elements listed with their synonyms, the record synonym must be displayed in IDD.

DIS REC SYN DB-DEPARTMENT.
*+   MOD
*+   RECORD NAME IS DEPARTMENT VERSION 1
*+       RECORD NAME SYNONYM IS DB-DEPARTMENT VERSION 1
*+           PREFIX IS DB-
*+           COPIED INTO SCHEMA EMPSCHM VERSION 1
*+       .
*+   02 DB-DEPT-ID
*+       PICTURE IS 9(4) 
*+       USAGE IS DISPLAY
*+       ELEMENT LENGTH IS 4
*+       POSITION IS 1
*+       .