Models that will be recreated when the document @(Doc.Name) is changed:
#
    NUMBER d
    FOR d FROM 1 UPTO ndocs
    DO
        WITH Doc PATH REP.Document
        WHERE PAR(1) = docs[d]
        DO
            IF compare_characters (Doc.DocType; "MODELDOC") = 0
            THEN
#
@(Doc.Name)
#
            FI
        OD
    OD
OD
END
#