Previous Topic: InstructionsNext Topic: Step 2:  Define a Work Record


Step 1: Define an Element

Each element that you add to the data dictionary describes a unit of data that can be used in an application.

In order to define an element, you must invoke and sign on to the IDD menu facility. For example, when using IDMS-DC, you invoke the IDD menu facility as shown:

ENTER NEXT TASK CODE:
iddmt
                                                                [Enter]

For more information on invoking and signing on to the IDD menu facility, see Step 1: Invoke the IDD Menu Facility.

You use the Element Entity screen to define elements in the data dictionary. You display the Element Entity screen as shown:

-> elem
                                                                [Enter]

Element Entity Screen

      IDD REL 15.0                *** ELEMENT ENTITY ***                   ELEM  ->                                   DICT=DEMO  X DISPLAY      ELEMENT NAME....:  _ MODIFY  _ ADD          VERSION NUMBER..: 1       _ HIGHEST    _ NEXT HIGHEST  _ DELETE                                 _ LOWEST     _ NEXT LOWEST  DESCRIPTION:  PICTURE....:                                      NO SYNC: X   SYNC: _  USAGE......: X DISPLAY                   _ CONDITION NAME (LEVEL 88)               _ COMP/COMP-4 (BINARY)      _ COMP-3 (PACKED DECIMAL)               _ COMP-1 (SHORT FLOATING)   _ COMP-2 (LONG FLOATING)               _ BIT                       _ POINTER  _ ELMX  =  ELEMENT EXTENSION <PF9>          _ SUBE  =  SUBORD ELEMENTS   <PF11>  _ REGN  =  USER REGISTRATION <PF2>          _ PUBL  =  PUBLIC ACCESS     <PF3>  _ CLAT  =  CLASS/ATTRIBUTES  <PF4>          _ RKEY  =  RELATIONAL KEYS   <PF5>  _ COMM  =  COMMENTS          <PF6>          _ COML  =  COMMENT KEY LIST  <PF7>  _ HIST  =  HISTORY           <PF8>          _ COPY  =  SAME AS/COPY FROM  _ XREF  =  CROSS REFERENCE   <PF10>         _ HELP  =  HELP              <PF1>

Screen Prompts

When you use the Element Entity screen to define an element, you typically enter specifications for the following Element Entity screen prompts:

Defining an Element

To define XXX-WK-FIRST-TIME as an element that stores single-character alphanumeric values, you use the Element Entity screen to:

      IDD REL 15.0                *** ELEMENT ENTITY ***                   ELEM  ->                                   DICT=DEMO     DISPLAY      ELEMENT NAME....: xxx-wk-first-time  _ MODIFY  x ADD          VERSION NUMBER..: 1       _ HIGHEST    _ NEXT HIGHEST  _ DELETE                                 _ LOWEST     _ NEXT LOWEST  DESCRIPTION: passes flag value for dialog xxxdupd  PICTURE....: x                                       NO SYNC: X   SYNC: _  USAGE......: X DISPLAY                   _ CONDITION NAME (LEVEL 88)               _ COMP/COMP-4 (BINARY)      _ COMP-3 (PACKED DECIMAL)               _ COMP-1 (SHORT FLOATING)   _ COMP-2 (LONG FLOATING)               _ BIT                       _ POINTER  _ ELMX  =  ELEMENT EXTENSION <PF9>          _ SUBE  =  SUBORD ELEMENTS   <PF11>  _ REGN  =  USER REGISTRATION <PF2>          _ PUBL  =  PUBLIC ACCESS     <PF3>  _ CLAT  =  CLASS/ATTRIBUTES  <PF4>          _ RKEY  =  RELATIONAL KEYS   <PF5>  _ COMM  =  COMMENTS          <PF6>          _ COML  =  COMMENT KEY LIST  <PF7>  _ HIST  =  HISTORY           <PF8>          _ COPY  =  SAME AS/COPY FROM  _ XREF  =  CROSS REFERENCE   <PF10>         _ HELP  =  HELP              <PF1>

After you press [Enter], the Element Entity screen displays a message to indicate whether the element definition has been added to the data dictionary:

After you successfully add element XXX-WK-FIRST-TIME to the data dictionary, you can define work record XXX-WK-RECORD.