DEFINE VARIABLE cProcName AS CHARACTER NO-UNDO FORMAT "x(32)".
DEFINE VARIABLE ix AS INTEGER NO-UNDO. INPUT FROM "crctable.dat". /* List of r-code file pathnames */ REPEAT: SET cProcName. FIND RcodeSecurity WHERE RcodeSecurity.Filename = cProcName NO-ERROR. IF NOT AVAILABLE(RcodeSecurity) THEN CREATE RcodeSecurity. ASSIGN RCODE-INFO:FILE-NAME = cProcName. RcodeSecurity.Filename = cProcName RcodeSecurity.Crc = RCODE-INFO:CRC-VALUE ix = ix + 1. END. INPUT CLOSE. MESSAGE ix "procedure security records created". |
FIND RcodeSecurity WHERE RcodeSecurity.Filename = "secret.r".
RCODE-INFO:FILE-NAME = "secret.r". IF RcodeSecurity.Crc = RCODE-INFO:CRC-VALUE THEN RUN secret. ELSE DO: MESSAGE "Procedure secret.r is invalid.". QUIT. END. |