BookmarkSubscribeRSS Feed
Tom
Super User Tom
Super User

The code you posted is NOT checking for digits in any specific location in the filename.

It is checking if there are specific strings of digits that appear between underscores.

 

If you are having trouble explaining the structure of the filenames you need to parse then post multiple examples and perhaps someone else can help you understand the pattern.

Babloo
Rhodochrosite | Level 12
May be I would have phrased in wrong way. Yes, I have to check specific
string of digits that appears between underscore and copy the file to the
target folder if the string of digits matches.

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
  • 31 replies
  • 5960 views
  • 8 likes
  • 7 in conversation