BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
hellohere
Pyrite | Level 9

I am using macro loop to read in csv files(huge count), and have used "nonotes nomlogic" to hide log. 

 

BUT still each file read-in shows up "xxx rows created into dataset from csv_file_location".

 

How to hide this log line? Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Find out what is writing that line.  Perhaps your macro has a %PUT statement?

Or perhaps you used PROC IMPORT to read the CSV files.  

Note that PROC IMPORT has to GUESS how to read the file.  And if you are reading many files one by one it will make different guesses for each file.  So if the files have a known fixed structure then remove PROC IMPORT and just write the data step yourself.  Also if they all have the same structure you can probably read them all with a single data step without any macro code at all.

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

Find out what is writing that line.  Perhaps your macro has a %PUT statement?

Or perhaps you used PROC IMPORT to read the CSV files.  

Note that PROC IMPORT has to GUESS how to read the file.  And if you are reading many files one by one it will make different guesses for each file.  So if the files have a known fixed structure then remove PROC IMPORT and just write the data step yourself.  Also if they all have the same structure you can probably read them all with a single data step without any macro code at all.

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
  • 1 reply
  • 225 views
  • 0 likes
  • 2 in conversation