Retrieve tag information

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
xcall DD_TAG(dcs, DDTG_LIST, names_req, array, [start][, #names])


xcall DD_TAG(dcs, DDTG_INFO, name, tg_info)


The repository control structure.


Returns the current structure’s tag names.


The number of tag names requested. (d2)


Returned with the array of tag names. ((*)a30)


(optional) Contains the tag name at which to start. (a30)


(optional) Returned with the number of tag names. (d2)


Returns general tag information.


The unique tag name. (a30)


Returned with the tag data. See the tg_info record definition in the ddinfo.def file.

The DD_TAG subroutine returns information about tags for the current structure. There are two ways to call DD_TAG:

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 tags that exist.


If you pass DDTG_LIST, the DD_TAG subroutine returns an array of tag names for the current structure. The names are returned in alphabetical order, starting with either the first name found or the specified name. DD_TAG returns as many tag 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 DDTG_INFO, this subroutine reads the specified tag. If that tag is not found, the relevant error code is returned in the control structure. If it is found, general tag information is returned in tg_info.