Attachment Routine Syntax

In this document, the <ROUTINE> portion of the attachment call will be used to identify which Attachment routine is being referred to. <ROUTINE> indicates the type of comment processing that will be performed and <Prefix> is the three-character database file prefix identifying the file to be processed. In this section, the <ROUTINE> name (for example, CSTORE) will be used to identify the API.

Comment Attachment Call

The generic syntax is

CALLP     U@@ATTACHIO('<ROUTINE>': D<Prefix>@@HANDLE:
        %ADDR(D<Prefix>@C@@PATH): %ADDR(D<Prefix>@RECORD):
        %ADDR(D<Prefix>@C@))  

For example, to save a comment attached to the Company file, you would use the routine CSTORE and the prefix COM.

CALLP     U@@ATTACHIO('CSTORE': DCOM@@HANDLE: 
          %ADDR(DCOM@C@@PATH): %ADDR(DCOM@RECORD):  
          %ADDR(DCOM@C@))  

URL Attachment Call

The generic syntax is

CALLP     U@@ATTACHIO('<ROUTINE>': D<Prefix>@@HANDLE:
        %ADDR(D<Prefix>@U@@PATH): %ADDR(D<Prefix>@RECORD):
        %ADDR(D<Prefix>@U@))  

For example, to save a URL attached to the Company file, you would use the routine USTORE and the prefix COM.

CALLP     U@@ATTACHIO('USTORE': DCOM@@HANDLE: 
          %ADDR(DCOM@U@@PATH): %ADDR(DCOM@RECORD):
          %ADDR(DCOM@U@))