View previous topic :: View next topic
|
Author |
Message |
gadiyarampavan
New User
Joined: 22 Feb 2005 Posts: 18 Location: Hyderabad
|
|
|
|
Hi,
This is Pavan Kumar. While creating the DDM, if we have the same DB name, how we can consider. Please have a look into the below example.
Level DB name Name Type
-------------------------------------------------
1 AA REC-ID-AREA Group
1 AA RI-REC-ID-AREA Group
2 AB PM01-CONTRACT-NUMBER Packed Dec 11.0 Elementary
2 AB RI-CONTRACT-NUMBER Packed Dec 11.0 Elementary
In the above example, we have two DBNAMEs as AA and AA. So, while creating DDM, do we need to consider the second one also.
Please suggest me if anybody know about this issue.
Thanks,
Pavan Kumar |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What do you mean by "do we need to consider"?
Indeed, Natural DDMs allow for multiple definitions of the same ADABAS fields, even with different formats. This is done in order to facilitate the coding work of the Natural programmer and to avoid redefines within the program. However, sometimes this flexibility (as with other Natural features) might be confusing as the novice programmer might use the incorrect field.
O. |
|
Back to top |
|
|
gadiyarampavan
New User
Joined: 22 Feb 2005 Posts: 18 Location: Hyderabad
|
|
|
|
In the above example, I want to know, do we need to declare the fields having same DB name's.
Level DB name Name Type
------ --------- -------------- --------
1 AA REC-ID-AREA Group
1 AA RI-REC-ID-AREA Group
2 AB PM01-CONTRACT-NUMBER Packed Dec 11.0
2 AB RI-CONTRACT-NUMBER Packed Dec 11.0
Here, in the above example, AB and AB are the two DB names with same structure. In this case, do we need to declare both?
Thanks,
Pavan Kumar |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Where do you want do declare it?
You don't declare ADABAS fields directly. You declare DDM fields with their long name(that's why they invented the DDM...).
O. |
|
Back to top |
|
|
|