Use of element level numbers in Datadictionary copybooks
search cancel

Use of element level numbers in Datadictionary copybooks

book

Article ID: 58583

calendar_today

Updated On:

Products

Datacom Datacom/DB Datacom/DB

Issue/Introduction

Datadictionary copybooks contain a COBOL-like layout of elements; these are assigned level numbers.

This document explains how these are established.

 

 

Resolution

The level numbers used by copybooks are set by two parameters. CPYLVST indicates the start level for the first element in a copybook; CPYLVIN indicates the increment to use for each level of subordinate elements. These are specified in the DDSYSTBL macro that builds the Datadictionary System Resource Table (SRT). The SRT describes the processing options which form the basis of the Datadictionary operation.

For example, review this example of a copybook in the dictionary:

                      Copybook Display
========================== T O P ======================================
02 C2201-DL-SUSP-PERIOD-ELEMENT.
03 C2201-CRT-CASE-DEF-NO.
04 C2201-COURT-ID PICTURE X(2).
04 C2201-COURT-CASE-NO PICTURE X(6).

 

In the above example, the DDSYSTBL values are set to the default of CPYLVST=02 and CPYLVIN=01. You can see the current values of these settings by using the CICS command DBUT M=DDSRTLM. They can be changed by reassembling the DDSRTLM module, using the CUSMAC(DDSYSTBL) macro settings. There is a step in the BDCUSNEW configuration job that you can use as an example.

 

Additional Information

As always, please contact Broadcom support for Datacom if you have further questions.