mpe_filtermaster.sas File Reference

dynamic where clause creation More...

Go to the source code of this file.

Detailed Description

Generates a where clause based on the following inputs:

  • The filter_RK (if provided)
  • The mode (if EDIT then filter for current records)
  • The user permissions (Row Level Security)

This macro should be used whenever surfacing data to the user. Note that it is not possible to include filerefs directly in a proc sql where clause. The workaround is to use a data step view.

Note - DCLIB should be assigned.

Parameters
[in]modeThe mode. If EDIT, then current rows are returned. Valid Values:
  • EDIT
  • VIEW
  • DLOAD - used in getrawdata
  • ULOAD - used by stagedata.sas to prevent restricted rows being submitted
[in]libdsThe target libref.dataset to which the filter will apply.
[in]filter_rk=(-1) The filter_rk, if available
[in]dclib=The libref of the DC control tables
[out]outref=The output fileref to create (containing the filter)
[out]outds=(work.query) The query dataset (if filter_rk supplied)

SAS Macros

Version
9.3
Author
4GL Apps Ltd

Definition in file mpe_filtermaster.sas.