PRIORITY

action : PRIORITY( value ) ;

actionAn action (typically OUTPUT) that will produce a result.
valueAn integer in the range 0-100 indicating the relative importance of the action.

The PRIORITY service establishes the relative importance of multiple actions in the workunit. The higher value an action has, the greater its priority. The highest priority action executes first, if possible. PRIORITY is not allowed on attribute definitions, it must only be associated with an action. Only available if workflow services are turned on (see #OPTION(workflow)).

Example:

personRecord := RECORD
  STRING UID;
  STRING first_name;
  STRING last_name;
  STRING address;
  STRING city;
  STRING state;
  STRING zip;
END;
person := DATASET([{'923','James','Jones','123 Elm Street','Hollywood','FL','33022'},
                   {'924','Sally','Jones','22 Main Street','Tampa','FL','33604'},
                   {'925','Jose','Gomez','111 Biscaya Lane','Miami','FL','33101'},
                   {'926','Adam','Wesson','77 Sunset Blvd','Boston','MA','02108'},
                   {'927','Evelyn','Murray','740 SW 10th Street','Boston ','MA','02116'},
                   {'928','Joe','Yung','7511 Simson Avenue','Chicago','IL','60131'}], personRecord);
OUTPUT(Person(state='MA')) : PRIORITY(30);
OUTPUT(Person(state='IL')) : PRIORITY(60);
OUTPUT(Person(state='FL')) : PRIORITY(90);

See Also: OUTPUT, #OPTION