Open topic with navigation
WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
xcall DD_RELATION(dcs, DDR_LIST, names_req, array, [start][, #names])
xcall DD_RELATION(dcs, DDR_INFO, name, from_key, to_struct, to_key)
The repository control structure.
Returns the current structure’s relation names.
The number of relation names requested. (d2)
Returned with the array of relation names. ((*)a30)
(optional) Contains the relation name at which to start. (a30)
(optional) Returned with the number of relation names. (d2)
Returns general relation information.
The unique relation name. (a30)
Returned with the name of the relation’s “from” key. (a30)
Returned with the name of the relation’s “to” structure. (a30)
Returned with the name of the relation’s “to” key. (a30)
The DD_RELATION subroutine returns information about relations for the current structure. There are two ways to call DD_RELATION:
You must have previously set the current structure with the DD_STRUCT subroutine. The same DD_STRUCT call should also have told you the number of relations that exist.
If you pass DDR_LIST, the DD_RELATION subroutine returns an array of relation names for the current structure. The names are returned in alphabetical order, starting with either the first name found or the specified name. DD_RELATION returns as many relation names as are found or as are requested, whichever is smaller. The actual number of names in the array can be returned in #names.
You must ensure that the buffer passed is large enough to hold the number of names you are requesting.
If you pass DDR_INFO, this subroutine reads the specified relation. If that relation is not found, the relevant error code is returned in the control structure. If it is found, general relation information is returned.