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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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