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!


 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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