BookmarkSubscribeRSS Feed
R_A_G_
Calcite | Level 5
Hi,

I have a very long sets of codes but there are times that I just need a small section from the top and bottom.

How do I divide up the middle section so it wouldn't run

Ex:
this is the code I want

this is the code with all the comments and Macro that I do not want

this is the code I want

Thank you
2 REPLIES 2
data_null__
Jade | Level 19
[pre]
> this is the code I want

%macro skip;
> this is the code with all the comments and Macro that
> I do not want
%mend skip;

> this is the code I want
[/pre]
Cynthia_sas
Diamond | Level 26
Hi:
SAS has 2 forms of comments for "regular" code, as explained here:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289375.htm

and, also the ability to comment in macro programming code, as explained here;
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#tw3514-definemacr... (in the topic entitled "Inserting Comments in Macros")

cynthia

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 1098 views
  • 0 likes
  • 3 in conversation