BookmarkSubscribeRSS Feed
dienhoasaigon
Calcite | Level 5

Hello everyone,

How do I make a macro in a csv file?

I really need help!

Thank you

2 REPLIES 2
Tom
Super User Tom
Super User

A CSV file contains data.

 

A macro is like a sub program for generating SAS code.

Are you asking how to output the code that defines your macro to a comma delimited file? What would the commas delimit?

 

A macro variable contains a text string.

Are you asking how to output the value of a macro variable to a CSV file? What part of the CSV should the value be written into?

 

You use the macro processor to help you generate code.

Why don't you start by explaining what code you need to generate?  What parts of it need to change that could benefit from the use of either a macro variable or executing a macro?

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 616 views
  • 0 likes
  • 3 in conversation