BookmarkSubscribeRSS Feed
rebeternity
Calcite | Level 5

I am looking for a specific value from a file located from a specific file path from a drive (e.g., designated C, A, B drive or etc.,), but the file is not a table. The file example could be .TXT or .HL7 or etc., What would be the SAS code for this scenario?  

 

Thank you!

1 REPLY 1
Reeza
Super User

See this post with the exact same question- but using your OS is likely just as fast or reliable. 

 

https://communities.sas.com/t5/Base-SAS-Programming/Searching-SAS-code-for-keywords/m-p/390472

 


@rebeternity wrote:

I am looking for a specific value from a file located from a specific file path from a drive (e.g., designated C, A, B drive or etc.,), but the file is not a table. The file example could be .TXT or .HL7 or etc., What would be the SAS code for this scenario?  

 

Thank you!


 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 707 views
  • 1 like
  • 2 in conversation