BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
NKormanik
Barite | Level 11
data bigdataset;
 set wxyz_:;
run;

Super.  Works great.  But, what if 'wxyz' is at end of dataset name?

 

Curious why SAS has not added more flexibility there.

 

Comments greatly appreciated.

 

Nicholas Kormanik

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
There's easy workarounds to this issue which is why I suspect there's been no development.

proc sql no print;
select name into :data_set_list separated by " " from sashelp.vtable where name like '%_xyz';
quit;

%put &data_set_list;

If the language depends on prefixes and the data sets are designed with suffixes instead, that's bad design.

View solution in original post

2 REPLIES 2
Reeza
Super User
There's easy workarounds to this issue which is why I suspect there's been no development.

proc sql no print;
select name into :data_set_list separated by " " from sashelp.vtable where name like '%_xyz';
quit;

%put &data_set_list;

If the language depends on prefixes and the data sets are designed with suffixes instead, that's bad design.
ballardw
Super User

@NKormanik wrote:
data bigdataset;
 set wxyz_:;
run;

Super.  Works great.  But, what if 'wxyz' is at end of dataset name?

 

Curious why SAS has not added more flexibility there.

 

Comments greatly appreciated.

 

Nicholas Kormanik

 


Probably for the same reason that variable lists don't allow use of suffixes and likely related to really obnoxious coding. Prefixes start in the same place. But suffixes could begin at any character and coding can way more complicated.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 808 views
  • 3 likes
  • 3 in conversation