Logo
Back

◆ Test Compilations of FAMILYMANAGER rules using

  SYSTEM/OPAL

16th September 2004
Flex users who use Metalogic's FAMILYMANAGER product for their backup strategy can now compile rules for syntax using the SYSTEM/OPAL compiler, from CANDE, without having to use a RULES ENTER command.

As with DEFINE in ENTER files, the stand-alone compiler searches for the keywords ZAP, RELEASE, RIP etc. to signify the start of a rule definition. This allows new FLEX rules to be checked for syntax from a non-rules usercode without requiring a RULES ENTER command and is a significant step forward in rule development.

The files may be compiled under any usercode but must still enter the rules using the RULES ENTER command using the Rules Usercode and Accesscode.

For a rule to compile successfully, the same conditions employed by FLEX Inquiry apply i.e. there must be a message description enclosed in quotes after the rule type (this is handled as an OPAL string and is compiled), followed by a colon. The rule expression may appear on the same line. The expression MUST terminate with a semi-colon or the OPAL compiler will give a syntax error.

NEXT+ ....*....1....*....2....*....3....*....4....*....5....*...
00000100FORGET "XREFFILES" :"XREFFILES" ISIN TITLE;
00000200FORGET "CANDE & MAIL recovery files":
00000300 ( FILEID(TITLE,1)="CANDE" AND
00000400 FILEID(TITLE,2) HDIS {"RECV","TEXT","CODE"}) OR
00000500 ( FILEID(TITLE,1)="MAIL" AND
00000600 FILEID(TITLE,2)="RECOVERY");
COMP W OPAL
#COMPILING 54981
#? ** Compiling FORGET Rule "XREFFILES" **
Compiled Ok.. 1 lines, 29 bytes code, 1 sectors
** Compiling FORGET Rule "CANDE & MAIL recovery files" **
Compiled Ok.. 4 lines, 120 bytes code, 4 sectors
2 RULE(S) processed, 0 RULE(S) failed, 0 Errors found, 0 Warnings
#ET=0.2 PT=0.1 IO=0.0

The dollar options LIST and CODE will generate source and code listings similar to compilation of ENTER files.