Loading...
Searching...
No Matches
mpe_tables_postedit.sas File Reference

Post Edit Hook script for the MPE_TABLES table. More...

Go to the source code of this file.

Detailed Description

Post edit hooks provide additional backend validation for user provided data. The incoming dataset is named work.staging_ds and is provided in mpe_loader.sas.

Available macro variables:

  • DC_LIBREF - The DC control library
  • LIBREF - The library of the dataset being edited (is assigned)
  • DS - The dataset being edited

This validation checks MPE_TABLES to ensure modified / added records are valid. If a non-default AUDIT_LIBDS is being used, there is also a check to ensure that this table already exists.

Hook scripts run inside the service that includes them, so the macros they call are already in that session. They are listed as ignored rather than declared, so the script keeps no macro list of its own to maintain.

@sasjslint {"ignoredMacros": ["mp_abort", "dc_assignlib"], "maxLineLength": 81}

Definition in file mpe_tables_postedit.sas.