Hello
In a permanent library called labqret there are multiple data sets.
Some of the data sets there have the name labqret.ABC_TS_YYMMB
For example:
labqret.ABC_TS_2106B (It means June 2021)
labqret.ABC_TS_2105B (It means MAY 2021)
labqret.ABC_TS_2104B (It means April 2021)
and so on
I want to write a program that create a macro variable called memlist with names of data sets that exists in library labqret only with names labqret.ABC_TS_YYMMB.
The problem is that I get null result
proc sql noprint ;
%let memlist=_null_;
select catx('.',libname,memname)
into :memlist separated by ' '
from dictionary.members
where libname='labqret'
and ((memname like 'ABC_TS_%'))
;
quit;
%put &memlist;
libnames and memnames are all uppercase in the dictionary tables.
Exact same error as in your post https://communities.sas.com/t5/SAS-Programming/Get-obs-without-null-values/m-p/542668 from March 2019.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.