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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 398 views
  • 0 likes
  • 3 in conversation