Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mf_getvalue.sas File Reference

Retrieves a value from a dataset. If no filter supplied, then first record is used. More...

Go to the source code of this file.

Detailed Description

Be sure to quote() your where clause. Example usage:

%put %mf_getvalue(sashelp.class,name,filter=%quote(age=15));
%put %mf_getvalue(sashelp.class,name);

Dependencies

Parameters
libdsdataset to query
variablethe variable which contains the value to return.
filtercontents of where clause
Version
9.2
Author
Allan Bowe

Definition in file mf_getvalue.sas.