CCREATE

CCREATEcreates a comment record for the file record currently being accessed by the program. Before creating the comment, move the user-defined comment type to the variable D<Prefix>@C@TYPE.

To store the comment in the database, use CSTORE.

Programming Example

This example sets the comment type, creates the comment, and stores the comment in the database.

Note: The variable names in this example include the three-character database file prefix (<Prefix>). For example, if the program is using the file COMPANY, then the variable D<Prefix>@C@TYPE would be DCOM@C@TYPE.
        EVAL      DCOM@C@TYPE = 'A'
        CALLP     U@@ATTACHIO('CCREATE': DCOM@@HANDLE:  
                  %ADDR(DCOM@C@@PATH): %ADDR(DCOM@RECORD):
                  %ADDR(DCOM@C@))  
        CALLP     U@@ATTACHIO('CSTORE': DCOM@@HANDLE:   
                  %ADDR(DCOM@C@@PATH): %ADDR(DCOM@RECORD):
                  %ADDR(DCOM@C@))