macro

macro


m Index Level n
Syntax
Category Update processor
Type Definition
Description Identifies the default attribute-defining items used for input and output processing of the item.

Output from access verbs use the "output-macro" attribute-defining item to identify the default attribute-defining items to be used for output display. If the "output-macro" is null, then the "macro" attribute-defining item is used.

In an attribute-defining item, with a remote index to another file, the attribute-defining items listed in the "macro" attribute are automatically passed to UP when "zooming" to the remote file. If no list of attribute-defining items exists in the "macro" attribute, the "default" macro in the target "remote" file is automatically used. In order to 'zoom' (<ctrl>+g) to another file, the "input" attribute-defining item must be defined with either an index or a translate to the remote file.
Options
See Also i (index, remote) i (index, local) Access i (index, File-defining Item) input-conversion output-macro macro g zooming Update processor (UP)
Example The following example of an attribute-defining item shows the default attributes to be used by the Update processor when 'zooming' to another file.

ud filename vendor  
dictionary-code       a
modulo                1
structure
retrieval-lock
update-lock
output-conversion
correlative           
attribute-type        l
input-conversion      ivendor;a1
macro                 vendor.name vendor.address vendor.zip (i
output-macro
output-conversion
description   

When in data entry mode on the "vendor" attribute of the specified filename, when <ctrl>+g is typed, UP 'zooms' to the vendor file and displays the attibutes 'vendor.name', 'vendor.address', and 'vendor.zip'.

The 'i' option displays the item-id of the file along with the specified attributes.

If no attribute-defining items are defined, when <ctrl>+g is typed, UP will use the attributes defined on the macro attribute in the file-defining item of the 'vendor' file.
Warnings
Compatibility D3 7.0 AP
m Index Level n